Repository navigation
Allow anonymous pull-through for public distributions - #2536
Conversation
cba1472 to
5eb186f
Compare
| with anonymous_user: | ||
| local_registry.pull(local_image_path1) | ||
|
|
||
| local_registry.pull(local_image_path1) |
There was a problem hiding this comment.
Lines 169, 173, and 176 aren't really testing anything anymore. Change the second distro to be private and have the created user be granted the correct permission so we can see the difference between anon and user with perms.
There was a problem hiding this comment.
I made the distribution2 private and tested pulling using anon and unprivileged user
| # 0. an anonymous user can pull new content through a public pull-through cache | ||
| with anonymous_user: |
There was a problem hiding this comment.
This probably isn't needed anymore, at least we could still check for an error if the PT distro is private.
There was a problem hiding this comment.
I tested pulling from a private distribution which should raise an error
Assisted By: Claude Opus 4.8 and Codex Sol 6.1
5eb186f to
bb3b282
Compare
Backport to 2.29: 💚 backport PR created✅ Backport PR branch: Backported as #2593 🤖 @patchback |
Backport to 2.30: 💚 backport PR created✅ Backport PR branch: Backported as #2594 🤖 @patchback |
Assisted By: Claude Opus 4.8 and Codex Sol 6.1
Closes #1976
📜 Checklist
See: Pull Request Walkthrough