diff options
author | Christian Heimes <christian@python.org> | 2015-10-02 14:45:36 +0200 |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2015-10-02 14:45:36 +0200 |
commit | a07fa7ae9d08416de8bc9994adce1353310d4ba3 (patch) | |
tree | 62d89167c7fb34323f9f1ef82583d6dfd6a7a4c5 /custodia.conf | |
download | gustodia-a07fa7ae9d08416de8bc9994adce1353310d4ba3.tar.gz gustodia-a07fa7ae9d08416de8bc9994adce1353310d4ba3.tar.xz gustodia-a07fa7ae9d08416de8bc9994adce1353310d4ba3.zip |
Initial commit with first working hack
Diffstat (limited to 'custodia.conf')
-rw-r--r-- | custodia.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/custodia.conf b/custodia.conf new file mode 100644 index 0000000..40f513e --- /dev/null +++ b/custodia.conf @@ -0,0 +1,47 @@ +[global] +server_version = "Secret/0.0.7" +debug = True + +#[auth:simple] +#handler = custodia.httpd.authenticators.SimpleCredsAuth +#uid = 48 +#gid = 48 + +[auth:header] +handler = custodia.httpd.authenticators.SimpleHeaderAuth +name = REMOTE_USER + +[authz:paths] +handler = custodia.httpd.authorizers.SimplePathAuthz +paths = /. + +[authz:namespaces] +handler = custodia.secrets.Namespaces +path = /secrets/ +store = simple + +[store:simple] +handler = custodia.store.sqlite.SqliteStore +dburi = secrets.db +table = secrets + +[/] +handler = custodia.root.Root +store = simple + + +# Multi-tenant example +[store:tenant1] +handler = custodia.store.sqlite.SqliteStore +dburi = secrets.db +table = tenant1 + +[authz:tenant1] +handler = custodia.secrets.Namespaces +path = /tenant1/secrets/ +store = tenant1 + +[/tenant1/secrets] +handler = custodia.root.Secrets +store = tenant1 + |