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

Replace AA_KBC_PARAMS after enable initdata #1985

Closed
5 of 8 tasks
huoqifeng opened this issue Aug 7, 2024 · 5 comments · Fixed by #2006
Closed
5 of 8 tasks

Replace AA_KBC_PARAMS after enable initdata #1985

huoqifeng opened this issue Aug 7, 2024 · 5 comments · Fixed by #2006

Comments

@huoqifeng
Copy link

huoqifeng commented Aug 7, 2024

initdata is enabled in #1895 via #1912 and we're still keeping AA_KBC_PARAMS approach. Initdata will not take effect if AA_KBC_PARAMS set.

In this story, we'll

  • Add the kbs e2e tests to use initdata
    • Migrate existing test cases
    • Considering use KBS cert
    • Considering measurements/runtime_data checks for initdata.digest.
      • Requires reconcile with upstream for digest comparing for TEE drivers
  • Remove the AA_KBC_PARAMS logic
  • Adjust documentation
  • Providing default initData via configMap to improve the UX
    initdata: migrate key release test cases to initdata #2006 (comment)
@huoqifeng
Copy link
Author

@huoqifeng huoqifeng changed the title Remove AA_KBC_PARAMS after enable initdata Replace AA_KBC_PARAMS after enable initdata Aug 7, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in CoCo Releases Aug 8, 2024
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 15, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 16, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
@huoqifeng
Copy link
Author

@bpradipt @mkulke I noticed that the TEST_TRUSTEE_OPERATOR is used to test TestTrusteeOperatorKeyReleaseForSpecificKey for a pre-configured cluster in azure. Does the TrusteeOperator support https now? Considering the complexity when enable https in KBS, I think maybe we should use TrusteeOperator to test KBS https and the certificates in aa.toml and cdh.toml which will be passed in by initdata. wdyt?

huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 17, 2024
 - migrate key release test cases to initdata
 - remove AA_KBC_PARAMS and aaKBCParams
 - use allow-all rego policy to make key release test run correctly

Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
@bpradipt
Copy link
Member

@bpradipt @mkulke I noticed that the TEST_TRUSTEE_OPERATOR is used to test TestTrusteeOperatorKeyReleaseForSpecificKey for a pre-configured cluster in azure. Does the TrusteeOperator support https now? Considering the complexity when enable https in KBS, I think maybe we should use TrusteeOperator to test KBS https and the certificates in aa.toml and cdh.toml which will be passed in by initdata. wdyt?

I used CA signed certificates with TrusteeOperator, however I think we should be able to use self-signed certificates as well. Let me know if you need any help.

@huoqifeng
Copy link
Author

I used CA signed certificates with TrusteeOperator, however I think we should be able to use self-signed certificates as well. Let me know if you need any help.

OK, I think e2e test will use self-signed certificate. I'll add it.

huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 19, 2024
- add global-initdata in configmap and parameters
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 20, 2024
- add global-initdata in configmap and parameters
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 20, 2024
- add global-initdata in configmap and parameters
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 20, 2024
- add global-initdata in configmap and parameters
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 20, 2024
 - migrate key release test cases to initdata
 - remove AA_KBC_PARAMS and aaKBCParams
 - use allow-all rego policy to make key release test run correctly

Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 20, 2024
- add global-initdata in configmap and parameters
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 21, 2024
- rename GLOBAL_INITDATA to INITDATA
- rename CdhFilePath to CDHConfigPath
- rename AaFilePath to AAConfigPath

Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 21, 2024
- rename GLOBAL_INITDATA to INITDATA
- rename CdhFilePath to CDHConfigPath
- rename AaFilePath to AAConfigPath

Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 21, 2024
- Validate the initdata passed in both from configmap and annotation
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Aug 21, 2024
- Validate the initdata passed in both from configmap and annotation
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit to huoqifeng/cloud-api-adaptor that referenced this issue Sep 2, 2024
Fixes: confidential-containers#1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit that referenced this issue Sep 2, 2024
- add global-initdata in configmap and parameters
Fixes: #1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit that referenced this issue Sep 2, 2024
- rename GLOBAL_INITDATA to INITDATA
- rename CdhFilePath to CDHConfigPath
- rename AaFilePath to AAConfigPath

Fixes: #1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit that referenced this issue Sep 2, 2024
- Validate the initdata passed in both from configmap and annotation
Fixes: #1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
huoqifeng pushed a commit that referenced this issue Sep 2, 2024
Fixes: #1985

Signed-off-by: Qi Feng Huo <huoqif@cn.ibm.com>
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in CoCo Releases Sep 2, 2024
@huoqifeng huoqifeng reopened this Sep 2, 2024
@stevenhorsman
Copy link
Member

KBS cert depends on the KBS repo for support, but we can split this out into a separate issues for clarity if we want to test this in peer pods at all (rather than leave it to the attestation - kbs testing to cover).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants