Improve kernelci-api user experience on initial install#647
Open
nuclearcat wants to merge 3 commits intokernelci:mainfrom
Open
Improve kernelci-api user experience on initial install#647nuclearcat wants to merge 3 commits intokernelci:mainfrom
nuclearcat wants to merge 3 commits intokernelci:mainfrom
Conversation
Add automatic initial-admin provisioning during API startup. Behavior: - On startup, check whether any superuser exists. - If none exists, require KCI_INITIAL_PASSWORD and create the first admin. - If KCI_INITIAL_PASSWORD is missing in that case, fail fast and exit. - Support optional KCI_INITIAL_ADMIN_USERNAME and KCI_INITIAL_ADMIN_EMAIL for identity defaults. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Update documentation to describe automatic initial admin creation via KCI_INITIAL_PASSWORD and optional identity env vars. Remove references to manual setup_admin_user flow and delete scripts/setup_admin_user. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Fail fast during startup with a single clear validation error for required environment variables instead of piecemeal runtime failures. Validated at startup: - SECRET_KEY - MONGO_SERVICE Also make MONGO_SERVICE mandatory in DB initialization and update env/docs to reflect required first-boot configuration. Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
And also it will make automation a bit easier.