forked from k-space/doorboy-proxy
fix slack-kube auth
1. reorder slack auth methods 2. refactor + fix kube slack lookup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user