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

imagerepo: adopt Kubernetes style TLS secrets #434

Merged
merged 2 commits into from
Aug 23, 2023
Merged

imagerepo: adopt Kubernetes style TLS secrets #434

merged 2 commits into from
Aug 23, 2023

Conversation

aryan9600
Copy link
Member

Adopt Kubernetes TLS secrets API to check for TLS data in the Secret referred to by .spec.certSecretRef, i.e. check for keys tls.crt and tls.key for the certificate and private key. Use ca.crt for the CA certificate.
Deprecate the usage of caFile, certFile and keyFile keys.

@aryan9600 aryan9600 added enhancement New feature or request area/security Security related issues and pull requests area/api API related issues and pull requests labels Aug 18, 2023
docs/spec/v1beta2/imagerepositories.md Outdated Show resolved Hide resolved
internal/secret/secret.go Outdated Show resolved Hide resolved
Copy link
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Adopt Kubernetes TLS secrets API to check for TLS data in the Secret
referred to by `.spec.certSecretRef`, i.e. check for keys `tls.crt` and
`tls.key` for the certificate and private key. Use `ca.crt` for the CA
certificate.
Deprecate the usage of `caFile`, `certFile` and `keyFile` keys.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
@aryan9600 aryan9600 merged commit 89c1be3 into main Aug 23, 2023
6 checks passed
@aryan9600 aryan9600 deleted the tls-secret branch August 23, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api API related issues and pull requests area/security Security related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants