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

ssa: improve data masking #661

Merged
merged 1 commit into from
Oct 6, 2023
Merged

ssa: improve data masking #661

merged 1 commit into from
Oct 6, 2023

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Oct 6, 2023

Instead of masking the data with **** or *****, provide an easier to distinguish *** (before) and *** (after) for values which have changed. Matching the output of kubectl diff.

In addition, make the function public as it can be of use outside of the Diff of the resource manager, and allow passing only one instance of an object (for scenarios where a resource is either created or deleted).

@hiddeco hiddeco added enhancement New feature or request area/server-side-apply SSA related issues and pull requests labels Oct 6, 2023
@hiddeco hiddeco requested a review from stefanprodan as a code owner October 6, 2023 11:27
@hiddeco hiddeco force-pushed the ssa-data-masking branch 2 times, most recently from 75d43b7 to 116c542 Compare October 6, 2023 11:28
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @hiddeco 🎖️

Instead of masking the data with `****` or `*****`, provide an easier
to distinguish `*** (before)` and `*** (after)` for values which have
changed. Matching the output of `kubectl diff`.

In addition, make the function public as it can be of use outside of the
`Diff` of the resource manager, and allow passing only one instance of
an object (for scenarios where a resource is either created or deleted).

Signed-off-by: Hidde Beydals <[email protected]>
@hiddeco hiddeco merged commit 2fa04c5 into main Oct 6, 2023
13 checks passed
@hiddeco hiddeco deleted the ssa-data-masking branch October 6, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/server-side-apply SSA related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants