From 1d4ea2fa41341116b8fb25c6b953c6ff8a94d87c Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 12 Nov 2026 09:20:48 +0100 Subject: [PATCH] Whoops --- src/auth_configy.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/auth_configy.py diff --git a/src/auth_configy.py b/src/auth_configy.py new file mode 100644 index 0000000..d828ba1 --- /dev/null +++ b/src/auth_configy.py @@ -0,0 +1,15 @@ +from enum import StrEnum + +from service_auth import KeySource, ServiceAuth + + +class Caller(StrEnum): + GATEWAY = "gateway" + SCHEDULER = "scheduler" + ADMIN = "admin" + +auth = ServiceAuth({ + Caller.GATEWAY: KeySource("GATEWAY_KEY", "/etc/secrets/gateway_key"), + Caller.SCHEDULER: KeySource("SCHEDULER_KEY", "/etc/secrets/scheduler_key"), + Caller.ADMIN: KeySource("ADMIN_KEY","/etc/secrets/admin_key") +}) \ No newline at end of file