Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a User, I want a default super user so that I have an auth without setting up the connection to my IdP #1090

Closed
4 of 7 tasks
foot opened this issue Nov 18, 2021 · 4 comments · Fixed by #1516
Closed
4 of 7 tasks

Comments

@foot
Copy link
Contributor

foot commented Nov 18, 2021

  • See a password after running gitops install that you will be prompted for when opening the UI
    • Store the password HASH in a secret in the cluster
    • password generation and secret installation is feature flagged
  • Add middleware for checking an auth header against a secret in the cluster that is feature flagged
    • WG UI server doesn’t have a deployment to mount secrets on so should perhaps use kubeclient to grab secret
  • Some docs / flow on how to reset / regenerate password
    • Potential security issue here if anyone can do this. (RBAC?)
    • How to use a password?
      • 1password viable on the cli?
      • Save password to ~/.wego/cluster-password
      • GENERATE API TOKENS for our super user, dex can do this basic-auth’d users.
    • Can we use basic-auth and have a pretty login page or have to use a diff authorization header?
      • Could be anything, check out principal getter in POC
  • Add middleware to impersonate auth’d user and provider a client
    • For default super user this is cluster-admin? Can be configured?
  • Add config to remove super user
    • Maybe just delete secret that stores password hash
    • How do we configure gitops?
  • Rate limit our password endpoints!
  • Add a login page
@foot
Copy link
Contributor Author

foot commented Jan 12, 2022

Even though there might be some churn in gitops-core this feature will still be relevant so we can keep working on it!

@foot
Copy link
Contributor Author

foot commented Jan 12, 2022

ArgoCD got in trouble for deriving passwords deterministically from pod names. They did this because of a more gitopsy approach (kubectl apply) to their installation.

We have gitops install which can generate a password. Will document how to DIY first

@foot
Copy link
Contributor Author

foot commented Jan 12, 2022

@foot
Copy link
Contributor Author

foot commented Feb 22, 2022

Rate limiting:

  • Probably a nice lib? or patterns at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant