Skip to content

fix: write auth mode to init config and restart server after login#78

Merged
samcm merged 2 commits intomasterfrom
fix/init-oidc-mode-and-server-restart
Mar 16, 2026
Merged

fix: write auth mode to init config and restart server after login#78
samcm merged 2 commits intomasterfrom
fix/init-oidc-mode-and-server-restart

Conversation

@samcm
Copy link
Copy Markdown
Member

@samcm samcm commented Mar 16, 2026

Summary

  • panda init now writes mode: "oidc" (or other non-default modes) to the generated config when discovered from the proxy's /auth/metadata endpoint. Previously the mode was omitted, causing resolveAuthTargetFromConfig to default to "oauth" and OIDC discovery to fail against the proxy URL instead of Dex.
  • panda auth login now automatically restarts the server container (if running) after saving new credentials, so the server picks them up immediately instead of spinning on stale in-memory tokens.
  • panda init auth flow now sets BrandingURL so the success page branding works during init.

samcm added 2 commits March 16, 2026 16:50
panda init was not writing mode: "oidc" to the generated config, so
resolveAuthTargetFromConfig defaulted to "oauth" and OIDC discovery
hit the proxy instead of Dex.

Additionally, panda auth login now restarts the server container if
it is running so it picks up the new credentials immediately instead
of spinning on stale tokens until the next manual restart.
ClickHouseClusterConfig.Name moved to the embedded BaseDatasourceConfig.
@samcm samcm merged commit dd8e39c into master Mar 16, 2026
7 checks passed
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