-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loosen up Owner-Child resource subscription checks #4343
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just removes the restriction - I thought we discussed yesterday that we needed it when the owner was within the cluster, but possibly loosen it when the owner is referenced directly by ARM ID.
@theunrepentantgeek I've made the change as per above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with one minor comment
Closes #3754
What this PR does / why we need it:
We introduced this check a while ago with single-operator multitenancy credentials to prevent users from creating resources in a subscription that doesn't match the subscription of the owner resource. However, there could be scenarios where owner and child resources could be provisioned in distinct subscriptions.
This PR is to loosen up check between Owner-Child resource subscription mismatch for ARMID owner references. From a security perspective Azure has access checks and the operation is not allowed, it'll be rejected at ARM level.
Special notes for your reviewer:
Will add documentation after we make a decision on taking the change
If applicable: