Skip to content

Commit

Permalink
Switch to OpenID auth
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed Dec 3, 2019
1 parent 5ee6143 commit 76e0b34
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
5 changes: 3 additions & 2 deletions deployments/infra/traefik/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ metadata:
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: http://traefik-forward-auth.infra.svc
ingress.kubernetes.io/auth-response-headers: X-Forwarded-User
spec:
rules:
- host: traefik.cluster.rebelinblue.com
Expand Down
5 changes: 3 additions & 2 deletions deployments/logging/promtail/promtail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,9 @@ metadata:
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: http://traefik-forward-auth.infra.svc
ingress.kubernetes.io/auth-response-headers: X-Forwarded-User
spec:
rules:
- host: promtail.cluster.rebelinblue.com
Expand Down
5 changes: 3 additions & 2 deletions deployments/vault/consul/consul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,9 @@ metadata:
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: http://traefik-forward-auth.infra.svc
ingress.kubernetes.io/auth-response-headers: X-Forwarded-User
spec:
rules:
- host: consul.cluster.rebelinblue.com
Expand Down
3 changes: 0 additions & 3 deletions setup/.env.sample
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
LINODE_TOKEN=""

AUTH_USERNAME=""
AUTH_PASSWORD=""

VAULT_ROOT_TOKEN=""
VAULT_ADMIN_USERNAME=""
VAULT_ADMIN_PASSWORD=""
Expand Down
6 changes: 0 additions & 6 deletions setup/bin/bootstrap-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ source "$REPO_ROOT/setup/.env"

kubectl -n infra create secret generic linode-dynamic-dns --from-literal="token=$LINODE_TOKEN"

AUTHSTRING=$(htpasswd -nb $AUTH_USERNAME $AUTH_PASSWORD)
kubectl -n logging create secret generic dashboards-auth --from-literal="auth=$AUTHSTRING"
kubectl -n monitoring create secret generic dashboards-auth --from-literal="auth=$AUTHSTRING"
kubectl -n apps create secret generic dashboards-auth --from-literal="auth=$AUTHSTRING"
kubectl -n vault create secret generic dashboards-auth --from-literal="auth=$AUTHSTRING"

kubectl -n vault delete secret vault-unseal-keys || true
kubectl -n vault create secret generic vault-unseal-keys --from-literal="VAULT_UNSEAL_KEY_1=$VAULT_UNSEAL_KEY_1" \
--from-literal="VAULT_UNSEAL_KEY_2=$VAULT_UNSEAL_KEY_2" \
Expand Down
5 changes: 3 additions & 2 deletions unused/deployments/monitoring/chronograf/chronograf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ metadata:
annotations:
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
ingress.kubernetes.io/auth-type: forward
ingress.kubernetes.io/auth-url: http://traefik-forward-auth.infra.svc
ingress.kubernetes.io/auth-response-headers: X-Forwarded-User
spec:
rules:
- host: chronograf.cluster.rebelinblue.com
Expand Down

0 comments on commit 76e0b34

Please sign in to comment.