OSAC-2982: Add client_secret_secret to IdentityProvider with dual-path reconciler - #481
OSAC-2982: Add client_secret_secret to IdentityProvider with dual-path reconciler#481danielerez wants to merge 1 commit into
Conversation
|
@danielerez: This pull request references OSAC-2982 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.1.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielerez The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🤖 Finished Review · ✅ Success · Started 2:53 PM UTC · Completed 3:11 PM UTC Commit: |
ReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Low
Next steps:
|
…h reconciler Allow OidcConfig to reference a Secret instead of storing the OIDC client secret inline. Create/Update validate the ref exists and is mutually exclusive with client_secret; the IdentityProvider reconciler prefers the Secret and falls back to the inline field. Assisted-by: Claude Code <noreply@anthropic.com> Signed-off-by: Daniel Erez <danielerez@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Daniel Erez <danielerez@gmail.com>
60a8d16 to
1a1e462
Compare
Auto-dismissed: only Prow labels gate merging
|
🤖 Finished Review · ✅ Success · Started 7:07 PM UTC · Completed 7:28 PM UTC Commit: |
Summary
SecretLocalReference client_secret_secrettoOidcConfig(public + private), mutually exclusive with inlineclient_secret{}, mutual exclusion (including update-mask-aware conflict vs the stored IDP), existence check via secrets DAO, and write-back of resolved{id, name}Secrets.Getwith controller auth, extractdata["value"]) and falls back to inlineclient_secretvalueContext
Next vertical slice of the secret references migration (OSAC-2953), following OSAC-2978. Uses
SecretLocalReference(id + name) rather than a string field.No DB migration needed. Resources use GenericDAO with a JSON
datacolumn, so proto field additions are picked up automatically.Jira
https://issues.redhat.com/browse/OSAC-2982
Test plan
client_secret_secretby id — resolves and stores id + nameclient_secret_secretby name — resolves and stores id + nameclient_secretandclient_secret_secret— returns INVALID_ARGUMENT{}ref — returns INVALID_ARGUMENTclient_secretonly — still works unchangedclient_secret(mask-aware) — returns INVALID_ARGUMENTdata["value"]client_secretwhen no ref is setdata["value"]