-
Notifications
You must be signed in to change notification settings - Fork 525
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
[Scrubber] API Gateway config scrubbing #3225
Conversation
…ployer functionality in order to make evething as agnostic as possible
…ployer functionality in order to make evething as agnostic as possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know its still WIP, but added some comments to consider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last few things, otherwise we are there 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 🚀
The purpose of this PR is to implement configuration scrubbing for API gateways, allowing sensitive data to be stored in a Kubernetes secret instead of directly in the CRD. While we already had scrubbing logic in place, it was specific to function configuration. This PR introduces an abstract interface and scrubber struct, making it easier to inherit and use them in the future if needed. Additionally to this, all the scrubbing logic which had been in platform/deployer was moved under scrubber to be more consistent, keep scrubbing in one place and avoid code duplications.
Also, in order to support masking sensitive fields when creating API Gateway via
nuctl
, new flag--mask-sensitive-fields
was added. Default behaviour is not to mask, because we want to keep backward compatibility.Jira - https://iguazio.atlassian.net/browse/NUC-170, part of https://iguazio.atlassian.net/browse/NUC-114