CASM-4855 Make image signature validation rules customizable #14
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.
Summary and Scope
Image signature validation rules must be customizable. Customers may have their own keys (in addition to our keys) or even validation configs. Standard way of tuning deployments with customer specific parameters is using
customizations.yaml
file. It is used during fresh installs. During upgrades, existing configuration is preserved via k8s secret, and gets amended viaupdate-customizations.sh
script - this way we may alter configuration during future upgrades (for example, remove outdated keys).This change also fixes misconfiguration which causes CASMTRIAGE-7287.
All PR's in this batch:
Issues and Related PRs
Testing
Tested on:
Test description:
Deployed temporary build, ensured that check image policy is configured correctly.
Risks and Mitigations
Low - we change the way things configured, but resulting configuration remains the same.