-
Notifications
You must be signed in to change notification settings - Fork 94
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
How are we implementing policies in peerpods? #1369
Comments
I was thinking this. |
Thanks for starting this discussion @katexochen @jepio ! If any folks are interested in pulling the Policy from KBS or similar service, please reach out to me to make sure we are on the same page. As Paul, James, and others said, these are the main steps for using Policy:
|
@danmihai1 I don't really want to pull the policy from KBS. Rather, I would prefer using the SetPolicy mechanism that you already implemented in Kata. However, we need a mechanism to measure the policy. Do you think we could integrate a feature in the kata-agent to measure the policy into a vTPM? |
@katexochen It's very likely that you can measure the policy using vTPM. If you already measure other types of data, and you have a good way to verify the vTMP measurement, you'd "just" have to extend the vTPM measurement to cover the policy contents too. check_policy_hash() from https://github.com/microsoft/kata-containers/blob/2795dae5e99bd918b7b8d0a9643e9a857e95813d/src/agent/src/policy.rs#L261 is how I compared the measurement of the policy against a the TEE field value that can be remotely attested. In your case, you would add the policy measurement to vTPM, using code similar to check_policy_hash(). Then, you'd have to be sure that the verification of the vTPM based measurement takes place later (is that verification implemented using remote attestation?). |
Exactly, you would always allow SetPolicy and then check the expected policy was measured through remote attestation. |
A phase wise implementation in peer-pods will help imho. I have started looking at Phase-1. If anyone is already looking at it please let me know and we can join forces :-) |
The basic policy support is working using backported policy code here - https://github.com/bpradipt/kata-containers/tree/CC-0.8.1-policy The podvm changes to add opa service and rules depends on - #1602 If you run into any issues trying to get this working, let me know. Formal support will be added once we switch CAA to use kata-containers from main. |
Policy support is available in peer-pods. Closing this issue |
The initial PR was merged into kata, enabling policy enforcement on calls from the kata-shim.
In the last peerpods-call, we started discussion how we should bring this feature to peerpods. I'm opening this issue so we can continue the discussion here. This is not intended to be an implementation proposal. I rather want to collect open questions and requirements, so we can build a proposal on top of this.I collected the following points from @danmihai1's presentation and our discussion, please correct me if I got things wrong.
Open questions
The text was updated successfully, but these errors were encountered: