Skip to content
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

Default to deny all security policy. #1320

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Mar 10, 2022

When bringing up the UVM default to closed door security policy
to reject any modification requests prior to security policy is set
inside GCS.
When security policy is empty, default to open door policy.

Signed-off-by: Maksim An maksiman@microsoft.com

@anmaxvl anmaxvl requested a review from a team as a code owner March 10, 2022 02:57
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Mar 10, 2022

@SeanTAllen , I don't remember why we didn't do this to start with? Is there something obvious I'm missing?

@SeanTAllen
Copy link
Contributor

@anmaxvl yes, because otherwise it would break existing deployments that need to be updated to have an allow all security policy.

@anmaxvl
Copy link
Contributor Author

anmaxvl commented Mar 10, 2022

@SeanTAllen would the approach in this PR work?

@SeanTAllen
Copy link
Contributor

@anmaxvl I dont see what this PR accomplishes. Its not really defaulting to closed as the absence of a policy then switches it to open so... its the same thing as it is now.

@anmaxvl anmaxvl force-pushed the default-to-closed-policy branch 3 times, most recently from dbcfed1 to ff9a733 Compare March 10, 2022 20:32
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Mar 10, 2022

@SeanTAllen , I updated the commit and PR description a bit. So what this PR is making sure that GCS won't accept any supported requests before the policy is set. Also we make an assumption in this PR, that if no security policy is set, that it means that everything is allowed.

@SeanTAllen
Copy link
Contributor

Got it.

@kevpar
Copy link
Member

kevpar commented Mar 11, 2022

All I can think of is we'll need to make sure we don't try to do any operations that policy would deny between UVM startup and when we set the policy to open. But assuming you've tested creating a pod and it still works I think we are good.

When bringing up the UVM default to closed door security policy
to reject any modification requests prior to security policy is set
inside GCS.
When security policy is empty, default to open door policy.

Signed-off-by: Maksim An <maksiman@microsoft.com>
@kevpar
Copy link
Member

kevpar commented Mar 15, 2022

@anmaxvl I see you assigned me to this, was there something specific you're looking for me to do? I already approved so unless something changes it's good to go from my perspective. We would just need another reviewer in that case.

@anmaxvl
Copy link
Contributor Author

anmaxvl commented Mar 15, 2022

@anmaxvl I see you assigned me to this, was there something specific you're looking for me to do? I already approved so unless something changes it's good to go from my perspective. We would just need another reviewer in that case.

no, nothing. I think we usually self-assign when doing a review, so I just did that. agree, that we need another pair of eyes here. @microsoft/containerplat

@anmaxvl anmaxvl merged commit cf6b2c9 into microsoft:master Mar 16, 2022
@anmaxvl anmaxvl deleted the default-to-closed-policy branch March 16, 2022 06:26
anmaxvl added a commit to anmaxvl/hcsshim that referenced this pull request Mar 16, 2022
When bringing up the UVM default to closed door security policy
to reject any modification requests prior to security policy is set
inside GCS.
When security policy is empty, default to open door policy.

Signed-off-by: Maksim An <maksiman@microsoft.com>
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
When bringing up the UVM default to closed door security policy
to reject any modification requests prior to security policy is set
inside GCS.
When security policy is empty, default to open door policy.

Signed-off-by: Maksim An <maksiman@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants