Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-drprasad/porter-hashicorp-plugins
HashCorp's plugins for Porter
https://github.com/dev-drprasad/porter-hashicorp-plugins
go porter porter-plugin
Last synced: 4 months ago
JSON representation
HashCorp's plugins for Porter
- Host: GitHub
- URL: https://github.com/dev-drprasad/porter-hashicorp-plugins
- Owner: dev-drprasad
- License: mit
- Created: 2020-05-07T11:24:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-01T23:14:02.000Z (over 2 years ago)
- Last Synced: 2024-06-19T15:17:36.300Z (5 months ago)
- Topics: go, porter, porter-plugin
- Language: Go
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cnab - hashicorp-plugins - Hashicorp's Vault plugin for Porter plugin by @dev-drprasad (Implementations / Porter)
README
### Porter's HashiCorp Plugins
This is a [Porter][porter] plugin to inject credentials to Porter bundle from hashicorp's [vault][vault].
Supports porter version greater or equal to **v0.23.0-beta.1** and supports only [KV Version 2][kv-v2] secret engine. Please raise an issue if you're looking for support for other secret engines
#### Install:
```
porter plugin install hashicorp --feed-url https://github.com/dev-drprasad/porter-hashicorp-plugins/releases/download/feed/atom.xml
```#### Configuration:
To use vault plugin, add the following config to porter's config file (default location: `~/.porter/config.toml`).
Replace `vault_addr`, `vault_token` and `path_prefix` with proper values.```
default-secrets = "porter-secrets"
[[secrets]]
name = "porter-secrets"
plugin = "hashicorp.vault"[secrets.config]
vault_addr = "http://vault.example.com:7500"
path_prefix = "organization/team/project"
vault_token = "token"
```Your secret will be injected as json into porter manifest. Currently there is no support for accessing specific key from a secret. If you're looking for that feature, do raise an issue.
#### Config Parameters
##### `path_prefix`
`path_prefix` lets allow you to specify prefix for your secret path. Let' say you have a secret (`myawesomeproject`) with path `organization/team/project/myawesomeproject`, then you can configure `path_prefix` as `organization/team/project`.
[porter]: https://porter.sh/
[vault]: https://www.vaultproject.io/
[kv-v2]: https://www.vaultproject.io/api-docs/secret/kv/kv-v2