Securing Kubernetes Dashboard with ABAC

2/20/2019

I have Kubernetes Dashboard installed with basic auth using ABAC. Is there a way to make a user/group that can readonly when logged into the dashboard? Currently, if I skip the login screen (not logged in), I can still view and modify the cluster inside dashboard. Adding "readonly":true to the system:authenticated line doesn't seem to do anything.

I have a policy file:

{
  "apiVersion": "abac.authorization.kubernetes.io/v1beta1",
  "kind": "Policy",
  "spec": {
    "user": "admin",
    "namespace": "*",
    "resource": "*",
    "apiGroup": "*"
  }
}
{
  "apiVersion": "abac.authorization.kubernetes.io/v1beta1",
  "kind": "Policy",
  "spec": {
    "group": "system:authenticated",
    "nonResourcePath": "*"
  }
}
-- hyperstack
abac
dashboard
kubernetes
readonly

0 Answers