Skip to content

Fix documentation security issue #665

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TIJMacLean
Copy link

What this PR does / why we need it:
Fixes a security issue where the "latest" tag could be deployed even when it was disallowed, by using the format image:port/repo for a container image rather than the expected image/repo:tag. image:port/repo passed the contains ":" check, and defaults to pulling the latest

Which issue(s) does this PR fix (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes a report through the security email

Special notes for your reviewer:

@TIJMacLean TIJMacLean requested a review from a team as a code owner June 24, 2025 08:49
Copy link
Contributor

@JaydipGabani JaydipGabani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a test covering this change?

Please run make generate generate-website-docs generate-artifacthub-artifacts to generate the templates and docs.

@TIJMacLean TIJMacLean requested a review from JaydipGabani June 24, 2025 19:17
@JaydipGabani
Copy link
Contributor

@TIJMacLean did you miss running make generate generate-website-docs generate-artifacthub-artifacts and pushing generated files as well?

@TIJMacLean
Copy link
Author

@JaydipGabani I hadn't - I've tried to do that all now but as a non-developer, I've been struggling to get all the dependencies and versions working correctly. I've tried again with the make commands and having moved the changes into the src directory instead, but I could get the unit tests to run correctly on my system. So hopefully they pass here!

@TIJMacLean
Copy link
Author

@JaydipGabani Afternoon - is there any update on whether this is more in line with what you were expecting?

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