-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support passing multiple arguments to provider #157
Comments
Hmm... I think we may need to figure out how to specify a split variable maybe since I think at least one provider ( |
Hi @ralphink, Thank you again for using summon and reaching out to us! I did some digging through the existing documentation provided by According to the gopass documentation on summon, they don't list any use cases where one may need to specify a subkey. It seems that However, I may be misunderstanding something or missing a piece of documentation. Would you be able to provide more information on your specific use case? Edit: Upon further research, I see your issue. Without a subkey:
With a subkey:
@sgnn7 may be able to weigh in on this better than I, but I believe the issue lies with |
Thanks for your comment @BradleyBoutcher. I think you meant to invert the two examples (with and without subkey). We do use the ---
CERT: !var:file path/to/secret cert
KEY: !var:file path/to/secret key
CACERT: !var:file path/to/secret cacert so I get 3 variables pointing to temp files containing the credentials. |
FYI: I created a PR gopasspw/gopass#1438 to provide a dedicated |
@raphink / @ckolumbus After further consideration, I believe that some providers are explicitly fine (and depend on) passing spaces as-is so the linked PR (#156) cannot get included in its current state as it will have cascading effects on unknown number of providers and users for a subjectively smaller slice of use cases. Given our previous discussions on this, I think we could still make this work natively by using an explicit PS: It's always great to see that there's good discussion on improving summon 👍 |
Published in CyberArk Aha! idea portal |
Gopass supports subvalues when the path is followed by a space, for example:
When the value stored at
/path/to/value
is a YAML document, this will return thesubkey
of that YAML document.However,
summon
passes the entire value as a single argument to the provider, so:is passed as:
which doesn't work.
Describe the solution you would like
One option is to use a wrapper script for
gopass
to split the arguments before passing them togopass
. However, it would be cleaner ifsummon
would callgopass
and pass the arguments one by one.Describe alternatives you have considered
The wrapper script is an alternative solution which works, but is not as elegant:
The text was updated successfully, but these errors were encountered: