Skip to content

Feature: Recognize secret references in NGINX-specific annotations for Ingress #560

@dabico

Description

@dabico

For an ingress definition like:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: example-ingress
  namespace: example
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt"
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: example-ingress-auth
    nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required'
spec:
  ingressClassName: nginx
  tls:
    - hosts: [] # Host names go here...
      secretName: example-ingress-tls
  rules: [] # Ingress rules go here...

example-ingress-tls is correctly recognized as a used secret, but the example-ingress-auth used in the ingress-nginx-specific annotation is not. It would be cool if kor would also check a pre-defined list of annotations for secret references (at least for ingresses).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions