dashboard

Sign-in Configuration

Introduction

How to apply

auth=strategy=<cookie/local>,secret=<supported secret>,<prop1=value1>,<prop2=value2>
kind: Deployment
apiVersion: apps/v1
metadata:
  labels:
    app: kore-board
    kore.board: backend
  name: backend
  namespace: kore
spec:
...
    spec:
      containers:
        - name: backend
          image: ghcr.io/kore3lab/kore-board.backend:latest
          args:
            - --metrics-scraper-url=http://metrics-scraper:8000
            - --log-level=info
            - --auth=strategy=cookie,secret=static-token,token=kore3lab

static-token

spec:
  containers:
    - name: backend
      image: ghcr.io/kore3lab/kore-board.backend:latest
      args:
        - --auth=strategy=<cookie/local>,secret=static-token,token=<token-string>

static-user

spec:
  containers:
    - name: backend
      image: ghcr.io/kore3lab/kore-board.backend:latest
      args:
        - --auth=strategy=<cookie/local>,secret=static-user,username=<username>,password=<password>

basic-auth

spec:
  containers:
    - name: backend
      image: ghcr.io/kore3lab/kore-board.backend:latest
      args:
        - --auth=strategy=<cookie/local>,secret=basic-auth,dir=/var/user
        ...
      volumeMounts:
      - name: user-vol
        mountPath: "/var/user"
    volumes:
    - name: user-vol
      secret:
        secretName: secret-basic-auth

service-account-token

spec:
  containers:
    - name: backend
      image: ghcr.io/kore3lab/kore-board.backend:latest
      args:
        - --auth=strategy=<cookie/local>,access-key=<access-token-secret>,refresh=<refresh-token-secret>,secret=service-account-token
$ SECRET="$(kubectl get sa -n kore -l app=kore-board -o jsonpath='{.items[0].secrets[0].name}')"
$ echo "$(kubectl get secret ${SECRET} -n kore -o jsonpath='{.data.token}' | base64 --decode)"
$ SECRET="$(kubectl get sa default -o jsonpath='{..secrets[0].name}')"
$ echo "$(kubectl get secret ${SECRET} -o jsonpath='{.data.token}' | base64 --decode)"