Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rgl/vault-vagrant

vault playground
https://github.com/rgl/vault-vagrant

vagrant vault

Last synced: about 2 months ago
JSON representation

vault playground

Awesome Lists containing this project

README

        

# Usage

Install the [Ubuntu 22.04 Base Box](https://github.com/rgl/ubuntu-vagrant).

Launch the environment with libvirt (qemu-kvm):

```bash
vagrant up --provider=libvirt --no-destroy-on-error
```

Add the following entry to your `hosts` file:

```
10.0.0.20 vault.example.com
```

Browse to the [UI](https://vault.example.com:8200/ui) and login with the vault root token (get it from the `shared/vault-root-token.txt` file).

Test the [prometheus telemetry endpoint](https://vault.example.com:8200/v1/sys/metrics?format=prometheus).

List this repository dependencies (and which have newer versions):

```bash
export GITHUB_COM_TOKEN='YOUR_GITHUB_PERSONAL_TOKEN'
./renovate.sh
```

# TLS

Verify that a secure connection with vault can be established:

```bash
vagrant ssh
echo -n | openssl s_client -CAfile /etc/ssl/certs/ca-certificates.crt -servername vault.example.com -connect vault.example.com:8200
```

And make sure the result has no errors, e.g.:

```
depth=1 CN = Example CA
verify return:1
depth=0 CN = vault.example.com
verify return:1
...
Verification: OK
```

# Reference

* [Why We Need Dynamic Secrets (MAR 01 2018)](https://www.hashicorp.com/blog/why-we-need-dynamic-secrets)
* [Authenticating Applications with HashiCorp Vault AppRole (MAR 13 2018)](https://www.hashicorp.com/blog/authenticating-applications-with-vault-approle)