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

Create EC policy config for validating Task definitions #73

Merged
merged 2 commits into from
Jan 22, 2024

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Jan 19, 2024

Ref: EC-358

This adds a policy config that can be used to verify Task definitions. Since this requires policies from a different namespace (task instead of release), this is handled as a new "environment".

The update-infra-deployments.sh script is adjusted to handle propagating updates from the new config to the infra-deployments repo. It should be a no-op at first because the infra-deployments repo doesn't contain any instances of the ec-task-policy bundle image. It's important to do this now so things don't break when we do add it there.

A separate commit is added to fix the verify-policy-sources script which was broken.

@simonbaird
Copy link
Member

Lgtm, but I'm a bit fuzzy on the hack/update-infra-deployments.sh stuff.

The `.name` attribute of each policy now has a different meaning.
Instead, now use the key value as this is what is used to created the
policy config file.

Signed-off-by: Luiz Carvalho <[email protected]>
Ref: EC-358

Signed-off-by: Luiz Carvalho <[email protected]>
@lcarva
Copy link
Member Author

lcarva commented Jan 22, 2024

Update PR to not rely on the @redhat collection because of enterprise-contract/ec-policies#872.

Thanks for the review! I'm gonna go ahead and merge this. I will watch the flow of things to make sure it does work as intended.

@lcarva lcarva merged commit 4003273 into enterprise-contract:main Jan 22, 2024
1 check passed
@lcarva lcarva deleted the EC-358 branch January 22, 2024 20:23
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