nginxinc / kubernetes-ingress

NGINX and NGINX Plus Ingress Controllers for Kubernetes
https://docs.nginx.com/nginx-ingress-controller
Apache License 2.0
4.67k stars 1.97k forks source link

[Bug]: Certs in example and test folders are expired #6433

Open haywoodsh opened 1 month ago

haywoodsh commented 1 month ago

Version

edge

What Kubernetes platforms are you running on?

Other

What happened?

A few example and test certs in the repo are expired.

Steps to reproduce

  1. For the following Secret YAML files in the repo, copy the values of data.tls.crt https://github.com/nginxinc/kubernetes-ingress/blob/main/examples/custom-resources/basic-auth/cafe-secret.yaml https://github.com/nginxinc/kubernetes-ingress/blob/main/examples/shared-examples/default-server-secret/default-server-secret.yaml https://github.com/nginxinc/kubernetes-ingress/blob/main/tests/data/common/default-server-secret.yaml
  2. echo <tls.crt value> | base64 --decode | openssl x509 -text
  3. the certs appear to be expired, e.g.
    Certificate:
    Data:
        Version: 1 (0x0)
        Serial Number:
            c0:38:5f:6d:2e:c6:97:5a
        Signature Algorithm: sha256WithRSAEncryption
        Issuer: C=US, ST=CA, O=Internet Widgits Pty Ltd, CN=cafe.example.com
        Validity
            Not Before: Sep 12 16:15:35 2018 GMT
            Not After : Sep 11 16:15:35 2023 GMT
        Subject: C=US, ST=CA, O=Internet Widgits Pty Ltd, CN=cafe.example.com

Expected behaviour

Certs should be up-to-date

Kubectl Describe output

No response

Log output

No response

Contributing Guidelines

github-actions[bot] commented 1 month ago

Hi @haywoodsh thanks for reporting!

Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this :slightly_smiling_face:

Cheers!