mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 01:49:41 -05:00
OAUTH_GOOGLE_*, OAUTH_GITHUB_*, OAUTH_FACEBOOK_*, OAUTH_TWITTER_*, OAUTH_METEOR_DEVELOPER_*, OAUTH_WEIBO_*, OAUTH_MEETUP_*, OAUTH_PROVIDERS_LOGIN_STYLE, OAUTH_PROVIDERS_MERGE_EXISTING_USERS and PASSWORDLESS_ENABLED are now documented, commented out or defaulted, in every place the OAUTH2_* and SAML_* settings already are: docker-compose.yml and its FerretDB v1 / v2 and MongoDB variants, the Dockerfiles' ENV block, start-wekan.sh, start-wekan.bat, the Snap config (keys list plus DESCRIPTION_/DEFAULT_/KEY_ triples) and wekan-help, the Sandstorm package definition, the stacksmith Docker-secrets reader and secrets/README.md. The comments name the callback URL to register at each provider, <ROOT_URL>/_oauth/<service>, and say that Admin Panel / People / Login overrides the environment. New docs pages docs/Features/Login/OAuth-Providers.md and Passwordless.md, linked from the docs index. tests/oauthProvidersPlatformEnv.test.cjs pins that every variable is present on every platform and that the docs exist and are linked. Thanks to xet7 !
Wekan Docker Compose Secrets
This directory contains example secret files for Wekan Docker Compose deployment. These files should be used instead of environment variables for better security and GitOps compatibility.
Secret Files
ldap_auth_password.txt- LDAP authentication passwordoauth2_secret.txt- OAuth2 secret keyoauth_<service>_secret- the secret of a Meteor accounts login provider, read throughOAUTH_<PROVIDER>_SECRET_FILE;<service>is one ofgoogle,github,facebook,twitter,meteor_developer,weibo,meetup(seedocs/Features/Login/OAuth-Providers.md)mail_service_password.txt- Mail service passwordmongo_password.txt- MongoDB passwords3_secret.txt- S3 configuration (JSON format)
Usage
- Copy the example files and replace the placeholder values with your actual secrets
- Update your
docker-compose.ymlto use the_FILEenvironment variables - Ensure the secret files are properly secured with appropriate file permissions
Security Notes
- Never commit actual secret values to version control
- Set appropriate file permissions (e.g.,
chmod 600 secrets/*.txt) - Consider using a secrets management system in production
- The secret files are mounted as read-only in the container
Docker Compose Configuration
Example configuration in docker-compose.yml:
services:
wekan:
environment:
- LDAP_AUTHENTIFICATION_PASSWORD_FILE=/run/secrets/ldap_auth_password
- OAUTH2_SECRET_FILE=/run/secrets/oauth2_secret
- MAIL_SERVICE_PASSWORD_FILE=/run/secrets/mail_service_password
- MONGO_PASSWORD_FILE=/run/secrets/mongo_password
- S3_SECRET_FILE=/run/secrets/s3_secret
secrets:
- ldap_auth_password
- oauth2_secret
- mail_service_password
- mongo_password
- s3_secret
secrets:
ldap_auth_password:
file: ./secrets/ldap_auth_password.txt
oauth2_secret:
file: ./secrets/oauth2_secret.txt
mail_service_password:
file: ./secrets/mail_service_password.txt
mongo_password:
file: ./secrets/mongo_password.txt
s3_secret:
file: ./secrets/s3_secret.txt