Commit 55c939c3 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Simplify service routing key

parent 95e1914a
......@@ -229,12 +229,9 @@ def topic_endpoint_apiclient(request, apiclient):
routing_key = request.POST.get('routing_key', '')
if name == 'services':
if routing_key.startswith('service.'):
match ='service.(.+)', routing_key)
if match:
service_name =
return ALLOW
# TODO is this check sufficient?
return ALLOW
elif name == 'sites':
if routing_key ==
return topic_auth_decision(request, ALLOW)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment