# How to use secrets in my container config

**URL:** <https://community.silverbullet.md/t/how-to-use-secrets-in-my-container-config/2109>\
**Category:** General\
**Created:** [April 3, 2025, 8:02am UTC](https://community.silverbullet.md/t/how-to-use-secrets-in-my-container-config/2109 "2025-04-03T08:02:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeshii](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jeshii/32/1202_2.png) [@Jeshii](https://community.silverbullet.md/u/Jeshii)\
**Post date:** [April 3, 2025, 8:02am UTC](https://community.silverbullet.md/t/how-to-use-secrets-in-my-container-config/2109/1 "2025-04-03T08:02:09Z")

</div>

Hello all, first time caller. Building a server with podman quadlets and am hitting a wall trying to pass a secret to the container and successfully log in. Pihole is set up with a `Environment=WEBPASSWORD_FILE=/etc/pihole/webpassword` sort of way of passing it in. Does SilverBullet also have a similar way to pass it in as a file?

---

<div class="post-metadata">

**Author:** ![Jeshii](https://community.silverbullet.md/user_avatar/community.silverbullet.md/jeshii/32/1202_2.png) [@Jeshii](https://community.silverbullet.md/u/Jeshii)\
**Post date:** [April 3, 2025, 9:51am UTC](https://community.silverbullet.md/t/how-to-use-secrets-in-my-container-config/2109/2 "2025-04-03T09:51:43Z")

</div>

Figured it out!

```auto
printf admin:password | podman secret create silverbullet_user -

```

Then add this to the containers section:

```auto
Secret=silverbullet_user,type=env,target=SB_USER

```

Works like a charm.
