-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for changing config via API
closes #268, closes #698 Signed-off-by: Petu Eusebiu <[email protected]>
- Loading branch information
1 parent
6471add
commit 4bc9813
Showing
33 changed files
with
1,965 additions
and
1,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"distspecversion": "1.0.1-dev", | ||
"extensions": { | ||
"sysconfig": { | ||
"enable": true | ||
} | ||
}, | ||
"http": { | ||
"accesscontrol": { | ||
"adminpolicy": { | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update", | ||
"delete" | ||
], | ||
"users": [ | ||
"admin" | ||
] | ||
} | ||
}, | ||
"address": "127.0.0.1", | ||
"auth": { | ||
"htpasswd": { | ||
"path": "test/data/htpasswd" | ||
} | ||
}, | ||
"port": "5000" | ||
}, | ||
"log": { | ||
"level": "debug" | ||
}, | ||
"storage": { | ||
"rootdirectory": "/tmp/zot" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,115 @@ | ||
{ | ||
"distSpecVersion": "1.0.1-dev", | ||
"storage": { | ||
"rootDirectory": "/tmp/zot" | ||
}, | ||
"http": { | ||
"address": "127.0.0.1", | ||
"port": "8080", | ||
"realm": "zot", | ||
"auth": { | ||
"htpasswd": { | ||
"path": "test/data/htpasswd" | ||
}, | ||
"failDelay": 1 | ||
}, | ||
"accessControl": { | ||
"**": { | ||
"anonymousPolicy": ["read"], | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"charlie" | ||
], | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read", | ||
"create" | ||
] | ||
}, | ||
"tmp/**": { | ||
"defaultPolicy": [ | ||
"read", | ||
"create", | ||
"update" | ||
] | ||
}, | ||
"infra/**": { | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"alice", | ||
"bob" | ||
], | ||
"actions": [ | ||
"create", | ||
"read", | ||
"update", | ||
"delete" | ||
] | ||
}, | ||
{ | ||
"users": [ | ||
"mallory" | ||
], | ||
"actions": [ | ||
"create", | ||
"read" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read" | ||
] | ||
}, | ||
"repos2/repo": { | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"charlie" | ||
], | ||
"actions": [ | ||
"read", | ||
"create" | ||
] | ||
}, | ||
{ | ||
"users": [ | ||
"mallory" | ||
], | ||
"actions": [ | ||
"create", | ||
"read" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read" | ||
] | ||
}, | ||
"adminPolicy": { | ||
"users": [ | ||
"admin" | ||
], | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update", | ||
"delete" | ||
] | ||
} | ||
} | ||
}, | ||
"log": { | ||
"level": "debug", | ||
"output": "/tmp/zot.log" | ||
} | ||
} | ||
{ | ||
"distSpecVersion": "1.0.1-dev", | ||
"storage": { | ||
"rootDirectory": "/tmp/zot" | ||
}, | ||
"http": { | ||
"address": "127.0.0.1", | ||
"port": "8080", | ||
"realm": "zot", | ||
"auth": { | ||
"htpasswd": { | ||
"path": "test/data/htpasswd" | ||
}, | ||
"failDelay": 1 | ||
}, | ||
"accessControl": { | ||
"repositories": { | ||
"**": { | ||
"anonymousPolicy": ["read"], | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"charlie" | ||
], | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read", | ||
"create" | ||
] | ||
}, | ||
"tmp/**": { | ||
"defaultPolicy": [ | ||
"read", | ||
"create", | ||
"update" | ||
] | ||
}, | ||
"infra/**": { | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"alice", | ||
"bob" | ||
], | ||
"actions": [ | ||
"create", | ||
"read", | ||
"update", | ||
"delete" | ||
] | ||
}, | ||
{ | ||
"users": [ | ||
"mallory" | ||
], | ||
"actions": [ | ||
"create", | ||
"read" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read" | ||
] | ||
}, | ||
"repos2/repo": { | ||
"policies": [ | ||
{ | ||
"users": [ | ||
"charlie" | ||
], | ||
"actions": [ | ||
"read", | ||
"create" | ||
] | ||
}, | ||
{ | ||
"users": [ | ||
"mallory" | ||
], | ||
"actions": [ | ||
"create", | ||
"read" | ||
] | ||
} | ||
], | ||
"defaultPolicy": [ | ||
"read" | ||
] | ||
} | ||
}, | ||
"adminPolicy": { | ||
"users": [ | ||
"admin" | ||
], | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update", | ||
"delete" | ||
] | ||
} | ||
} | ||
}, | ||
"log": { | ||
"level": "debug", | ||
"output": "/tmp/zot.log" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.