Skip to content

fix: Add default exclusions for GitOps tool annotations#809

Merged
SgtCoDFish merged 3 commits into
jetstack:masterfrom
kiril-cyberark:VC-53362
May 26, 2026
Merged

fix: Add default exclusions for GitOps tool annotations#809
SgtCoDFish merged 3 commits into
jetstack:masterfrom
kiril-cyberark:VC-53362

Conversation

@kiril-cyberark
Copy link
Copy Markdown
Contributor

@kiril-cyberark kiril-cyberark commented May 26, 2026

Some GitOps tools (kapp, Rancher Fleet, Banzai Cloud) store a full copy of the original manifest in object annotations, which can cause sensitive data (such as Secret values) to be inadvertently included in data pushed to the platform. This change adds those annotation keys to the default exclusion list so they are stripped from all Kubernetes objects before being sent upstream.

Comment thread deploy/charts/disco-agent/values.yaml Outdated
Copy link
Copy Markdown
Contributor

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

This is what I'd expect the fix to look like 👍

I think we're definitely missing a description for this PR though - doesn't have to be super detailed (and it shouldn't contain any internal information - this repo is public!) but it's worth just adding a note about why this is being done.

@kiril-cyberark kiril-cyberark changed the title fix: VC-53362 fix: Add default exclusions for GitOps tool annotations May 26, 2026
@kiril-cyberark kiril-cyberark requested a review from SgtCoDFish May 26, 2026 11:02
@kiril-cyberark
Copy link
Copy Markdown
Contributor Author

This is what I'd expect the fix to look like 👍

I think we're definitely missing a description for this PR though - doesn't have to be super detailed (and it shouldn't contain any internal information - this repo is public!) but it's worth just adding a note about why this is being done.

Description and title added

Copy link
Copy Markdown
Contributor

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Perfect, thank you!

@SgtCoDFish SgtCoDFish merged commit f97ac81 into jetstack:master May 26, 2026
5 checks passed
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