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

csi-driver-spiffe vs csi-driver #39

Open
klDevaa opened this issue May 17, 2023 · 1 comment
Open

csi-driver-spiffe vs csi-driver #39

klDevaa opened this issue May 17, 2023 · 1 comment

Comments

@klDevaa
Copy link

klDevaa commented May 17, 2023

From the documentation of the cert-manager we can see that csi-driver spiffe allows to use SVIDs to enable mTLS between pods within their trust domain (https://cert-manager.io/docs/projects/csi-driver-spiffe/). However, in the csi-driver documentation (https://cert-manager.io/docs/projects/csi-driver/) there is also a way to use SPIFFE IDs and it also adds the right to use dnsNames (csi.cert-manager.io/dns-names). I am wondering, what is the difference between using these two tools, so what is the csi-driver-spiffe providing additionally and why it would be useful. Can the csi-driver-spiffe also be used to validate dns names when it requests the certificate? And is there any relevant documentation for this?

@klDevaa klDevaa changed the title csi-driver-spiffe vs csi-driver csi-driver-spiffe vs csi-driver #spiffe May 17, 2023
@klDevaa klDevaa changed the title csi-driver-spiffe vs csi-driver #spiffe csi-driver-spiffe vs csi-driver May 17, 2023
@inteon
Copy link
Member

inteon commented Sep 11, 2023

You can request the same certificates with csi-driver that you can request with csi-driver-spiffe.
However, csi-driver-spiffe will automatically generate a SPIFFE ID and use that in its request. In csi-driver, you have to manually specify what SPIFFE ID you want to request. Also, csi-driver-spiffe automatically approves the requested certificate request after it confirmed that the auto-generated SPIFFE ID indeed matches the identity of the Pod/ SA.

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

No branches or pull requests

2 participants