-
Notifications
You must be signed in to change notification settings - Fork 513
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
Headers can be read from stdin? #116
Comments
I think that's reasonable. But it could conflict with reading the request body from stdin. I think maybe the logic should look like so:
What do you think? I doubt I'll have time to implement this soon, but I'll accept a patch if you're up for this. |
Actually, I just had a thought: what if instead we added a flag that allowed header values to be re-written via environment variable interpolation? So instead of having to feed the headers in via stdin, you could do something like so:
Note use of single quotes, so the shell won't expand What do you think about that? I can actually see cases where both would be useful -- ability to interpolate env vars into the values and ability to pass via stdin... Anyhow, I think I'd take a patch that had either (or both!) of these approaches implemented. |
Thanks for the second solution, I think that is much simpler and I'll put a PR in for that. |
I'll have a PR opened shortly, already have the patch ready. After putting in the PR, I would need a new release cut and build artifacts published. Is this possible? |
See discussion of the feature here: fullstorydev#116
See discussion of the feature here: fullstorydev#116
@jhump Thanks for merging my PR, is there anyway you can cut a new release with accompanying binaries? |
@jammerful, we can leave this issue open as an enhancement request to also accept via stdin. I should be able to do a release soon, early next week at the latest. I'm looking for other issues that I might be able to address, too, just so it's not such a small release. |
@jhump Thanks, let me know if I can help at all. |
@jammerful, FYI, a new v1.4.0 has been released that includes the change you landed. |
I have a use case where I'd the headers to be able to be read from stdin, in particular I'm passing credentials through the headers and I don't want the credentials to show up as command line parameters which exposes the credentials.
Would it be possible to allow the headers to be read from stdin like the request data? I could put in a PR if this is simple, would you accept it?
I was thinking of putting a switch like this for reading from stdin just like the request data: https://github.com/fullstorydev/grpcurl/blob/master/cmd/grpcurl/grpcurl.go#L489
The text was updated successfully, but these errors were encountered: