1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 08:09:44 +02:00
planka/server
iosabi 63c073e31e feat: Support loading passwords from docker secrets
Docker secrets are exposed as files in `/run/secrets/` inside the
container instead of as environment variables. To support deployments
where the passwords are stored in secrets, this patch adds support for
loading the `SMTP_PASSWORD`, `SECRET_KEY` and the database password from
files, using the `__FILE` suffix convention found in many docker images.

The database password is part of the `DATABASE_URL` environment
variable, if a password is used at all. To support injecting the
password into the DATABASE_URL without having to use the whole URL as
the secret, the `start.sh` replaces the string `${DATABASE_PASSWORD}` in
the `DATABASE_URL` environment variable by the contents of the
`DATABASE_PASSWORD` variable, which can now also be loaded from the
corresponding file passed in `DATABASE_PASSWORD__FILE`.

These changes are backwards compatible since they only load the `__FILE`
suffix version if the original variable was not set the `__FILE` one
is set.

Added comments in docker-compose.yml with examples for discoverability
of the feature. Tested this on top of 2.0.0-rc.2.
2025-05-15 20:00:58 +09:00
..
api fix: Increase max length of OIDC code challenge (#1126) 2025-05-13 10:56:01 +02:00
config feat: Version 2 2025-05-10 02:09:06 +02:00
db feat: Version 2 2025-05-10 02:09:06 +02:00
patches feat: Version 2 2025-05-10 02:09:06 +02:00
private/attachments feat: Remove attachments from public access 2022-04-26 22:20:20 +05:00
public feat: Version 2 2025-05-10 02:09:06 +02:00
test feat: Version 2 2025-05-10 02:09:06 +02:00
utils feat: Version 2 2025-05-10 02:09:06 +02:00
views Docker, update readme, update dependencies 2019-10-01 04:18:33 +05:00
.editorconfig Initial commit 2019-08-31 04:07:25 +05:00
.env.sample feat: Version 2 2025-05-10 02:09:06 +02:00
.eslintignore ref: Ignore public js linting (#278) 2022-08-08 17:58:41 +05:00
.gitignore feat: Version 2 2025-05-10 02:09:06 +02:00
.npmrc Update server scaffold 2019-10-14 21:50:52 +05:00
.sailsrc feat: Version 2 2025-05-10 02:09:06 +02:00
app.js feat: Add gallery for attachments 2022-06-20 18:27:39 +02:00
constants.js feat: Version 2 2025-05-10 02:09:06 +02:00
healthcheck.js feat: Version 2 2025-05-10 02:09:06 +02:00
package-lock.json feat: Version 2 2025-05-10 02:09:06 +02:00
package.json feat: Version 2 2025-05-10 02:09:06 +02:00
requirements.txt feat: Version 2 2025-05-10 02:09:06 +02:00
start.sh feat: Support loading passwords from docker secrets 2025-05-15 20:00:58 +09:00
version-template.ejs feat: Version 2 2025-05-10 02:09:06 +02:00
version.js feat: Version 2 2025-05-10 02:09:06 +02:00