hashicorp / vault

A tool for secrets management, encryption as a service, and privileged access management
https://www.vaultproject.io/
Other
30.52k stars 4.14k forks source link

Document how to use the ECDH encryption functions of vault agent #5217

Open arianvp opened 5 years ago

arianvp commented 5 years ago

The documentation mentions tokens retrieved by the vault agent can be written encrypted to disk using an ECDH scheme to derive an AES-GCM session key. https://www.vaultproject.io/docs/agent/autoauth/index.html#dh_type

However, some important things seem to be missing from the docs, which are hard to figure out by trial and error:

jefferai commented 5 years ago

I need to get to this eventually, but for the moment, look at the two structs at https://godoc.org/github.com/hashicorp/vault/helper/dhutil#Envelope

jefferai commented 5 years ago

Note that that library is internal to Vault, so its interfaces may change. I don't expect the data structures to change but they may. This is sort of advanced usage and is in early days for it.

vishalnayak commented 3 years ago

Issues that are not reproducible and/or have not had any interaction for a long time are stale issues. Sometimes even the valid issues remain stale lacking traction either by the maintainers or the community. In order to provide faster responses and better engagement with the community, we strive to keep the issue tracker clean and the issue count low. In this regard, our current policy is to close stale issues after 30 days. If a feature request is being closed, it means that it is not on the product roadmap. Closed issues will still be indexed and available for future viewers. If users feel that the issue is still relevant but is wrongly closed, we encourage reopening them.

Please refer to our contributing guidelines for details on issue lifecycle.

hsimon-hashicorp commented 4 months ago

Pinging @schavis with docs help!