From 2252c26edf7c949ad4ec885384250dd0da099f84 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sun, 29 Oct 2023 07:53:55 +0100 Subject: [PATCH] Add note about potential leading and trailing whitespace in Docker secrets --- docs/reference/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/reference/index.md b/docs/reference/index.md index 1dd59b3..cdbe3dc 100644 --- a/docs/reference/index.md +++ b/docs/reference/index.md @@ -9,7 +9,9 @@ nav_order: 2 Backup targets, schedule and retention are configured using environment variables. {: .note } -You can use any environment variable from below also with a `_FILE` suffix to be able to load the value from a file. This is usually useful when using [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/) or similar. +You can use any environment variable from below also with a `_FILE` suffix to be able to load the value from a file. +This is typically useful when using [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/) or similar. +Note that secrets will not be trimmed of leading or trailing whitespace. {: .warning } In case you encounter double quoted values in your runtime configuration you might still be using an [older version of `docker-compose`][compose-issue].