Skip to content

Secure initial Roller setup with one-time operator token - #189

Open
snoopdave wants to merge 6 commits into
apache:masterfrom
snoopdave:secure-initial-setup-token
Open

Secure initial Roller setup with one-time operator token#189
snoopdave wants to merge 6 commits into
apache:masterfrom
snoopdave:secure-initial-setup-token

Conversation

@snoopdave

@snoopdave snoopdave commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require a cryptographically secure, one-time operator token before Roller initial setup, database installation actions, and first-user registration.
  • Bind redemption to a browser session, expire it after 60 minutes, and prevent token exposure through URLs or rendered responses.
  • Permanently close bootstrap access after the first administrator is committed, including after account deletion or disablement.
  • Gate SSO auto-provisioning during bootstrap and document the operator workflow.
  • On upgrade, the database upgrade screen is not shown unless there is an actual database upgrade to be done.

Validation

  • mvn -pl app -DskipTests compile
  • Focused BootstrapSecurityTest and InstallTest
  • git diff --check

Here's what the new seucurity code looks like in roller.log:

Screenshot 2026-09-13 at 3 24 05 PM

And here's the new securoty code screen:

Screenshot 2026-09-13 at 3 24 31 PM

Release consideration

If we do an RC4, we should consider including this PR in that release candidate.

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