Re: Proposal: Enhancing Bacula Secret Management - file:, dynfile:, syscred:, and credstore:

"Dan Langille" <[email protected]> Mon, 30 Jun 2025 08:14:51 -0400
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
On Thu, Jun 26, 2025, at 2:42 AM, Eric Bollengier via Bacula-devel wrote:
> Hello,
>
> This is a very good topic. It's not so elegant, but I think you can cover your
> need today with the @ macro in the configuration file.
>
> You can execute a command that will generate the password (reading from a file
> for example, or doing some query in a database), or read a file.
>
> If you want to just read from a file:
>
> Client {
>   Name = myclient-fd
>   @/opt/bacula/etc/myclient.password
>   Address = myclient.lan
>   File Retention = 5 years
>   Job Retention = 5 years
>   ..
> }
>
> and in /opt/bacula/etc/myclient.password
> you have
>
> # cat /opt/bacula/etc/myclient.password
> Password = "this is a secret"

We use this in production at $WORK.  All secrets are stored using this approach.
All configuration files are stored in repos. There are no secrets in repos.

-- 
  Dan Langille
  [email protected]