summaryrefslogtreecommitdiffstats
path: root/custodia.conf
diff options
context:
space:
mode:
Diffstat (limited to 'custodia.conf')
-rw-r--r--custodia.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/custodia.conf b/custodia.conf
index 1a987df..c77cf8b 100644
--- a/custodia.conf
+++ b/custodia.conf
@@ -81,3 +81,17 @@ handler = custodia.root.Secrets
allowed_keytypes = simple kem
store = encrypted
+# Forward
+[authz:forwarders]
+handler = custodia.httpd.authorizers.SimplePathAuthz
+paths = /forwarder /forwarder_loop
+
+[/forwarder]
+handler = custodia.forwarder.Forwarder
+forward_uri = http+unix://%2e%2fserver_socket/secrets
+forward_headers = {"CUSTODIA_AUTH_ID": "test", "CUSTODIA_AUTH_KEY": "foo-host-key"}
+
+[/forwarder_loop]
+handler = custodia.forwarder.Forwarder
+forward_uri = http+unix://%2e%2fserver_socket/forwarder_loop
+forward_headers = {"REMOTE_USER": "test"}