{"id":15969530,"url":"https://github.com/abtreece/vault-in-a-box","last_synced_at":"2026-04-26T12:32:15.589Z","repository":{"id":104173346,"uuid":"134506942","full_name":"abtreece/vault-in-a-box","owner":"abtreece","description":"Docker sandbox for tinkering with Vault","archived":false,"fork":false,"pushed_at":"2019-07-08T02:57:07.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-04T14:44:10.060Z","etag":null,"topics":["consul","docker","docker-compose","vault"],"latest_commit_sha":null,"homepage":null,"language":null,"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/abtreece.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":"2018-05-23T03:16:32.000Z","updated_at":"2019-07-08T02:57:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"98fd025d-1c8e-41a5-bfd5-303577736b65","html_url":"https://github.com/abtreece/vault-in-a-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abtreece/vault-in-a-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abtreece%2Fvault-in-a-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abtreece%2Fvault-in-a-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abtreece%2Fvault-in-a-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abtreece%2Fvault-in-a-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abtreece","download_url":"https://codeload.github.com/abtreece/vault-in-a-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abtreece%2Fvault-in-a-box/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["consul","docker","docker-compose","vault"],"created_at":"2024-10-07T19:40:26.372Z","updated_at":"2026-04-26T12:32:15.574Z","avatar_url":"https://github.com/abtreece.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"vault-in-a-box\n==============\n\nProvides a simple Docker environment for tinkering with Vault and utlizing Consul as the\nstorage backend.\n\nRequirements\n------------\n\n-   [direnv](https://github.com/direnv/direnv)\n-   [docker](https://www.docker.com/get-docker) \n\nQuick Start\n-----------\n\nAllow `direnv` to get the environment right\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ direnv allow\ndirenv: loading .envrc\ndirenv: using hashicorp consul 1.1.0\ndirenv: using hashicorp vault 0.10.1\ndirenv: export +LOCAL_IP +PROJECT_DIR +VAULT_ADDR ~PATH\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nBring the environment up with `docker-compose`. Running in detached mode puts the sandbox in the background.\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ docker-compose up -d\nCreating vault  ... done\nCreating consul ... done\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nInitialize Vault with only 1 key. We're just tinkering here!\n\n_A production environment should minimally utilize the default key share to threshold ratio of 5:3._\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ vault operator init -key-shares=1 -key-threshold=1\nUnseal Key 1: /6CIyLXyZYJ1jIvfeWFL5CD/pKmuCuFaETelW86adPU=\n\nInitial Root Token: d7cb154b-c54b-dc63-d955-29ef7b79ad00\n\nVault initialized with 1 key shares and a key threshold of 1. Please securely\ndistribute the key shares printed above. When the Vault is re-sealed,\nrestarted, or stopped, you must supply at least 1 of these keys to unseal it\nbefore it can start servicing requests.\n\nVault does not store the generated master key. Without at least 1 key to\nreconstruct the master key, Vault will remain permanently sealed!\n\nIt is possible to generate new unseal keys, provided you have a quorum of\nexisting unseal keys shares. See \"vault rekey\" for more information.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nUnseal vault with the provided key\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ vault operator unseal /6CIyLXyZYJ1jIvfeWFL5CD/pKmuCuFaETelW86adPU=\nKey                    Value\n---                    -----\nSeal Type              shamir\nSealed                 false\nTotal Shares           1\nThreshold              1\nVersion                0.10.1\nCluster Name           vault-cluster-e1e5103e\nCluster ID             0b09acc2-677e-f2e1-ac1f-7fc2cd6031a2\nHA Enabled             true\nHA Cluster             n/a\nHA Mode                standby\nActive Node Address    \u003cnone\u003e\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nExport the provided root token so we are able to operate our Vault\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ export VAULT_TOKEN=d7cb154b-c54b-dc63-d955-29ef7b79ad000\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nCheck the status of the Vault\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ vault status\nKey             Value\n---             -----\nSeal Type       shamir\nSealed          false\nTotal Shares    1\nThreshold       1\nVersion         0.10.1\nCluster Name    vault-cluster-e1e5103e\nCluster ID      0b09acc2-677e-f2e1-ac1f-7fc2cd6031a2\nHA Enabled      true\nHA Cluster      https://10.10.0.10:444\nHA Mode         active\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nList the default secrets\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n$ vault secrets list\nPath          Type         Description\n----          ----         -----------\ncubbyhole/    cubbyhole    per-token private secret storage\nidentity/     identity     identity store\nsecret/       kv           key/value secret storage\nsys/          system       system endpoints used for control, policy and debugging\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabtreece%2Fvault-in-a-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabtreece%2Fvault-in-a-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabtreece%2Fvault-in-a-box/lists"}