/vault-examples

A collection of example code snippets demonstrating the various ways to use the HashiCorp Vault client libraries.

Mozilla Public License 2.0MPL-2.0

Vault Examples

A collection of copy-pastable code example snippets demonstrating the various ways to use the Vault client libraries for various languages to authenticate and retrieve secrets.

Currently Supported Languages

How To Use

Find the relevant directory for the concept you're interested in learning about, then find the file for your language of choice. You can use the example code as a reference or paste it into your application and tweak as needed. Each concept's directory also contains a readme explaining some of the specific terminology and operational setup.

This repo is not intended to be "run" as a standalone application.

For an out-of-the-box runnable sample app, please see our Hello-Vault repos.

Hello-Vault:

How To Contribute

If you would like to submit a code example to this repo, please create a file containing one function (or a grouping of several related functions) in the appropriate directory.