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

Emit term for base_image_permitted #1230

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Nov 21, 2024

This commit changes the policy rule
base_image_registries.base_image_permitted so it includes a term in its result. The term is the repository portion of the base image reference - everything but the tag and digest.

This allows users to allow certain base image registries as an exception, especially if time bound, e.g.:

volatileConfig:
  exclude:
    - value: 'base_image_registries.base_image_permitted:my-shady-registry.io/foo/bar'
      effectiveUntil: '2024-12-01T00:00:00Z'

Ref: EC-649

This commit changes the policy rule
`base_image_registries.base_image_permitted` so it includes a term in
its result. The term is the repository portion of the base image
reference - everything but the tag and digest.

This allows users to allow certain base image registries as an
exception, especially if time bound, e.g.:

```yaml
volatileConfig:
  exclude:
    - value: 'base_image_registries.base_image_permitted:my-shady-registry.io/foo/bar'
      effectiveUntil: '2024-12-01T00:00:00Z'
```

Ref: EC-649

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
@lcarva lcarva merged commit 9ad1858 into enterprise-contract:main Nov 22, 2024
4 checks passed
@lcarva lcarva deleted the EC-649 branch November 22, 2024 13:54
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