add registry rules

This commit is contained in:
Morten Olsen
2025-09-10 11:55:54 +02:00
parent 4691ab1139
commit abdd4b81c4
3 changed files with 32 additions and 4 deletions

View File

@@ -36,6 +36,9 @@ data:
},
"auth": {
"failDelay": 5,
"htpasswd": {
"path": "/etc/zot/htpasswd"
},
"openid": {
"providers": {
"oidc": {
@@ -53,12 +56,22 @@ data:
"actions": ["read", "create", "update", "delete"]
},
"repositories": {
"public/**": {
"anonymousPolicy": ["read"],
"defaultPolicy": ["read"],
"policies": [
{
"users": ["*"],
"actions": ["create", "update", "delete"]
}
]
},
"**": {
"defaultPolicy": ["read"],
"policies": [
{
"users": ["*"],
"actions": ["push", "delete"]
"actions": ["create", "update", "delete"]
}
]
}