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
The vault-agent-approle.sh script now fails. The sink file /tmp/agent/file-foo now contains a JSON structure instead of a raw token - this is expected behaviour with wrapping enabled, but I mention it because the underlying Agent error is "failed to get the response: configured Vault token contains non-printable characters and cannot be used". Note that the error is not shown to the user, I had to write a patch to expose it. Will file a PR with that patch and link it.
Agent output:
2019-03-25T18:25:58.532Z [INFO] cache: received request: path=/v1/kv/foo method=GET
2019-03-25T18:25:58.532Z [INFO] cache.apiproxy: forwarding request: path=/v1/kv/foo method=GET
Error reading kv/foo: Error making API request.
URL: GET http://127.0.0.1:8007/v1/kv/foo
Code: 500. Errors:
* failed to get the response: nil api response provided
To Reproduce
Steps to reproduce the behavior:
Set VAULT_TOKEN to the root token and VAULT_ADDR to your vault, then run:
Describe the bug
Assume the following vault agent config:
With this config, Vault Agent can be used in caching mode without providing a token directly, as seen in https://github.com/ncabatoff/vault-experiments/blob/master/bin/vault-agent-approle.sh. Agent writes a raw token to the sink file /tmp/agent/file-foo.
Now add wrap_ttl to the auto_auth method config, e.g.
The vault-agent-approle.sh script now fails. The sink file /tmp/agent/file-foo now contains a JSON structure instead of a raw token - this is expected behaviour with wrapping enabled, but I mention it because the underlying Agent error is "failed to get the response: configured Vault token contains non-printable characters and cannot be used". Note that the error is not shown to the user, I had to write a patch to expose it. Will file a PR with that patch and link it.
Agent output:
To Reproduce
Steps to reproduce the behavior:
Set VAULT_TOKEN to the root token and VAULT_ADDR to your vault, then run:
Expected behavior
When wrapping is enabled, the cache should still work. The above code would yield:
Environment:
vault status
): 1.1.0vault version
): 1.1.0Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: