https://github.com/linuxsuren/api-testing-vault-extension
A Vault-based secret extension of api-testing.
https://github.com/linuxsuren/api-testing-vault-extension
api-testing vault
Last synced: 3 months ago
JSON representation
A Vault-based secret extension of api-testing.
- Host: GitHub
- URL: https://github.com/linuxsuren/api-testing-vault-extension
- Owner: LinuxSuRen
- Created: 2023-08-11T07:09:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T10:03:54.000Z (over 2 years ago)
- Last Synced: 2025-02-05T03:16:36.320Z (about 1 year ago)
- Topics: api-testing, vault
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://app.codacy.com/gh/LinuxSuRen/api-testing-vault-extension?utm_source=github.com&utm_medium=referral&utm_content=LinuxSuRen/api-testing-vault-extension&utm_campaign=Badge_Grade)
[](https://www.codacy.com/gh/LinuxSuRen/api-testing-vault-extension/dashboard?utm_source=github.com\&utm_medium=referral\&utm_content=LinuxSuRen/api-testing-vault-extension\&utm_campaign=Badge_Coverage)
This is a secret extension of [api-testing](https://github.com/LinuxSuRen/api-testing).
## Start a Vault for dev
```shell
vault server -dev
```
## Run vault server on the local machine
Create a config file for it:
```hcl
ui = true
cluster_addr = "http://127.0.0.1:8201"
api_addr = "http://127.0.0.1:8200"
storage "file" {
path = "/opt/vault/data"
}
listener "tcp" {
address = "127.0.0.1:8200"
tls_disable = "true"
}
```
Start the server via: `vault server -config=config.hcl`
then, init it: `vault operator init -address=http://127.0.0.1:8200`
## Start API Testing Vault extension
You can start it in Docker:
```shell
docker run --network host linuxsuren/api-testing-vault-extension:master atest-vault-ext --vault-token your-token --vault-address http://127.0.0.1:8200
```