zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/examples/config-policy.json (about) 1 { 2 "distSpecVersion": "1.1.0", 3 "storage": { 4 "rootDirectory": "/tmp/zot" 5 }, 6 "http": { 7 "auth": { 8 "htpasswd": { 9 "path": "test/data/htpasswd" 10 } 11 }, 12 "accessControl": { 13 "groups": { 14 "group1": { 15 "users": ["jack", "john", "jane", "ana"] 16 }, 17 "group2": { 18 "users": ["alice", "mike", "jim"] 19 } 20 }, 21 "repositories": { 22 "**": { 23 "policies": [{ 24 "users": ["charlie"], 25 "groups": ["admins", "developers", "group1"], 26 "actions": ["read", "create", "update"] 27 }, 28 { 29 "users": ["mary"], 30 "groups": ["group2"], 31 "actions": ["read", "create", "update", "delete"] 32 }], 33 "defaultPolicy": ["read", "create"] 34 }, 35 "tmp/**": { 36 "defaultPolicy": ["read", "create", "update"] 37 }, 38 "infra/*": { 39 "policies": [{ 40 "users": ["alice", "bob"], 41 "groups": ["maintainers","platformteam"], 42 "actions": ["create", "read", "update", "delete"] 43 }, 44 { 45 "users": ["mallory"], 46 "actions": ["create", "read"] 47 } 48 ], 49 "defaultPolicy": ["read"] 50 }, 51 "repos2/repo": { 52 "policies": [{ 53 "users": ["bob"], 54 "groups": ["sparkle_team","repo2_team"], 55 "actions": ["read", "create"] 56 }, 57 { 58 "users": ["mallory"], 59 "actions": ["create", "read"] 60 } 61 ], 62 "defaultPolicy": ["read"] 63 } 64 }, 65 "adminPolicy": { 66 "users": ["admin"], 67 "groups": ["admins","developers"], 68 "actions": ["read", "create", "update", "delete"] 69 } 70 } 71 }, 72 "log": { 73 "level": "debug", 74 "output": "/tmp/zot.log" 75 } 76 }