Skip to content
Snippets Groups Projects
Commit 40649f0b authored by dhood's avatar dhood Committed by GitHub
Browse files

Add internal topics (without partition) to default allow rule (#24)

The topic wildcard + partition wildcard doesn't match
parent ed03a57e
No related branches found
No related tags found
No related merge requests found
......@@ -311,12 +311,6 @@ def create_permission_file(path, name, domain_id, permissions_dict):
<partition>%s</partition>
</%s>
""" % (tag, topic_name, 'rt', tag)
# DCPS* is necessary for builtin data readers
permission_str += """\
<subscribe>
<topic>DCPS*</topic>
</subscribe>
"""
else:
# no policy found: allow everything!
permission_str += """\
......@@ -330,7 +324,11 @@ def create_permission_file(path, name, domain_id, permissions_dict):
</subscribe>
"""
# DCPS* is necessary for builtin data readers
permission_str += """\
<subscribe>
<topic>DCPS*</topic>
</subscribe>
</allow_rule>
<default>DENY</default>
</grant>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment