Skip to content
Snippets Groups Projects

Update README.md

Merged Julian Steiner requested to merge master into stable
1 file
+ 16
1
Compare changes
  • Side-by-side
  • Inline
+ 16
1
@@ -366,5 +366,20 @@ $ credential-tool.sh dirpush younameadir | ssh root@remote
```
credential-tool.sh is still in a very early stage of development, more features are planned such as
gpg encrypted secret files held in a git repository, and upload of only changed or new secrets.
gpg encrypted secret files held in a git repository, and upload of only changed or new secrets.
### Working with secrets in regard to podman
When creating a secret, make sure to create your secret without trailing new lines etc:
```
$ echo -n theSecret > /etc/containers/secrets/mysecret.scrt
```
Then, make sure to reference the secret in the .cntnr file of your container. We want the secret to be accessible as a envvar. Refer to podman documentation when in doubt: https://docs.podman.io/en/latest/markdown/podman-create.1.html
```
.../mycontainer.cntnr
...
secret mysecret,type=env
...
```
You still have to load the secret via credential-tool.sh, of course.
Loading