Files
service-seadex/src/auth_config.py
T
2026-11-12 09:39:19 +01:00

15 lines
398 B
Python

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")
})