Skip to content

Commit

Permalink
Add how to install, run and test it
Browse files Browse the repository at this point in the history
  • Loading branch information
slarwise committed Aug 18, 2024
1 parent 9942841 commit afbcdc3
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
# Pole (vault)

Browse secrets in vault in the terminal. To do it, do:

```sh
git clone <this>
go install .
export VAULT_ADDR=https://my-vault.com
export VAULT_TOKEN=secret-token
pole3
```
mountA
dirA
secret1
secret2
```

Read all secrets under mountA concurrently.
Navigate secrets and mounts with the arrow keys.

## Development

To start and populate a local vault server, run

```sh
go run dev-vault/main.go
```
LIST mountA
LIST dirA
GET dirA/secret1
GET secret2

Set the environment with

```sh
dev-vault/env.sh
```

Wait until this is done to visualize the data.
and run `go run main.go` to test it.

0 comments on commit afbcdc3

Please sign in to comment.