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

Policy pattern matching with images missing default repo path #1517

Open
Starkteetje opened this issue Feb 27, 2024 · 0 comments
Open

Policy pattern matching with images missing default repo path #1517

Starkteetje opened this issue Feb 27, 2024 · 0 comments
Labels
breaking Issue may include breaking changes enhancement New feature or request

Comments

@Starkteetje
Copy link
Member

Describe the feature
The current implementation for matching a rule pattern to an image reference fails on the following case:

# pattern            # image reference
docker.io/test:* <-> docker.io/test:tag

The reason for that is: the pattern is matched against the fully qualified image reference, not the one given. Meaning in this case, the pattern docker.io/test:* is matched against index.docker.io/library/test:tag, which obviously fails. The reason for matching against the fully qualified reference is so that patterns like docker.io/* still match given images like redis.

For convenience reasons, I'd still be great, if the pattern docker.io/test:* would match docker.io/test:tag.

@Starkteetje Starkteetje added enhancement New feature or request breaking Issue may include breaking changes labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Issue may include breaking changes enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant