-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99b386b
commit be36eba
Showing
10 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: traefik-forward-auth | ||
labels: | ||
app: traefik-forward-auth | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: traefik-forward-auth | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: traefik-forward-auth | ||
spec: | ||
terminationGracePeriodSeconds: 60 | ||
containers: | ||
- image: thomseddon/traefik-forward-auth:2 | ||
name: traefik-forward-auth | ||
ports: | ||
- containerPort: 4181 | ||
protocol: TCP | ||
env: | ||
- name: DEFAULT_PROVIDER | ||
value: oidc | ||
- name: DOMAIN | ||
value: rss3.io | ||
# INSECURE_COOKIE is required unless using https entrypoint | ||
- name: INSECURE_COOKIE | ||
value: "true" | ||
- name: PROVIDERS_OIDC_ISSUER_URL | ||
value: https://account.nsl.xyz/auth/realms/google | ||
- name: PROVIDERS_GOOGLE_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: traefik-forward-auth-secrets | ||
key: traefik-forward-auth-google-client-id | ||
- name: PROVIDERS_GOOGLE_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: traefik-forward-auth-secrets | ||
key: traefik-forward-auth-google-client-secret | ||
- name: SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: traefik-forward-auth-secrets | ||
key: traefik-forward-auth-secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- deploy.yaml | ||
- secret.yaml | ||
- svc.yaml | ||
- middleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: traefik-forward-auth | ||
namespace: default | ||
spec: | ||
forwardAuth: | ||
address: http://traefik-forward-auth:4181 | ||
authResponseHeaders: | ||
- X-Forwarded-User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: traefik-forward-auth | ||
namespace: guardian | ||
spec: | ||
forwardAuth: | ||
address: http://traefik-forward-auth:4181 | ||
authResponseHeaders: | ||
- X-Forwarded-User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: traefik.containo.us/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: traefik-forward-auth | ||
namespace: kube-system | ||
spec: | ||
forwardAuth: | ||
address: http://traefik-forward-auth:4181 | ||
authResponseHeaders: | ||
- X-Forwarded-User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- default.yaml | ||
- guardian.yaml | ||
- kube-system.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: traefik-forward-auth-secrets | ||
labels: | ||
app: traefik-forward-auth | ||
annotations: | ||
avp.kubernetes.io/path: "kv/data/guardian/traefik-forward-auth" | ||
type: Opaque | ||
stringData: | ||
traefik-forward-auth-oidc-client-id: "<OIDC_CLIENT_ID>" | ||
traefik-forward-auth-oidc-client-secret: "<OIDC_CLIENT_SECRET>" | ||
traefik-forward-auth-secret: "<SECRET>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: traefik-forward-auth | ||
labels: | ||
app: traefik-forward-auth | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: traefik-forward-auth | ||
ports: | ||
- name: auth-http | ||
port: 4181 | ||
targetPort: 4181 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters