mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-14 07:46:52 +00:00
feat(namespace): handle request on vault namespace (#5)
* feat(namespace): handle request on vault namespace
This commit is contained in:
parent
0104a02854
commit
3747195c5f
9 changed files with 214 additions and 6 deletions
19
README.md
19
README.md
|
|
@ -73,6 +73,25 @@ with:
|
|||
ci/aws secretKey | AWS_SECRET_ACCESS_KEY
|
||||
```
|
||||
|
||||
### Namespace
|
||||
|
||||
This action could be use with namespace Vault Enterprise feature. You can specify namespace in request :
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# ...
|
||||
- name: Import Secrets
|
||||
uses: RichiCoder1/vault-action
|
||||
with:
|
||||
url: https://vault-enterprise.mycompany.com:8200
|
||||
token: ${{ secrets.VaultToken }}
|
||||
namespace: ns1
|
||||
secrets: |
|
||||
ci/aws accessKey | AWS_ACCESS_KEY_ID ;
|
||||
ci/aws secretKey | AWS_SECRET_ACCESS_KEY ;
|
||||
ci npm_token
|
||||
```
|
||||
|
||||
## Masking
|
||||
|
||||
This action uses Github Action's built in masking, so all variables will automatically be masked if printed to the console or to logs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue