internal: Add support for 'sensitive' JSON tag for bundle config fields#5896
Merged
Conversation
andrewnester
requested review from
denik,
janniklasrose,
pietern and
shreyas-goenka
July 10, 2026 13:08
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 13:37 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 13:37 — with
GitHub Actions
Inactive
Collaborator
Integration test reportCommit: 49ea5f6
9 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED, 1 flaky
Top 8 slowest tests (at least 2 minutes):
|
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 14:44 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 14:44 — with
GitHub Actions
Inactive
andrewnester
had a problem deploying
to
test-trigger-is
July 10, 2026 14:54 — with
GitHub Actions
Failure
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 14:54 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 15:11 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 10, 2026 15:11 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 09:07 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 09:07 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 09:23 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 09:23 — with
GitHub Actions
Inactive
pietern
reviewed
Jul 14, 2026
| } | ||
| return si.Sensitive | ||
| } | ||
|
|
Contributor
There was a problem hiding this comment.
Please add a few unit tests here in dyn/convert that demonstrates that this works in cases with embedded structs, anonymous structs, etc. Would also be good to include a user of these fields in the same package.
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 12:27 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 12:27 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 12:40 — with
GitHub Actions
Inactive
andrewnester
temporarily deployed
to
test-trigger-is
July 14, 2026 12:40 — with
GitHub Actions
Inactive
pietern
reviewed
Jul 15, 2026
pietern
approved these changes
Jul 21, 2026
| case dyn.KindString: | ||
| // Preserve sensitive strings: NewValue would strip the secretString wrapper. | ||
| if src.IsSensitive() { | ||
| return src, nil |
Contributor
There was a problem hiding this comment.
This means it is not possible to update the secret value in the typed tree.
If expected, please include this expectation in the comment.
andrewnester
enabled auto-merge
July 22, 2026 12:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Add support for 'sensitive' JSON tag for bundle config fields
Why
This allows us to mark certain fields (for example, secrets.value) as sensitive and let CLI handle masking it in command outputs.
Used in #5861
Tests
Added unit tests. Will be tests end to end with unit tests with UC secrets