Skip to content

Fix k8s secret#149

Merged
saescha merged 5 commits into
masterfrom
fix-k8s-secret
May 26, 2026
Merged

Fix k8s secret#149
saescha merged 5 commits into
masterfrom
fix-k8s-secret

Conversation

@saescha
Copy link
Copy Markdown
Contributor

@saescha saescha commented May 26, 2026

The old approach messed up the whitespaces of multiline string (x509 credential).

The new approach uses the logic:
For every json field look if there is a file with that name. When the target field is string use the plain string. Otherwise use json.Unmarshal (I don't know which psychopath defined this "logic", but if i look into an actual IAS secret the string values are plain and array values like domains are ["domain1","domain2"] and i can only guess that structures behave accordingly....

@saescha saescha requested a review from a team as a code owner May 26, 2026 13:15
@saescha saescha requested a review from f-blass May 26, 2026 13:15
Copy link
Copy Markdown
Contributor

@khuhroProezaAP khuhroProezaAP left a comment

Choose a reason for hiding this comment

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

lgtm

@saescha saescha merged commit f29e406 into master May 26, 2026
12 checks passed
@saescha saescha deleted the fix-k8s-secret branch May 26, 2026 20:30
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