feat(harmony): harmony-sso deploy hardening (Zitadel + OpenBao Scores) #303
Reference in New Issue
Block a user
No description provided.
Delete Branch "pr/harmony-sso-deploy-hardening"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Makes the Zitadel and OpenBao deployment Scores converge reliably on k3d and
adds who-changed-what auditing. Touches only the harmony modules + harmony-k8s;
independent of the config/secret crates.
Changes
Zitadel (
modules/zitadel):connection-refused races); embed userinfo in the id_token so the
emailclaim is present for OpenBao JWT auth.
idempotent success.
password_change_requiredflag onZitadelScore(defaults false).OpenBao (
modules/openbao):attribution (logs each operation with the authenticated identity).
harmony-k8s:
exec_pod_capturereturns both stdout and stderr regardlessof exit code.
Consumer fix
The new
ZitadelScorefield adds..Default::default()to thefleet_staging_installliteral so that consumer stays green.Context
PR 3 of 4 splitting
feat/unified-config-and-secrets. Independent — merge inany order.
Verification
cargo check --workspace --all-targets --all-features,cargo fmt --check,harmony openbao module test passing; validated end-to-end via a local
integration of all 4 parts + a live
cargo run -p example-harmony-sso.Not sure about the handling of the credentials, default settings should be leaning a bit more towards high security and never delete I think.
Specifically the zitadel master password and openbao keys should be handled manually I think when defaults are used and we're not in the 100% happy path.
This is mergeable though just something to keep in mind and improve upon as we figure it out.