Skip to content

Commit bfc92ec

Browse files
authored
Merge pull request #740 from rackerlabs/outside-net-additional-rbac
fix: Create second rbac policy on OUTSIDE network to permit "shared" access
2 parents 30032b0 + c89ba90 commit bfc92ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/understack-workflows/understack_workflows/main/sync_keystone.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ def _create_outside_network(conn: Connection, project_id: uuid.UUID):
9696
action="access_as_external",
9797
target_project_id=project_id.hex,
9898
)
99+
conn.network.create_rbac_policy( # type: ignore
100+
object_type="network",
101+
object_id=network.id,
102+
action="access_as_shared",
103+
target_project_id=project_id.hex,
104+
)
99105

100106

101107
def _delete_outside_network(conn: Connection, project_id: uuid.UUID):

0 commit comments

Comments
 (0)