Agenix: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Note on how to access secrets inside container
Line 121: Line 121:
</syntaxhighlight>
</syntaxhighlight>


=== Access secrets inside container ===
Using the option <code>bindMounts</code> for an example container named <code>mycontainer</code> will provide the secret file inside the container as <code>/run/agenix/mysecret</code>:
<syntaxhighlight lang="nix">
containers.mycontainer.bindMounts."${config.agenix.secrets.mysecret.path}".isReadOnly = true;
</syntaxhighlight>


== See also ==
== See also ==