Skip to content

Improve kernelci-api user experience on initial install#647

Merged
nuclearcat merged 3 commits intokernelci:mainfrom
nuclearcat:fix-install
Mar 13, 2026
Merged

Improve kernelci-api user experience on initial install#647
nuclearcat merged 3 commits intokernelci:mainfrom
nuclearcat:fix-install

Conversation

@nuclearcat
Copy link
Member

And also it will make automation a bit easier.

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
and update env/docs to reflect required first-boot configuration.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat nuclearcat added this pull request to the merge queue Mar 13, 2026
Merged via the queue into kernelci:main with commit 24d3633 Mar 13, 2026
2 of 4 checks passed
@nuclearcat nuclearcat deleted the fix-install branch March 13, 2026 12:08
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.

1 participant