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

extended ingress domain and TLS secret checks #200

Open
bergerx opened this issue Oct 18, 2021 · 1 comment
Open

extended ingress domain and TLS secret checks #200

bergerx opened this issue Oct 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bergerx
Copy link
Owner

bergerx commented Oct 18, 2021

Push #199 further with these stretch goals for ingress checks:

  • the cert in the secret is not self-signed and must match the host
  • another ingress using the same host+port (may be hard to catch since regex can be used, and there can be many ingresses in the clusters, checking ingresses just in the same namespace may get most operators catch most instances)
  • verify the domain and cert by checking the host+path (this may be misleading for cases where operators are using VPN or have ingresses has IP restriction)
@bergerx
Copy link
Owner Author

bergerx commented Nov 4, 2021

I just came across a go implementation that reads Kubernetes secrets and checks the certs inside them:
https://github.com/joe-elliott/cert-exporter/blob/master/src/checkers/periodicSecretChecker.go

It collects/renders this type of information from secrets:

cert_exporter_secret_expires_in_seconds{cn="*....",issuer="R3",key_name="tls.crt",secret_name="default-wildcard-certificate",secret_namespace="cert-manager"} 1.779639553384244e+06
cert_exporter_secret_expires_in_seconds{cn="ISRG Root X1",issuer="DST Root CA X3",key_name="tls.crt",secret_name="default-wildcard-certificate",secret_namespace="cert-manager"} 9.167674855310184e+07
cert_exporter_secret_expires_in_seconds{cn="R3",issuer="ISRG Root X1",key_name="tls.crt",secret_name="default-wildcard-certificate",secret_namespace="cert-manager"} 1.2190870555324073e+08

@bergerx bergerx changed the title extended ingress domain and TLS checks extended ingress domain and TLS secret checks Nov 4, 2021
@bergerx bergerx moved this to To do in Template Improvements Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant