This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use full service domain for the CN (#22)
EKS is not adding the Subject Alternative Name (SAN) when signing the CSR. This means that we cannot use service name without specifying the namespace and `.svc` suffix. As you can see from the apiserver error message, the TLS certificate validation is checking only the CN. x509: certificate is valid for newrelic-metadata-injection-svc, not newrelic-metadata-injection-svc.default.svc This is a known issue in EKS: awslabs/amazon-eks-ami#341 This changes revert to using {service}.{namespace}.svc for the CN but check the length to be withing the limit of 64 characters defined on the x509 specification.
- Loading branch information
1 parent
4bbc78d
commit ece5e3a
Showing
2 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters