-
Notifications
You must be signed in to change notification settings - Fork 0
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
0040629
commit 6804d2c
Showing
12 changed files
with
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ swapoff | |
swaptotal | ||
tflint | ||
tfstate | ||
thomseddon | ||
traefik | ||
virtualenvs | ||
vyos | ||
|
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,2 @@ | ||
domains: | ||
- drove-dev.ictsc.net |
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,2 @@ | ||
domains: | ||
- drove.ictsc.net |
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,8 @@ | ||
apiVersion: v2 | ||
name: forward-auth | ||
description: Traefik Forward Auth Template | ||
type: application | ||
version: 0.1.0 | ||
icon: https://icttoracon.net/wp-content/uploads/2023/04/favicon-75x75.png | ||
maintainers: | ||
- name: ictsc |
4 changes: 4 additions & 0 deletions
4
manifest/infrastructure/traefik/forward-auth/ci/ci-values.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,4 @@ | ||
issuer: http://dex.dex:5556 | ||
domains: | ||
- drove-dev.ictsc.net | ||
- drove.ictsc.net |
41 changes: 41 additions & 0 deletions
41
manifest/infrastructure/traefik/forward-auth/templates/deployment.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,41 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Release.Name }} | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: {{ .Release.Name }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
spec: | ||
containers: | ||
- name: forward-auth | ||
image: thomseddon/traefik-forward-auth:latest | ||
ports: | ||
- containerPort: 4181 | ||
args: | ||
{{- range $i, $domain := .Values.domains }} | ||
- --cookie-domain={{ . }} | ||
{{- end }} | ||
- --default-provider=dex-client | ||
- --providers.oidc.issuer-url={{ .Values.issuer }} | ||
- --providers.oidc.client-id=forward-auth | ||
env: | ||
- name: PROVIDERS_OIDC_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
key: client-secret | ||
name: github-app | ||
- name: SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
key: secret | ||
name: {{ .Release.Name }} | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 512Mi |
9 changes: 9 additions & 0 deletions
9
manifest/infrastructure/traefik/forward-auth/templates/middleware.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,9 @@ | ||
apiVersion: traefik.io/v1alpha1 | ||
kind: Middleware | ||
metadata: | ||
name: {{ .Release.Name }} | ||
spec: | ||
forwardAuth: | ||
address: http://{{ .Release.Name }}:4181 | ||
authResponseHeaders: | ||
- X-Forwarded-User |
7 changes: 7 additions & 0 deletions
7
manifest/infrastructure/traefik/forward-auth/templates/secret.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,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Release.Name }} | ||
type: Opaque | ||
data: | ||
secret: {{ randAlphaNum 32 | b64enc }} |
9 changes: 9 additions & 0 deletions
9
manifest/infrastructure/traefik/forward-auth/templates/service.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,9 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .Release.Name }} | ||
spec: | ||
selector: | ||
app: {{ .Release.Name }} | ||
ports: | ||
- port: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Default values for ingress. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
# (required) 認証サーバのURL | ||
issuer: | ||
# (required) クッキーを発行したいドメインを配列で指定 | ||
domains: |
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