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

Add SPIFFE ID extraction to CertificateAuthority #685

Open
ctyano opened this issue May 8, 2019 · 0 comments
Open

Add SPIFFE ID extraction to CertificateAuthority #685

ctyano opened this issue May 8, 2019 · 0 comments

Comments

@ctyano
Copy link
Contributor

ctyano commented May 8, 2019

According to the implementation, the supported format of SPIFFE ID in Athenz should be:

        // spiffe://[<provider-cluster>/ns/]<athenz-domain>/sa/<athenz-service>
        // spiffe://[<provider-cluster>/ns/]<athenz-domain>/ra/<athenz-role>

Also for the general cases of retrieving certificates, CLI tools already support including SPIFFE ID in CSR.
https://github.com/yahoo/athenz/blob/eb0a7064ced6d0386a9e2c61ee142a413f5a8388/utils/zts-rolecert/zts-rolecert.go#L76
https://github.com/yahoo/athenz/blob/6af7ec1dc842247351c5134aa378bce291718c74/utils/zts-svccert/zts-svccert.go#L92

However, there is no reference implementation for validation.
Is it possible to add a step in CertificateAuthorityto extract a principal name from SPIFFE ID?

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

1 participant