docs: keep S3 credentials out of Docker arguments (#22118)

This commit is contained in:
omrzk authored and GitHub committed 2026-11-05 21:18:24 +00:00
1 parent 0039a14381
commit c2c046c7b1
1 file changed
+8
+8
View File
@@ -249,6 +249,14 @@ while creating the bucket.
$ export AWS_ACCESS_KEY_ID=<MY_ACCESS_KEY>
$ export AWS_SECRET_ACCESS_KEY=<MY_SECRET_ACCESS_KEY>
Restic can also read credentials from an AWS shared credentials file. Set
``AWS_SHARED_CREDENTIALS_FILE`` to its path, or use the default location at
``~/.aws/credentials``. When running restic in a container, mount the file
read-only and set ``AWS_SHARED_CREDENTIALS_FILE`` to the path inside the
container. Avoid passing secret values in ``docker run -e NAME=value``
arguments, where they can be exposed in process listings. Docker's
``--env-file`` option also keeps the values out of command-line arguments.
When using temporary credentials make sure to include the session token via
the environment variable ``AWS_SESSION_TOKEN``.