Salt read vault secret or revert to empty #67658
Replies: 5 comments
-
@s4mur4i Thanks for the report. Approving for a future feature addition. |
Beta Was this translation helpful? Give feedback.
-
This used to be the default behavior before salt-2017 and the vault module re-write. To recover the old behavior, I created a new custom vault module (https://docs.saltstack.com/en/latest/ref/modules/) called
Given this, you will change your vault sdb calls to instead say something like
You can change |
Beta Was this translation helpful? Give feedback.
-
Also looks like it'll be fixed in an upcoming release |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
I would like to set up a fallback possibility for missing vault keys
for example
lets say we have secret/very/big/secret with key of 'something'
But if that key is missing I would like to be an empty string like ""
I tried with adding
| default("")
but it fails with not able to reach the vault secret and throwing exception.I could not find example or docs to be able to work around this issue.
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Beta Was this translation helpful? Give feedback.
All reactions