Skip to content

Add a trim to the RHTPA's external secret#13

Merged
mlorenzofr merged 2 commits into
validatedpatterns:mainfrom
mlorenzofr:trim-rhtpa-secret
May 19, 2026
Merged

Add a trim to the RHTPA's external secret#13
mlorenzofr merged 2 commits into
validatedpatterns:mainfrom
mlorenzofr:trim-rhtpa-secret

Conversation

@mlorenzofr
Copy link
Copy Markdown
Contributor

Apply the trim filter when templating the RHTPA OIDC CLI client-secret in the ExternalSecret, so leading/trailing whitespace from the Vault value is not written into the Kubernetes secret

Vault (or upstream secret sources) can store the client secret with accidental whitespace or newlines. Without trimming, the synced rhtpa-oidc-cli-secret can contain invalid credentials and break RHTPA OIDC authentication.

@minmzzhang minmzzhang self-requested a review May 19, 2026 14:08
Copy link
Copy Markdown
Contributor

@minmzzhang minmzzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
Signed-off-by: Manuel Lorenzo <mlorenzofr@redhat.com>
@mlorenzofr mlorenzofr force-pushed the trim-rhtpa-secret branch from 7a43b86 to 3085979 Compare May 19, 2026 14:13
@mlorenzofr mlorenzofr merged commit 9bea2ba into validatedpatterns:main May 19, 2026
3 checks passed
@mlorenzofr mlorenzofr deleted the trim-rhtpa-secret branch May 19, 2026 14:17
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.

2 participants