Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fromJSON: Mark nested structures as secret if the JSON string is secret #191

Merged
merged 6 commits into from
Dec 5, 2023

Conversation

komalali
Copy link
Member

@komalali komalali commented Dec 5, 2023

The first commit demonstrates the issue, secret objects (and arrays) were not being marked as secret when evaluating fromJSON.

@komalali komalali requested a review from pgavlin December 5, 2023 05:29
eval/eval.go Outdated Show resolved Hide resolved
@komalali komalali force-pushed the komal/fix-from-json-bug branch from 3f59d67 to d5bd158 Compare December 5, 2023 16:19
@komalali komalali requested a review from pgavlin December 5, 2023 16:35
@@ -0,0 +1,11 @@
values:
secret_object:
fn::secret: '{"haha":"business","also":"secret"}'
Copy link
Member

Choose a reason for hiding this comment

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

lol

@komalali komalali merged commit a18e45e into main Dec 5, 2023
6 checks passed
@komalali komalali deleted the komal/fix-from-json-bug branch December 5, 2023 18:17
@komalali komalali added this to the 0.97 milestone Dec 6, 2023
@komalali komalali self-assigned this Dec 6, 2023
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