Configuration and Permission - enabling anonymousPolicy gives access denied error on push #1847
-
Hi, i have some troubles getting the configuration right, .. i use ko.build to build images und push them to zot, which works really well. But starting with authententication and havingcertain paths (for different projects) and having different users for uploading to these paths give me some headache. What i want to accomplish is, i want to have an upload - user per project, and in general i want to have anonymous read access to all repos (for deployment). But enabling the anonymous policy in "root" (or "**") under policies, gives me always an "access denied" error on pushing to the repo. Even when i do not have the root path thing enabled, but enabling it in the subpath itself (/project/**), gives me a access denied error on pushing. So i tried various combinations. So what works is, having a user bound to a path. But then i have no anoynmous access, or enabling anonymous access, but then not beeing able to upload. config.json:
docker-compose.yaml
Thank you for any hint, have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @cernoel, You get denied when pushing with upload user because of the "/" in "/project/" (make it "project/") Let me know if it helps. |
Beta Was this translation helpful? Give feedback.
Hello @cernoel,
You get denied when pushing with upload user because of the "/" in "/project/" (make it "project/")
For anonymous read access on all repos, you should put "anonymousPolicy": ["read"] under every repo pattern.
Let me know if it helps.