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

Initial admin user bootstrapping via the operator #9843

Closed
vmuzikar opened this issue Jan 27, 2022 · 2 comments · Fixed by #10661
Closed

Initial admin user bootstrapping via the operator #9843

vmuzikar opened this issue Jan 27, 2022 · 2 comments · Fixed by #10661
Assignees
Labels
area/operator Keycloak.X Operator kind/feature Categorizes a PR related to a new feature status/ready Ready to be merged
Milestone

Comments

@vmuzikar
Copy link
Contributor

vmuzikar commented Jan 27, 2022

  • The operator will create an initial admin user.
  • The KC_ADMIN and KC_ADMIN_PASSWORD env vars will be used for that.
  • The credentials will be stored in a Secret.
    • If the Secret doesn't exist, the operator creates it and generates a random password.
    • If the Secret already exists (was created by the user), the operator will use the credentials from it.
  • The Secret name needs to explicitly show that it is only initial bootstrap admin user, e.g. InitilAdminCreds.
  • Any changes to the Secret won't be reflected in KC after first boot. The Secret can be deleted by user if needed.
@vmuzikar vmuzikar added area/operator Keycloak.X Operator kind/feature Categorizes a PR related to a new feature labels Jan 27, 2022
@andreaTP
Copy link
Contributor

KC_ADMIN and KC_ADMIN_PASSWORD

@vmuzikar
Copy link
Contributor Author

vmuzikar commented Feb 17, 2022

Related discussion: #8549

Needs to be re-iterated after that discussion is solved.

@vmuzikar vmuzikar added the status/ready Ready to be merged label Feb 17, 2022
@andreaTP andreaTP self-assigned this Mar 8, 2022
@vmuzikar vmuzikar added this to the 18.0.0 milestone Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operator Keycloak.X Operator kind/feature Categorizes a PR related to a new feature status/ready Ready to be merged
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants