summaryrefslogtreecommitdiffstats
path: root/custodia.conf
blob: 40f513eb2638c48c07a20d4a382de8865a74a6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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