fix slack-kube auth

1. reorder slack auth methods
2. refactor + fix kube slack lookup
This commit is contained in:
2026-06-11 23:03:05 +03:00
parent 973c6ac390
commit c5d4f603e2
3 changed files with 33 additions and 27 deletions

View File

@@ -171,6 +171,8 @@ async def swipe(request):
key = request.headers.get("KEY")
data = request.json
doors = set()
# this mapping also duplicated to slack.py
if key == DOORBOY_SECRET_FLOOR:
doors.update(["backdoor", "frontdoor", "grounddoor"])
if key == DOORBOY_SECRET_WORKSHOP: