flyingcircusio / batou

batou is a universal, fractal deployment utility using Python.
https://batou.readthedocs.org
Other
47 stars 11 forks source link

Secrets files created without proper prefix #333

Closed frlan closed 1 year ago

frlan commented 1 year ago

batou 2.3b5

I'm creating a secret file with

✗ ./batou secrets edit dev mycert.pem

to access its content later with something like

        self += batou.lib.file.File(
            'mycert.pem',
            content=self.environment.secret_files['mycert.pem'],
            sensitive_data=True)

After saving the file batou is created the file, but without secret-prefix:

✗ ls -l environments/dev             
total 40
-rw-r--r--  1 frlan  staff  2187 19 Okt 16:23 environment.cfg
-rw-r--r--  1 frlan  staff  1529 19 Okt 16:28 mycert.pem