Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2cee6fd27 | ||
|
|
9726ddaf56 | ||
|
|
8ab79cd073 | ||
|
|
46035c62aa | ||
|
|
ca21c2fb73
|
||
|
|
04f1ca96d8
|
||
|
|
1e6fd3664d | ||
|
|
e05abdefe0 | ||
|
|
8ac121517d | ||
|
|
dea31199f9 | ||
|
|
1309c81d32 | ||
|
|
ca2c97c8c9 | ||
|
|
aa1aa405b0 | ||
|
|
66170a3236 |
+11
@@ -36,3 +36,14 @@ TX="Europe/Berlin"
|
||||
#SMTP_DEBUG=true
|
||||
|
||||
#DISABLE_IPV6=0
|
||||
|
||||
## Single Sign On (OpenID Connect / OIDC) settings
|
||||
#COMPOSE_FILE="$COMPOSE_FILE:compose.oidc.yml"
|
||||
#SSO_ENABLED=true
|
||||
#SSO_ONLY=false
|
||||
#SSO_AUTHORITY=https://auth.example.com
|
||||
#SSO_SCOPES=profile email offline_access vaultwarden
|
||||
#SSO_PKCE=true
|
||||
#SSO_CLIENT_ID=vaultwarden
|
||||
#SSO_CLIENT_SECRET=insecure_secret
|
||||
#SECRET_SSO_SECRET_VERSION=v1
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
> Open source password manager
|
||||
|
||||
<!-- metadata -->
|
||||
* **Maintainer**: [@fauno](https://git.coopcloud.tech/fauno), [@ammaratef45](https://git.coopcloud.tech/ammaratef45)
|
||||
* **Maintainer**: [@fauno](https://git.coopcloud.tech/fauno), [@ammaratef45](https://git.coopcloud.tech/ammaratef45), Local-IT: [@moritz](https://git.coopcloud.tech/moritz), [@msimon](https://git.coopcloud.tech/simon), [@carla](https://git.coopcloud.tech/carla)
|
||||
* **Category**: Apps
|
||||
* **Status**: 2, beta
|
||||
* **Image**: [`vaultwarden/server`](https://hub.docker.com/vaultwarden/server), 4, upstream
|
||||
@@ -47,3 +47,7 @@ LOG_LEVEL=warn
|
||||
Then follow [this guide](https://github.com/dani-garcia/vaultwarden/wiki/Fail2Ban-Setup).
|
||||
|
||||
And you must use `COMPOSE_FILE="$COMPOSE_FILE:compose.host.yml"` in your traefik config to get real IPs.
|
||||
|
||||
### Single Sign On with OpenID Connect (OIDC)
|
||||
|
||||
Uncomment the "Single Sign On" section in your app config. See the [upstream docs](https://github.com/dani-garcia/vaultwarden/wiki/Enabling-SSO-support-using-OpenId-Connect) for more, including specific configuration examples for Keycloak and Authentik.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export APP_ENTRYPOINT_VERSION=v4
|
||||
export APP_ENTRYPOINT_VERSION=v5
|
||||
APP_DIR="app:/data"
|
||||
|
||||
insert_vaultwarden_admin_token() {
|
||||
|
||||
+3
-2
@@ -13,13 +13,14 @@ services:
|
||||
- db_password
|
||||
|
||||
db:
|
||||
image: "mariadb:10.11" # or "mysql"
|
||||
image: "mariadb:12.3" # or "mysql"
|
||||
environment:
|
||||
- MYSQL_DATABASE=vaultwarden
|
||||
- MYSQL_USER=vaultwarden
|
||||
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
|
||||
- MAX_DB_CONNECTIONS=${MAX_DB_CONNECTIONS:-100}#
|
||||
- MARIADB_AUTO_UPGRADE=1
|
||||
secrets:
|
||||
- db_root_password
|
||||
- db_password
|
||||
@@ -33,7 +34,7 @@ services:
|
||||
backupbot.backup.volumes.mariadb.path: "backup.sql"
|
||||
backupbot.restore.post-hook: 'mysql -u root -p"$$(cat /run/secrets/db_root_password)" $${MYSQL_DATABASE} < /var/lib/mysql/backup.sql'
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", 'mysqladmin -p"$$(cat /run/secrets/db_root_password)" ping']
|
||||
test: ["CMD-SHELL", 'mariadb-admin -p"$$(cat /run/secrets/db_root_password)" ping']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 30
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
environment:
|
||||
- SSO_ENABLED=true
|
||||
- SSO_ONLY
|
||||
- SSO_AUTHORITY
|
||||
- SSO_SCOPES
|
||||
- SSO_PKCE
|
||||
- SSO_CLIENT_ID
|
||||
- SSO_CLIENT_SECRET_FILE=/run/secrets/sso_secret
|
||||
secrets:
|
||||
- sso_secret
|
||||
|
||||
secrets:
|
||||
sso_secret:
|
||||
external: true
|
||||
name: ${STACK_NAME}_sso_secret_${SECRET_SSO_SECRET_VERSION}
|
||||
+2
-2
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: vaultwarden/server:1.37.2
|
||||
image: vaultwarden/server:1.37.3
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -45,7 +45,7 @@ services:
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.3.2+1.37.2"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.4.0+1.37.3"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/data"
|
||||
|
||||
|
||||
@@ -52,6 +52,10 @@ file_env "ADMIN_TOKEN"
|
||||
file_env "SMTP_PASSWORD"
|
||||
{{ end }}
|
||||
|
||||
{{ if eq (env "SSO_ENABLED") "true" }}
|
||||
file_env "SSO_CLIENT_SECRET"
|
||||
{{ end }}
|
||||
|
||||
# remove world permissions on data
|
||||
chmod -R o= /data
|
||||
|
||||
|
||||
+4
-1
@@ -5,6 +5,9 @@
|
||||
],
|
||||
"reviewers": [
|
||||
"ammaratef45",
|
||||
"fauno"
|
||||
"fauno",
|
||||
"moritz",
|
||||
"simon",
|
||||
"carla"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user