Customer can add basic authentication at ingress (proxy/load-balancer) level to deployed infrastructure by input annotations at ingress:

ingress:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/auth-realm: external testing login
    nginx.ingress.kubernetes.io/auth-secret: prod-htpasswd
    nginx.ingress.kubernetes.io/auth-secret-type: auth-file
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/proxy-body-size: 512m
    nginx.ingress.kubernetes.io/satisfy: any
    nginx.ingress.kubernetes.io/whitelist-source-range: 0.0.0.0

 https://kubernetes.github.io/ingress-nginx/examples/auth/basic/


In case customer want to define an additional ingress using an individual configuration file, while the other path can remain in the "values.yml"

Please have a look at the attached files, add the needed annotations to one and deploy it via {{kubectl apply -f}}

ingress-dev-author.yamlingress-dev-public.yaml

Please replace the content of the configuration file using your specific values of your environment.