Skip to content
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

Allow piping via stdin #51

Open
lucymhdavies opened this issue Oct 11, 2018 · 1 comment
Open

Allow piping via stdin #51

lucymhdavies opened this issue Oct 11, 2018 · 1 comment

Comments

@lucymhdavies
Copy link

Currently not possible in Cali, but recently fixed in the closed-source pscli:

For example, this would allow things like this:

$ cat foo.json | jq .
{
  "foo": "bar",
  "baz": [
    "a",
    "b",
    "c"
  ]
}

$ cat foo.json | pscli vault write secret/lucytest -
Success! Data written to: secret/lucytest

$ pscli vault read secret/lucytest
Key                 Value
---                 -----
refresh_interval    768h
baz                 [a b c]
foo                 bar

(the example above is using a modified version of the hashicorp/vault image)

@lucymhdavies
Copy link
Author

lucymhdavies commented Oct 11, 2018

In fact, the example above already has a test Cali app that can be used to test this specific use case:

https://github.com/LMHD/lucli/blob/master/cmd/vault.go

Which can be run as

cat foo.json | lucli --vault-address=https://vault.fancycorp.io vault -- write secret/lucytest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant