Skip to content

Commit

Permalink
fix: default to given default http host names
Browse files Browse the repository at this point in the history
  • Loading branch information
J0 committed Nov 12, 2024
1 parent 427823d commit 2d85c43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/conf/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ func (e *ExtensibilityPointConfiguration) ValidateExtensibilityPoint(allowedHTTP
return validatePostgresPath(u)
case "http":
hostname := u.Hostname()
if len(allowedHTTPHostNames) == 0 {
allowedHTTPHostNames = []string{"localhost", "127.0.0.1", "::1", "host.docker.internal"}
}
if isStringInSlice(hostname, allowedHTTPHostNames) {
return validateHTTPHookSecrets(e.HTTPHookSecrets)
}
Expand Down

0 comments on commit 2d85c43

Please sign in to comment.