confidential-containers / cloud-api-adaptor

Ability to create Kata pods using cloud provider APIs aka the peer-pods approach
Apache License 2.0
44 stars 71 forks source link

kbs: Handle self signed cert for kbs and attestation agent #1886

Open wyuany opened 3 days ago

wyuany commented 3 days ago

Currently, we can only access kbs from pod with http connection.

CDH of guest component has example and code logic to handle kbs cert. https://github.com/confidential-containers/guest-components/blob/main/confidential-data-hub/example.config.toml#L19
Attestation-agent of guest component has the similar definition.

However, there isn't code of cloud-api-adaptor to handle the kbs cert. There is no way to pass the parameter to configuration files of cdh and attestation agent.

This issue aims to handle the parameter of kbs cert in cloud-api-adaptor and pass the parameters to cdh and attestation-agent.

mkulke commented 10 hours ago

a couple of thoughts

see also this issue: https://github.com/confidential-containers/cloud-api-adaptor/issues/1369