Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
c77c12637e | |||
711ea4e9b7 | |||
8dacc84199 | |||
9a1309def5 | |||
2b0ccd7287 | |||
d757d8f981 | |||
8fb4b43303 | |||
23add7cd6c | |||
3bdade61ea | |||
38256b3b2c | |||
1c7ed323f2 | |||
e924fd6a23 |
24
.drone.yml
24
.drone.yml
@ -3,10 +3,12 @@ kind: pipeline
|
|||||||
name: deploy to swarm-test.autonomic.zone
|
name: deploy to swarm-test.autonomic.zone
|
||||||
steps:
|
steps:
|
||||||
- name: deployment
|
- name: deployment
|
||||||
image: decentral1se/stack-ssh-deploy:latest
|
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
|
||||||
settings:
|
settings:
|
||||||
host: swarm-test.autonomic.zone
|
host: swarm-test.autonomic.zone
|
||||||
stack: traefik-forward-auth
|
stack: traefik-forward-auth
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
generate_secrets: true
|
generate_secrets: true
|
||||||
purge: true
|
purge: true
|
||||||
deploy_key:
|
deploy_key:
|
||||||
@ -20,18 +22,24 @@ steps:
|
|||||||
OIDC_ISSUER_URL: https://id-test.autonomic.zone/auth/realms/test
|
OIDC_ISSUER_URL: https://id-test.autonomic.zone/auth/realms/test
|
||||||
OIDC_CLIENT_ID: traefik-forward-auth
|
OIDC_CLIENT_ID: traefik-forward-auth
|
||||||
FORWARD_INI_VERSION: v1
|
FORWARD_INI_VERSION: v1
|
||||||
SERCRET_NONCE_VERSION: v1
|
SECRET_SECRET_NONCE_VERSION: v1
|
||||||
OIDC_CLIENT_SECRET_VERSION: v1
|
SECRET_OIDC_CLIENT_SECRET_VERSION: v1
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: recipe release
|
name: generate recipe catalogue
|
||||||
steps:
|
steps:
|
||||||
- name: release a new version
|
- name: release a new version
|
||||||
image: thecoopcloud/drone-abra:latest
|
image: plugins/downstream
|
||||||
settings:
|
settings:
|
||||||
command: recipe traefik-forward-auth release
|
server: https://build.coopcloud.tech
|
||||||
deploy_key:
|
token:
|
||||||
from_secret: abra_bot_deploy_key
|
from_secret: drone_abra-bot_token
|
||||||
|
fork: true
|
||||||
|
repositories:
|
||||||
|
- toolshed/auto-recipes-catalogue-json
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event: tag
|
||||||
|
22
.env.sample
22
.env.sample
@ -6,8 +6,22 @@ LETS_ENCRYPT_ENV=production
|
|||||||
COOKIE_DOMAIN=example.com
|
COOKIE_DOMAIN=example.com
|
||||||
AUTH_HOST=auth.example.com
|
AUTH_HOST=auth.example.com
|
||||||
|
|
||||||
OIDC_ISSUER_URL=https://id.example.com/auth/realms/yourrealm
|
SECRET_SECRET_NONCE_VERSION=v1
|
||||||
OIDC_CLIENT_ID=traefik-forward-auth
|
|
||||||
|
|
||||||
SERCRET_NONCE_VERSION=v1
|
COMPOSE_FILE=compose.yml
|
||||||
OIDC_CLIENT_SECRET_VERSION=v1
|
|
||||||
|
#COMPOSE_FILE=$COMPOSE_FILE:compose.oidc.yml
|
||||||
|
#OIDC_ENABLED=1
|
||||||
|
#OIDC_CLIENT_SECRET_VERSION=v1
|
||||||
|
#OIDC_ISSUER_URL=https://id.example.com/auth/realms/yourrealm
|
||||||
|
#OIDC_CLIENT_ID=traefik-forward-auth
|
||||||
|
#SECRET_OIDC_CLIENT_SECRET_VERSION=v1
|
||||||
|
|
||||||
|
#COMPOSE_FILE=$COMPOSE_FILE:compose.oauth.yml
|
||||||
|
#OAUTH_ENABLED=1
|
||||||
|
#OAUTH_CLIENT_SECRET_VERSION=v1
|
||||||
|
#OAUTH_CLIENT_ID=traefik-forward-auth
|
||||||
|
#OAUTH_USER_URL
|
||||||
|
#OAUTH_TOKEN_URL
|
||||||
|
#OAUTH_AUTH_URL
|
||||||
|
#SECRET_OAUTH_CLIENT_SECRET_VERSION=v1
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<!-- metadata -->
|
<!-- metadata -->
|
||||||
* **Category**: Utilities
|
* **Category**: Utilities
|
||||||
* **Status**: ?
|
* **Status**: ?
|
||||||
* **Image**: [`crazymax/swarm-cronjob`](https://hub.docker.com/r/crazymax/swarm-cronjob/), ❶💚, upstream
|
* **Image**: [`crazymax/swarm-cronjob`](https://hub.docker.com/r/crazymax/swarm-cronjob/), 4, upstream
|
||||||
* **Healthcheck**: ?
|
* **Healthcheck**: ?
|
||||||
* **Backups**: ?
|
* **Backups**: ?
|
||||||
* **Email**: ?
|
* **Email**: ?
|
||||||
|
18
compose.oauth.yml
Normal file
18
compose.oauth.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
environment:
|
||||||
|
- OAUTH_CLIENT_ID
|
||||||
|
- OAUTH_AUTH_URL
|
||||||
|
- OAUTH_TOKEN_URL
|
||||||
|
- OAUTH_USER_URL
|
||||||
|
- OAUTH_ENABLED
|
||||||
|
secrets:
|
||||||
|
- oauth_client_secret
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
oauth_client_secret:
|
||||||
|
name: ${STACK_NAME}_oauth_client_secret_${SECRET_OAUTH_CLIENT_SECRET_VERSION}
|
||||||
|
external: true
|
16
compose.oidc.yml
Normal file
16
compose.oidc.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
environment:
|
||||||
|
- OIDC_CLIENT_ID
|
||||||
|
- OIDC_ISSUER_URL
|
||||||
|
- OIDC_ENABLED
|
||||||
|
secrets:
|
||||||
|
- oidc_client_secret
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
oidc_client_secret:
|
||||||
|
name: ${STACK_NAME}_oidc_client_secret_${SECRET_OIDC_CLIENT_SECRET_VERSION}
|
||||||
|
external: true
|
10
compose.yml
10
compose.yml
@ -11,12 +11,9 @@ services:
|
|||||||
- proxy
|
- proxy
|
||||||
environment:
|
environment:
|
||||||
- CONFIG=/etc/forward.ini
|
- CONFIG=/etc/forward.ini
|
||||||
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID}
|
|
||||||
- OIDC_ISSUER_URL=${OIDC_ISSUER_URL}
|
|
||||||
- COOKIE_DOMAIN=${COOKIE_DOMAIN}
|
- COOKIE_DOMAIN=${COOKIE_DOMAIN}
|
||||||
- AUTH_HOST=${AUTH_HOST}
|
- AUTH_HOST=${AUTH_HOST}
|
||||||
secrets:
|
secrets:
|
||||||
- oidc_client_secret
|
|
||||||
- secret_nonce
|
- secret_nonce
|
||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
@ -26,7 +23,7 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=keycloak@file"
|
- "traefik.http.routers.${STACK_NAME}.middlewares=keycloak@file"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+2"
|
- "coop-cloud.${STACK_NAME}.version=1.1.0+2"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
@ -40,8 +37,5 @@ configs:
|
|||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
secret_nonce:
|
secret_nonce:
|
||||||
name: ${STACK_NAME}_secret_nonce_${SERCRET_NONCE_VERSION}
|
name: ${STACK_NAME}_secret_nonce_${SECRET_SECRET_NONCE_VERSION}
|
||||||
external: true
|
|
||||||
oidc_client_secret:
|
|
||||||
name: ${STACK_NAME}_oidc_client_secret_${OIDC_CLIENT_SECRET_VERSION}
|
|
||||||
external: true
|
external: true
|
||||||
|
@ -3,7 +3,18 @@ log-level = info
|
|||||||
cookie-domain = {{ env "COOKIE_DOMAIN" }}
|
cookie-domain = {{ env "COOKIE_DOMAIN" }}
|
||||||
auth-host = {{ env "AUTH_HOST" }}
|
auth-host = {{ env "AUTH_HOST" }}
|
||||||
|
|
||||||
|
{{ if eq (env "OIDC_ENABLED") "1" }}
|
||||||
default-provider = oidc
|
default-provider = oidc
|
||||||
providers.oidc.issuer-url = {{ env "OIDC_ISSUER_URL" }}
|
providers.oidc.issuer-url = {{ env "OIDC_ISSUER_URL" }}
|
||||||
providers.oidc.client-id = {{ env "OIDC_CLIENT_ID" }}
|
providers.oidc.client-id = {{ env "OIDC_CLIENT_ID" }}
|
||||||
providers.oidc.client-secret = {{ secret "oidc_client_secret" }}
|
providers.oidc.client-secret = {{ secret "oidc_client_secret" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if eq (env "OAUTH_ENABLED") "1" }}
|
||||||
|
default-provider = generic-oauth
|
||||||
|
providers.generic-oauth.client-id = {{ env "OAUTH_CLIENT_ID" }}
|
||||||
|
providers.generic-oauth.auth-url = {{ env "OAUTH_AUTH_URL" }}
|
||||||
|
providers.generic-oauth.token-url = {{ env "OAUTH_TOKEN_URL" }}
|
||||||
|
providers.generic-oauth.user-url = {{ env "OAUTH_USER_URL" }}
|
||||||
|
providers.generic-oauth.client-secret = {{ secret "oauth_client_secret" }}
|
||||||
|
{{ end }}
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
||||||
"extends": [
|
|
||||||
"config:base"
|
|
||||||
]
|
|
||||||
}
|
|
Reference in New Issue
Block a user