mirror of
https://github.com/hashicorp/vault-action.git
synced 2026-04-13 23:36:56 +00:00
feat(authenticate): add approle auth method (#10)
* feat(authenticate): add approle auth method * docs(readme): update readme * fix: update index.js * fix: update got to 10.2.2 to fix ncc * chore: clean up code slightly * chore: update tests to use got correctly * chore(test): fix integration tests * chore: streamline method logic * chore: make role and secret required in approle Co-authored-by: Sébastien FAUVART <sebastien.fauvart@gmail.com> Co-authored-by: Richard Simpson <richardsimpson@outlook.com>
This commit is contained in:
parent
7a9634236c
commit
3b9239de79
9 changed files with 2981 additions and 2159 deletions
21
README.md
21
README.md
|
|
@ -22,6 +22,26 @@ jobs:
|
|||
# ...
|
||||
```
|
||||
|
||||
## Authentication method
|
||||
|
||||
The `method` parameter can have these value :
|
||||
- **token**: (by default) you must provide a token parameter
|
||||
```yaml
|
||||
...
|
||||
with:
|
||||
url: https://vault.mycompany.com:8200
|
||||
token: ${{ secrets.VaultToken }}
|
||||
```
|
||||
- **approle**: you must provide a roleId & secretId parameter
|
||||
```yaml
|
||||
...
|
||||
with:
|
||||
url: https://vault.mycompany.com:8200
|
||||
method: approle
|
||||
roleId: ${{ secrets.roleId }}
|
||||
secretId : ${{ secrets.secretId }}
|
||||
```
|
||||
|
||||
## Key Syntax
|
||||
|
||||
The `secrets` parameter is a set of multiple secret requests separated by the `;` character.
|
||||
|
|
@ -84,6 +104,7 @@ steps:
|
|||
uses: RichiCoder1/vault-action
|
||||
with:
|
||||
url: https://vault-enterprise.mycompany.com:8200
|
||||
method: token
|
||||
token: ${{ secrets.VaultToken }}
|
||||
namespace: ns1
|
||||
secrets: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue