2021-05-13 13:59:12 -05:00
|
|
|
{
|
2023-01-31 12:35:33 -05:00
|
|
|
"distSpecVersion": "1.1.0-dev",
|
2021-05-13 13:59:12 -05:00
|
|
|
"storage": {
|
|
|
|
"rootDirectory": "/tmp/zot"
|
|
|
|
},
|
|
|
|
"http": {
|
|
|
|
"auth": {
|
|
|
|
"htpasswd": {
|
|
|
|
"path": "test/data/htpasswd"
|
2023-03-08 14:47:15 -05:00
|
|
|
}
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
"accessControl": {
|
2023-03-08 14:47:15 -05:00
|
|
|
"groups": {
|
|
|
|
"group1": {
|
|
|
|
"users": ["jack", "john", "jane", "ana"]
|
|
|
|
},
|
|
|
|
"group2": {
|
|
|
|
"users": ["alice", "mike", "jim"]
|
|
|
|
}
|
2021-09-10 10:23:26 -05:00
|
|
|
},
|
2023-03-08 14:47:15 -05:00
|
|
|
"repositories": {
|
|
|
|
"**": {
|
|
|
|
"policies": [{
|
|
|
|
"users": ["charlie"],
|
|
|
|
"groups": ["admins", "developers", "group1"],
|
|
|
|
"actions": ["read", "create", "update"]
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
{
|
2023-03-08 14:47:15 -05:00
|
|
|
"users": ["mary"],
|
|
|
|
"groups": ["group2"],
|
|
|
|
"actions": ["read", "create", "update", "delete"]
|
|
|
|
}],
|
|
|
|
"defaultPolicy": ["read", "create"]
|
|
|
|
},
|
|
|
|
"tmp/**": {
|
|
|
|
"defaultPolicy": ["read", "create", "update"]
|
|
|
|
},
|
|
|
|
"infra/*": {
|
|
|
|
"policies": [{
|
|
|
|
"users": ["alice", "bob"],
|
|
|
|
"groups": ["maintainers","platformteam"],
|
|
|
|
"actions": ["create", "read", "update", "delete"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"users": ["mallory"],
|
|
|
|
"actions": ["create", "read"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"defaultPolicy": ["read"]
|
|
|
|
},
|
|
|
|
"repos2/repo": {
|
|
|
|
"policies": [{
|
|
|
|
"users": ["bob"],
|
|
|
|
"groups": ["sparkle_team","repo2_team"],
|
|
|
|
"actions": ["read", "create"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"users": ["mallory"],
|
|
|
|
"actions": ["create", "read"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"defaultPolicy": ["read"]
|
|
|
|
}
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
"adminPolicy": {
|
2023-03-08 14:47:15 -05:00
|
|
|
"users": ["admin"],
|
|
|
|
"groups": ["admins","developers"],
|
|
|
|
"actions": ["read", "create", "update", "delete"]
|
2021-05-13 13:59:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"log": {
|
|
|
|
"level": "debug",
|
|
|
|
"output": "/tmp/zot.log"
|
|
|
|
}
|
|
|
|
}
|