How to password protect l5d admin

What is the best solution to password protect the l5d admin part and the linkerd-viz Grafana part?

I have tried the following Ingress rules, but that doesn’t seem to work:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: admin-ingress
  annotations:
    kubernetes.io/ingress.class: "linkerd"
    ingress.kubernetes.io/auth-type: basic
    # name of the secret that contains the user/password definitions
    ingress.kubernetes.io/auth-secret: basic-auth
    # message to display with an appropiate context why the authentication is required
    ingress.kubernetes.io/auth-realm: "Authentication Required - foo"
spec:
  rules:
  - host: kuberadmin.justlease.be
    http:
      paths:
      - backend:
          serviceName: l5d
          servicePort: admin

Hi @anton,
Thanks for reaching out. Password protection of Linkerd admin is not currently supported, though adding basic auth to the admin site sounds likes a perfectly reasonable thing to do.

We always appreciate PR’s :slight_smile: , though you can also submit open an issue / feature request on GitHub.

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.