matryxxx02
0add1c8a81
Merge remote-tracking branch 'upstream/main' into feat/wildcard-all-secrets
...
# Conflicts:
# package-lock.json
# src/action.js
2023-01-19 01:40:57 +01:00
Luis (LT) Carbonell
0f409d4023
Add Decoding to Secrets ( #408 )
...
* Add decoding to secrets
* remove index.js
* Add test case, and other updates
2023-01-17 10:42:49 -06:00
Tom Proctor
55a11671e0
Retry on 412 status codes ( #333 )
...
* Retry on 412 status codes
* Add retry tests
2022-06-29 12:55:26 +01:00
Christopher Swenson
2dcbd17a34
Add additional mocks needed for tests in new versions of @actions ( #343 )
...
Tests started failing after @actions was bumped in
https://github.com/hashicorp/vault-action/pull/334
2022-06-28 14:35:22 -07:00
Tom Proctor
8e9712e63b
Fix tests from jest-when version bump ( #311 )
...
* Fix tests from jest-when version bump
* Delete unused test helpers
* Add workflow_dispatch for tests
2022-04-28 11:12:56 +01:00
Christopher Swenson
40fb8d7236
Write a better error message when secret not found (follow-up) ( #306 )
...
* Write a better error message when key not found
* Address additional comments on #182
Co-authored-by: Simon Johansson <simon@simonjohansson.com>
2022-04-20 15:53:24 -07:00
Kamil Domański
2f64a97498
make "role" input optional ( #291 )
...
* make "role" input optional
Per Vault documentation it doesn't have to be provided,
and the auth provider's "default_role" parameter is required
precisely for this case.
https://www.vaultproject.io/api/auth/jwt
2022-04-07 15:34:46 +01:00
Kevin Schoonover
c14a190aaa
feat(): make secrets parameter optional ( #299 )
2022-04-07 14:10:23 +01:00
FERNANDES Nicolas nicolas.fernandes.etu@univ-lille.fr
1e3275a961
Merge branch 'master' of https://github.com/hashicorp/vault-action into feat/wildcard-all-secrets
...
Conflicts:
package-lock.json
2021-11-23 22:38:57 +01:00
Alex Kulikovskikh
c502100fbe
feat(): add support for github provided jwt auth ( #257 )
...
* fix: update `privateKeyRaw` condition
* fix: add `contents: read` permission
* fix: get token via `@actions/core`
- Update README
- Switch to use `getIDToken` method for Github token retrieval
- Bump `@actions/core` to 1.6.0
- Add `jwtGithubAudience` input
- Remove unnecessary code
* fix: add description for `jwtGithubAudience`
* fix: move default value for `jwtGithubAudience` to `action.yml`
* docs: fix typo in README & grammar
* test: add tests
* fix: reset `dist/index.js`
* fix: remove default value for `jwtGithubAudience` from `action.yml`
* fix: reset `dist/index.js`
* fix: reset `dist/index.js`
2021-10-08 09:46:21 -07:00
matryxxx02
78c011015e
Check the data property in secrets.js
...
Co-authored-by: Brian Woodward <brian.woodward@gmail.com>
2021-08-31 00:52:47 +02:00
matryxxx02
5ab26dde94
add * wildcard for fetch all secrets
2021-08-26 17:40:23 +02:00
matryxxx02
c2dbbf64ea
add * wildcard for fetch all secrets
2021-08-26 11:45:07 +02:00
Falcon Taylor-Carter
72c7a899ca
Implement kubernetes auth / Add customizable auth path ( #218 )
...
* Implement kubernetes auth / Add customizable auth path
* Fix typo
* Apply suggestions from code review
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
Co-authored-by: Jason O'Donnell <2160810+jasonodonnell@users.noreply.github.com>
2021-06-03 10:59:51 -04:00
Tom Proctor
3526e1be65
Mask each line of multi-line secrets ( #208 )
...
* Mask each line of multi-line secrets
* Don't include carriage return characters in masking
* Update CHANGELOG.md
2021-05-05 11:54:07 +01:00
Raman Harnak
9e8f22534f
Implement JWT auth ( #188 )
2021-05-04 08:49:35 -04:00
bilucodota
1d4917ec58
- Support complex keys, such as yaml/json files ( #173 )
2021-01-11 11:47:51 -05:00
ZANCO Bertrand
2f76ad395b
Add ability to export Vault Token ( #127 )
...
* Add export Vault Token
* Set correct condition for default value
* Add test for exportToken
Fix key with dash
* Restore index.js
2020-10-01 10:22:10 -04:00
Jason O'Donnell
f7f0d5a289
Simplify secret request UX ( #102 )
...
* Simplify secret UX
* Update doc
* Fix tests
2020-08-11 10:06:28 -04:00
Jason O'Donnell
e5ef6c9c11
Fix bug with tlsSkipVerify and add test coverage
2020-08-07 14:57:44 -04:00
Jason O'Donnell
683c9b2557
Add toLower and type equality check
2020-08-06 11:10:44 -04:00
Jason O'Donnell
e59c94afbe
Add TLS and mTLS support
2020-08-05 16:36:27 -04:00
Richard Simpson
a7527a3e8a
chore: make vault action consumable ( #43 )
...
* chore: make vault action consumable
* fix prefixless queries to default to data
* fix the right build entrypoint
* make output more forgiving and shore up selectors
* clarify doc language
* add npmtoken
2020-04-11 23:54:04 -05:00
Richard Simpson
83d944ba1a
fix: actually allow custom methods
2020-04-07 12:14:02 -05:00
Richard Simpson
5c464962be
feat: add generic auth ( #39 )
...
* feat: add generic auth
Adds the ability to authenticate against any normal Vault endpoint by added the `authPayload` input.
When an unrecognized method is provided, the action will attempt to hit `v1/auth/<method>/login` with the provided `authPayload and parse out the token in the response
2020-04-04 13:19:48 -05:00