Fixes #37661 - block users properly from pushing content #40
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.
Stops users from pushing content:
Currently blocked by pulp/pulp_container#1703, so to test in the meantime either the content pushing needs to already exist in Pulp (not trigger the 500) or the container gateway needs a hack to throw a 404 always on blob checking.Also, ensure the repo exists in Pulp first. We must throw 401 errors for trying to push to nonexistent repos. Muddies the experience a bit, but that's just how podman works.Ensure that the latest pulp-container 2.20 is being used.
Test that all of the endpoints still work properly since general content access was changed.
Test that container push is blocked with a proper message in all cases.
TODO: