{"id":19259069,"url":"https://github.com/r3drun3/hashicorp-vault-provisioning","last_synced_at":"2026-06-29T22:30:22.062Z","repository":{"id":137685471,"uuid":"504509921","full_name":"R3DRUN3/hashicorp-vault-provisioning","owner":"R3DRUN3","description":"Spin up an Hashicorp Vault test instance with vagrant and Ansible 🔐🔐🔐","archived":false,"fork":false,"pushed_at":"2022-06-27T17:43:53.000Z","size":78,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T09:30:10.448Z","etag":null,"topics":["ansible","python3","vagrant","vault"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R3DRUN3.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-17T11:31:20.000Z","updated_at":"2024-08-05T13:11:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"8835f148-7acb-4d9a-9b01-58d99c76d378","html_url":"https://github.com/R3DRUN3/hashicorp-vault-provisioning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3DRUN3%2Fhashicorp-vault-provisioning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3DRUN3%2Fhashicorp-vault-provisioning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3DRUN3%2Fhashicorp-vault-provisioning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R3DRUN3%2Fhashicorp-vault-provisioning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R3DRUN3","download_url":"https://codeload.github.com/R3DRUN3/hashicorp-vault-provisioning/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240356192,"owners_count":19788513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","python3","vagrant","vault"],"created_at":"2024-11-09T19:15:19.596Z","updated_at":"2026-06-29T22:30:21.988Z","avatar_url":"https://github.com/R3DRUN3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HASHICORP VAULT PROVISIONING\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\n\nSpin up Hashicorp Vault with vagrant and Ansible 🔐🔐🔐\n\n\u003cimg width=\"300\" alt=\"Vault Logo\" src=\"https://github.com/hashicorp/vault/blob/f22d202cde2018f9455dec755118a9b84586e082/Vault_PrimaryLogo_Black.png\"\u003e\n\n## Abstract\n[HashiCorp Vault](https://www.vaultproject.io/) is a secrets management tool specifically designed to control access to sensitive credentials in a low-trust environment. \n\u003cbr\u003e\nIt can be used to store sensitive values and, at the same time, dynamically generate access for specific services/applications on lease.\n\nThis repo contains scripts to provision your own on-prem Vault test instance via Vagrant and Ansible\n\n## Requirements\n`vagrant` `ansible`\n\n## Instructions\nClone this repo and start provisioning:\n\n```console\ngit clone https://github.com/R3DRUN3/hashicorp-vault-provisioning.git \\\n\u0026\u0026 cd hashicorp-vault-provisioning \u0026\u0026 sh provisioning.sh\n```\n\nOnce provisioning is complete retrieve the token from the Ansible output, open your browser to the url `http://192.168.56.12:8200/ui`\nand login to the Web UI:\n![alt_text](https://github.com/R3DRUN3/hashicorp-vault-provisioning/blob/main/images/vault-login.png)\n\nOnce you have logged in, go to `http://192.168.56.12:8200/ui/vault/secrets/kv/show/test-secret`\nand verify that the test secret is present:\n\n![alt_text](https://github.com/R3DRUN3/hashicorp-vault-provisioning/blob/main/images/test-secret.png)\n\nNow that your Vault is ready you can freely experiment with this fantastic tool, to test commands via CLI:\n\nLogin to the vault host:\n\n```console\nvagrant ssh vault\n```\nauthenticate with the vault CLI:\n\n```console\nvault login token=INSERT_TOKEN_HERE\n```\nRetrieve test secret from CLI:\n```console\nvault kv get kv/test-secret\n```\n\nAdd a new secret from CLI:\n```console\nvault kv put kv/new-secret secret-value=IamASecret!\n```\n\nThis repo also contain a simple python script to demonstrate programmatic  integration with Vault.\n\nexport token as an env var:\n```console\nexport VAULT_TOKEN=\"INSERT_TOKEN_HERE\"\n```\nMove into app folder and install requirements:\n```console\ncd app \u0026\u0026 pip3 install -r requirements.txt\n```\nlaunch app:\n```console\npython3 app.py\n\nIS CLITENT AUTHENTICATED ===\u003e True\n\nRETRIEVING SECRET\n\nValue under path test-secret : {'value': 'my_secret_value'}\n\nWRITE A NEW K/V PAIR\n\nDONE\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3drun3%2Fhashicorp-vault-provisioning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3drun3%2Fhashicorp-vault-provisioning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3drun3%2Fhashicorp-vault-provisioning/lists"}