-
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
74630ed
commit 19df363
Showing
26 changed files
with
1,543 additions
and
887 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,19 @@ | ||
{ | ||
"distSpecVersion": "1.0.1-dev", | ||
"http": { | ||
"address": "127.0.0.1", | ||
"port": "8080", | ||
"readonly": false | ||
}, | ||
"log": { | ||
"level": "debug" | ||
}, | ||
"storage": { | ||
"rootdirectory": "/tmp/zot" | ||
}, | ||
"extensions": { | ||
"sysconfig": { | ||
"enable": true | ||
} | ||
} | ||
} |
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,130 @@ | ||
{ | ||
"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", | ||
"extensions": { | ||
"sysconfig": { | ||
"enable": true | ||
} | ||
}, | ||
"http": { | ||
"accesscontrol": { | ||
"adminpolicy": { | ||
"actions": [ | ||
"read", | ||
"create", | ||
"update", | ||
"delete" | ||
], | ||
"users": [ | ||
"admin" | ||
] | ||
}, | ||
"repositories": { | ||
"**": { | ||
"defaultpolicy": [ | ||
"read", | ||
"create" | ||
], | ||
"policies": [ | ||
{ | ||
"actions": [ | ||
"read" | ||
], | ||
"users": [ | ||
"meli", | ||
"sebi" | ||
] | ||
} | ||
] | ||
}, | ||
"infra/**": { | ||
"defaultpolicy": [ | ||
"read" | ||
], | ||
"policies": [ | ||
{ | ||
"actions": [ | ||
"create", | ||
"read", | ||
"update", | ||
"delete" | ||
], | ||
"users": [ | ||
"alice", | ||
"bob" | ||
] | ||
}, | ||
{ | ||
"actions": [ | ||
"create", | ||
"read" | ||
], | ||
"users": [ | ||
"mallory" | ||
] | ||
} | ||
] | ||
}, | ||
"newrepo": { | ||
"policies": [ | ||
{ | ||
"actions": [ | ||
"read" | ||
], | ||
"users": [ | ||
"meli", | ||
"sebi" | ||
] | ||
} | ||
] | ||
}, | ||
"repos2/repo": { | ||
"defaultpolicy": [ | ||
"read" | ||
], | ||
"policies": [ | ||
{ | ||
"actions": [ | ||
"read", | ||
"create" | ||
], | ||
"users": [ | ||
"charlie" | ||
] | ||
}, | ||
{ | ||
"actions": [ | ||
"create", | ||
"read" | ||
], | ||
"users": [ | ||
"mallory" | ||
] | ||
} | ||
] | ||
}, | ||
"tmp/**": { | ||
"defaultpolicy": [ | ||
"read", | ||
"create", | ||
"update" | ||
] | ||
} | ||
} | ||
}, | ||
"address": "127.0.0.1", | ||
"auth": { | ||
"faildelay": 1, | ||
"htpasswd": { | ||
"path": "/home/peusebiu/htpasswd" | ||
} | ||
}, | ||
"port": "8080", | ||
"realm": "zot" | ||
}, | ||
"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
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.