-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A secret is defined with a tuple (id, target) which can be aliased as (source, destination) using the following format: --mount=type=secret,id=FOO,target=/path/to/secret Existing secret rules: * if source (id) is empty, it is assumed to equal to path.Base(target) * if target (destination) is empty, it is assumed to equal to "/run/secrets/" + path.Base(id) Add an additional attribute to the mount command to specify that the secret should be mounted as environment variable: --mount=type=secret,id=FOO,env=FOO with the following semantics: * it should allow the old behavior of mounting the secret as path (using the target/destination attribute) * it should be optional (e.g. with no 'env' specified, the secret should be mounted as a file following the existing rules) * if specified, the file mount should be optional (uses empty target/destination as indicator) * if should be possible to mount a secret as both - an environment variable and as a file Signed-off-by: a-palchikov <[email protected]>
- Loading branch information
1 parent
4669adf
commit 0fc5f16
Showing
4 changed files
with
54 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters