You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Default values as they are now do not work with gopass as a provider.
The reason (probably) being, that gopass does not return an empty string, as stated in the documentation of default values, but rather fails.
The gopass log output
Error fetching variable MY_SECRET: exit status 11: Error: failed to retrieve secret "key/to/my/secret": entry is not in the password store
with secrets.yml:
MY_SECRET: !var:default='' key/to/my/secret
Describe the solution you would like
summon should also look at the exit code of the provider and use the default value in case of errors.
Describe alternatives you have considered
This could probably also be done using a custom provider wrapping gopass and returning an empty string on failure.
However, this seems more like a workaround than a feature.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Default values as they are now do not work with
gopass
as a provider.The reason (probably) being, that
gopass
does not return an empty string, as stated in the documentation of default values, but rather fails.The
gopass
log outputwith
secrets.yml
:Describe the solution you would like
summon
should also look at the exit code of the provider and use the default value in case of errors.Describe alternatives you have considered
This could probably also be done using a custom provider wrapping
gopass
and returning an empty string on failure.However, this seems more like a workaround than a feature.
Additional context
The text was updated successfully, but these errors were encountered: