[VC-43403] Minimize snapshot by filtering non-clientauth TLS secrets#714
Merged
wallrj-cyberark merged 1 commit intomasterfrom Sep 17, 2025
Merged
[VC-43403] Minimize snapshot by filtering non-clientauth TLS secrets#714wallrj-cyberark merged 1 commit intomasterfrom
wallrj-cyberark merged 1 commit intomasterfrom
Conversation
d674c3b to
56dbef5
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces snapshot minimization functionality to filter out TLS secrets without client certificates before uploading to CyberArk. The goal is to improve privacy, reduce bandwidth/storage usage, and ensure only relevant secrets are transmitted.
- Adds
minimizeSnapshotfunction to filter TLS secrets without client certificates - Implements client certificate detection through PEM parsing and X.509 Extended Key Usage validation
- Integrates minimization into the CyberArk upload pipeline
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| pkg/client/client_cyberark.go | Adds core minimization logic including snapshot filtering, TLS secret analysis, and client certificate detection |
| pkg/client/client_cyberark_convertdatareadings_test.go | Adds comprehensive test coverage for minimization functionality with certificate generation helpers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This introduces minimizeSnapshot to filter out TLS secrets without client certificates before uploading snapshots to CyberArk. The goal is to improve privacy, reduce bandwidth/storage, and ensure only relevant secrets are sent. - Add minimizeSnapshot to filter out TLS secrets lacking client certificates - Improve privacy and reduce snapshot size for CyberArk uploads - Implement isExcludableSecret and isExcludableTLSSecret helpers - Add unit tests for minimization and exclusion logic Signed-off-by: Richard Wall <richard.wall@cyberark.com>
56dbef5 to
ef50cec
Compare
mladen-rusev-cyberark
approved these changes
Sep 17, 2025
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.
This PR introduces
minimizeSnapshotto filter out TLS secrets without client certificates before uploading snapshots to CyberArk.The goal is to improve privacy, reduce bandwidth/storage, and ensure only relevant secrets are sent.
Part of: https://venafi.atlassian.net/browse/VC-43403
Followups
Testing