mirror of
https://github.com/hashicorp/vault-action.git
synced 2025-11-07 15:16:56 +00:00
Merge 5d6081151c into 2c5827061f
This commit is contained in:
commit
2d9e078039
4 changed files with 20 additions and 0 deletions
|
|
@ -1,5 +1,9 @@
|
|||
## Unreleased
|
||||
|
||||
Improvements:
|
||||
|
||||
* Support for HTTP/2 via new `http2` input (default `false`) to opt in to HTTP/2 communication with Vault.
|
||||
|
||||
## 3.4.0 (June 13, 2025)
|
||||
|
||||
Bugs:
|
||||
|
|
|
|||
|
|
@ -673,6 +673,13 @@ The JSON payload to be sent to Vault when using a custom authentication method.
|
|||
|
||||
A string of newline separated extra headers to include on every request.
|
||||
|
||||
### `http2`
|
||||
|
||||
**Type: `string`**\
|
||||
**Default: `false`**
|
||||
|
||||
Whether or not to use HTTP/2 when communicating with the Vault server.
|
||||
|
||||
### `exportEnv`
|
||||
|
||||
**Type: `string`**\
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@ inputs:
|
|||
extraHeaders:
|
||||
description: 'A string of newline separated extra headers to include on every request.'
|
||||
required: false
|
||||
http2:
|
||||
description: 'Whether or not to use HTTP/2 when communicating with the Vault server.'
|
||||
default: 'false'
|
||||
required: false
|
||||
exportEnv:
|
||||
description: 'Whether or not export secrets as environment variables.'
|
||||
default: 'true'
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ async function exportSecrets() {
|
|||
}
|
||||
}
|
||||
|
||||
const http2 = (core.getInput('http2', { required: false }) || 'false').toLowerCase() != 'false';
|
||||
if (http2 === true) {
|
||||
defaultOptions.http2 = true;
|
||||
}
|
||||
|
||||
const tlsSkipVerify = (core.getInput('tlsSkipVerify', { required: false }) || 'false').toLowerCase() != 'false';
|
||||
if (tlsSkipVerify === true) {
|
||||
defaultOptions.https.rejectUnauthorized = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue