2021-05-13 13:59:12 -05:00
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"distSpecVersion": "1.0.1-dev",
|
2021-05-13 13:59:12 -05:00
|
|
|
"storage": {
|
|
|
|
"rootDirectory": "/tmp/zot"
|
|
|
|
},
|
|
|
|
"http": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port": "8080",
|
|
|
|
"realm": "zot",
|
|
|
|
"auth": {
|
|
|
|
"htpasswd": {
|
|
|
|
"path": "test/data/htpasswd"
|
|
|
|
},
|
|
|
|
"failDelay": 1
|
|
|
|
},
|
|
|
|
"accessControl": {
|
2021-09-10 10:23:26 -05:00
|
|
|
"**": {
|
2022-07-14 10:13:46 -05:00
|
|
|
"anonymousPolicy": ["read"],
|
2021-09-10 10:23:26 -05:00
|
|
|
"policies": [
|
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"charlie"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"read",
|
|
|
|
"create",
|
|
|
|
"update"
|
|
|
|
]
|
2021-09-10 10:23:26 -05:00
|
|
|
}
|
|
|
|
],
|
2022-02-24 15:31:36 -05:00
|
|
|
"defaultPolicy": [
|
|
|
|
"read",
|
2022-11-18 12:35:28 -05:00
|
|
|
"create",
|
|
|
|
"delete",
|
|
|
|
"detectManifestCollision"
|
2022-02-24 15:31:36 -05:00
|
|
|
]
|
2021-09-10 10:23:26 -05:00
|
|
|
},
|
|
|
|
"tmp/**": {
|
2022-02-24 15:31:36 -05:00
|
|
|
"defaultPolicy": [
|
|
|
|
"read",
|
|
|
|
"create",
|
|
|
|
"update"
|
|
|
|
]
|
2021-09-10 10:23:26 -05:00
|
|
|
},
|
|
|
|
"infra/**": {
|
2021-05-13 13:59:12 -05:00
|
|
|
"policies": [
|
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"alice",
|
|
|
|
"bob"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"create",
|
|
|
|
"read",
|
|
|
|
"update",
|
|
|
|
"delete"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"mallory"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"create",
|
|
|
|
"read"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
}
|
|
|
|
],
|
2022-02-24 15:31:36 -05:00
|
|
|
"defaultPolicy": [
|
|
|
|
"read"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
"repos2/repo": {
|
|
|
|
"policies": [
|
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"charlie"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"read",
|
|
|
|
"create"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
{
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"mallory"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"create",
|
|
|
|
"read"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
}
|
|
|
|
],
|
2022-02-24 15:31:36 -05:00
|
|
|
"defaultPolicy": [
|
|
|
|
"read"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
},
|
|
|
|
"adminPolicy": {
|
2022-02-24 15:31:36 -05:00
|
|
|
"users": [
|
|
|
|
"admin"
|
|
|
|
],
|
|
|
|
"actions": [
|
|
|
|
"read",
|
|
|
|
"create",
|
|
|
|
"update",
|
|
|
|
"delete"
|
|
|
|
]
|
2021-05-13 13:59:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"log": {
|
|
|
|
"level": "debug",
|
|
|
|
"output": "/tmp/zot.log"
|
|
|
|
}
|
|
|
|
}
|