-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extending SANs DNS entries #170
base: main
Are you sure you want to change the base?
Conversation
please modify this too: https://github.com/AthenZ/k8s-athenz-sia/blob/main/athenz-sia.env |
|
Signed-off-by: myajima <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simple review.
pkg/config/derived-service-cert.go
Outdated
@@ -48,6 +49,7 @@ func (idCfg *IdentityConfig) derivedServiceCertConfig() error { | |||
Provider: "", | |||
AthenzDomainName: "", | |||
AthenzServiceName: "", | |||
CertExtraSANDNSs: []string{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should change in a way so that you can set the following in pkg/certificate/identity.go
:
SANs: util.SubjectAlternateNames{
DNSNames: idCfg.ServiceCert.CopperArgos.Sans,
URIs: []url.URL{*spiffeURI},
},
introducing CertExtraSANDNSs
under CopperArgosMode
doesn't look clean to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a sample PR: #179
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mlajkim To simplify the PR, could you make the PR against ctyano:tatyano, so that we can include the both of this original PR and your proposal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
This Pull Requests adds capability to set additional Subjct Alternative Names DNS field to the identity certificates issued by SIA.
Currently, the implementation restricts to have only certain syntaxes in SANs DNS and this restriction is limiting the use of the identity certificates for server certificate purposes.
This enhancement will bring more flexibility to add SANs DNS that matches their actual DNS domains.
For the security perspective it is recommended to always verify the SANs DNS in CSR by the instance identity provider.
Assignees
Assignees
is setType of changes
labels
of the following that fits:enhancement
: New FeatureFlags
Checklist
[skip ci]
/[ci skip]
/[no ci]
/[skip actions]
/[actions skip]
in the PR title if necessaryChecklist for maintainer
Squash and merge
[skip ci]
/[ci skip]
/[no ci]
/[skip actions]
/[actions skip]