Improve OpenBao OIDC login callback command

This commit is contained in:
2026-05-29 02:31:54 +02:00
parent dafcd329b2
commit d797ce5b62

View File

@@ -1404,7 +1404,8 @@ def admin_identity_command_payloads(data: dict[str, Any]) -> list[dict[str, str]
"# Terminal 2: run the pod-bundled bao CLI, then copy the printed login URL into your local browser if needed.\n"
"kubectl exec -it -n openbao openbao-0 -- sh -lc '\n"
" export BAO_ADDR=http://127.0.0.1:8200\n"
" bao login -method=oidc -path=keycape role=platform-admin\n"
" bao login -method=oidc -path=keycape role=platform-admin \\\n"
" skip_browser=true listenaddress=0.0.0.0 callbackhost=127.0.0.1 port=8250\n"
" bao token lookup\n"
"'"
)