Skip to content

Conversation

star3am
Copy link

@star3am star3am commented Oct 6, 2025

Description

This PR adds a Dev Container to vault repository. Enabling us to run vault in a Github Codespace or locally using a Dev Container

When we create a Github Codespace a new VSCode window will open
image

The Codespace will display the output of the postStartCommand sh -c 'vault server -dev'
image

It will display the initial Vault root token which we can use to login

2 ports will be exposed for Vault UI and Vault API
image

We can open port 8200 by clicking on the Ports tab and right click on the port we would like to open, and opening it in a browser
image

We will see the Vault login screen
image

Using the token displayed in the terminal we can login to Vault
image

image

This is to my knowledge the fastest way to launch Vault for demo or evaluation purposes live on the internet.

Thank you for this great project!

- running vault via nohup and put in the background
- running vault, testing
- forwarding ports, testing
- cleaning up
@star3am star3am requested a review from a team as a code owner October 6, 2025 02:13
Copy link

vercel bot commented Oct 6, 2025

@star3am is attempting to deploy a commit to the HashiCorp Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

hashicorp-cla-app bot commented Oct 6, 2025

CLA assistant check
All committers have signed the CLA.

@star3am star3am changed the title Feature/devcontainer Feature: adding a Dev Container to Vault Oct 6, 2025
@heatherezell
Copy link
Contributor

Please make sure to sign the CLA! Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants