Environment permission issue with serviceProjectNetworkAdmin role. #2795
Stepanenko-Alexey
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
There is a an issue with serviceProjectNetworkAdmin based on environment tag.
1-resman:
Project factory - disabled
data/Stage-3/config.yaml:
With this config, stage 3 resman service account gets serviceProjectNetworkAdmin on networking folder with environment condition. In this case on development net-spoke project with development tag.
Now the issue is when SA (created by stage 3) is trying to attach service project to host net-spoke project it gets error:
Error 403: Required 'compute.organizations.disableXpnResource' permission for 'projects/abc-abcd-dev-net-spoke-0'
The issue doesn't exist with project factory because, PF service account get this permission without condition.
The workaround i did is disable iam binding with condition in case of serviceProjectNetworkAdmin.
1-resman>stage-2-networking.tf>module.net-folder
So now SA gets permission on all spokes without environment separation.
Seems that the issue is XPN permission that can be granted only on Org or Folder level.
Probably the solution is to place net-spoke projects under environment folders and grant serviceProjectNetworkAdmin on folder without condition.
Beta Was this translation helpful? Give feedback.
All reactions