mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 02:52:07 +00:00
Fix routed deployment api key usage
This commit is contained in:
parent
997bd3ac34
commit
46fec89460
@ -120,6 +120,8 @@ def handle_request(env, start_response):
|
||||
start_response('401 Unauthorized', [])
|
||||
yield 'Unauthorized'
|
||||
return
|
||||
if not isinstance(eak, str):
|
||||
eak = eak.decode('utf8')
|
||||
salt = '$'.join(eak.split('$', 3)[:-1]) + '$'
|
||||
if crypt.crypt(apikey, salt) != eak:
|
||||
start_response('401 Unauthorized', [])
|
||||
|
Loading…
Reference in New Issue
Block a user