Skip to content

Anonymous / No-auth mode#3958

Merged
foot merged 17 commits intomainfrom
anonymous-mode
Aug 22, 2023
Merged

Anonymous / No-auth mode#3958
foot merged 17 commits intomainfrom
anonymous-mode

Conversation

@foot
Copy link
Copy Markdown
Contributor

@foot foot commented Aug 21, 2023

What changed?

Introduces a cli-flag to enable "anonymous" mode.

This allows the dashboard to be configured without auth, no login screen will be shown. Its designed to be used with external authentication systems like auth-proxies.

The kubernetes User that is impersonated can be configured via the flag value.

Why was this change made?

Allows external auth systems to be used instead of built in OIDC.

How was this change implemented?

  • A new principal was added

How did you validate the change?

  • Unit tests
  • Manual testing

Documentation Changes

Yes, included.

Comment thread cmd/gitops-server/cmd/cmd.go
Comment thread pkg/server/auth/auth_method_type.go
Comment thread pkg/server/auth/init.go
@foot foot changed the title Anonymous mode Anonymous / No-auth mode Aug 22, 2023
Comment thread pkg/server/auth/auth.go
@foot foot marked this pull request as ready for review August 22, 2023 06:56
@foot foot requested a review from bigkevmcd August 22, 2023 06:57
Comment thread cmd/gitops-server/cmd/cmd.go Outdated
Comment thread pkg/server/auth/auth_method_type.go
Comment thread pkg/server/auth/init.go Outdated
Comment thread pkg/server/auth/server.go Outdated
Comment thread website/docs/configuration/anonymous-access.mdx Outdated
@foot
Copy link
Copy Markdown
Contributor Author

foot commented Aug 22, 2023

cc @LappleApple as you've been looking at the user-guide. This PR also adds some user-guide docs about this new anonymous access feature.

@bigkevmcd
Copy link
Copy Markdown
Contributor

Thanks!

@foot foot merged commit d5c53f2 into main Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants