Skip to content

Commit

Permalink
remove auth for healthchecks
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <issif+github@gadz.org>
  • Loading branch information
Issif authored and poiana committed Jan 10, 2023
1 parent ec79c76 commit dbb3eee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
32 changes: 16 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ dockers:
use: buildx
image_templates:
- "falcosecurity/falcosidekick-ui:stable-amd64"
- "falcosecurity/falcosidekick-ui:{{ .Version }}-amd64"
- "falcosecurity/falcosidekick-ui:v{{ .Version }}-amd64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:stable-amd64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-amd64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-amd64"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
Expand All @@ -65,15 +65,15 @@ dockers:
use: buildx
image_templates:
- "falcosecurity/falcosidekick-ui:stable-arm64"
- "falcosecurity/falcosidekick-ui:{{ .Version }}-arm64"
- "falcosecurity/falcosidekick-ui:v{{ .Version }}-arm64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:stable-arm64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-arm64"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-arm64"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.version=v{{.Version}}"
- "--platform=linux/arm64"
extra_files:
- frontend/dist
Expand All @@ -86,15 +86,15 @@ dockers:
use: buildx
image_templates:
- "falcosecurity/falcosidekick-ui:stable-armv7"
- "falcosecurity/falcosidekick-ui:{{ .Version }}-armv7"
- "falcosecurity/falcosidekick-ui:v{{ .Version }}-armv7"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:stable-armv7"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-armv7"
- "public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-armv7"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.version=v{{.Version}}"
- "--platform=linux/arm/v7"
extra_files:
- frontend/dist
Expand All @@ -106,21 +106,21 @@ docker_manifests:
- 'falcosecurity/falcosidekick-ui:stable-amd64'
- 'falcosecurity/falcosidekick-ui:stable-arm64'
- 'falcosecurity/falcosidekick-ui:stable-armv7'
- name_template: 'falcosecurity/falcosidekick-ui:{{ .Version }}'
- name_template: 'falcosecurity/falcosidekick-ui:v{{ .Version }}'
image_templates:
- 'falcosecurity/falcosidekick-ui:{{ .Version }}-amd64'
- 'falcosecurity/falcosidekick-ui:{{ .Version }}-arm64'
- 'falcosecurity/falcosidekick-ui:{{ .Version }}-armv7'
- 'falcosecurity/falcosidekick-ui:v{{ .Version }}-amd64'
- 'falcosecurity/falcosidekick-ui:v{{ .Version }}-arm64'
- 'falcosecurity/falcosidekick-ui:v{{ .Version }}-armv7'
- name_template: 'public.ecr.aws/falcosecurity/falcosidekick-ui:stable'
image_templates:
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:stable-amd64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:stable-arm64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:stable-armv7'
- name_template: 'public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}'
- name_template: 'public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}'
image_templates:
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-amd64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-arm64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:{{ .Version }}-armv7'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-amd64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-arm64'
- 'public.ecr.aws/falcosecurity/falcosidekick-ui:v{{ .Version }}-armv7'

release:
github:
Expand Down
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,13 @@ func main() {
apiRoute := e.Group("/api/v1")
apiRoute.Use(middleware.BasicAuthWithConfig(middleware.BasicAuthConfig{
Skipper: func(c echo.Context) bool {
return c.Request().Method == "POST"
if c.Request().Method == "POST" {
return true
}
if c.Path() == "/api/v1/healthz" {
return true
}
return false
},
Validator: func(username, password string, c echo.Context) (bool, error) {
config := configuration.GetConfiguration()
Expand Down

0 comments on commit dbb3eee

Please sign in to comment.