5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 07:06:56 +00:00
This commit is contained in:
Michel Hiemstra 2025-10-09 12:58:12 +00:00 committed by GitHub
commit 2d9e078039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 0 deletions

View file

@ -1,5 +1,9 @@
## Unreleased ## 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) ## 3.4.0 (June 13, 2025)
Bugs: Bugs:

View file

@ -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. 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` ### `exportEnv`
**Type: `string`**\ **Type: `string`**\

View file

@ -51,6 +51,10 @@ inputs:
extraHeaders: extraHeaders:
description: 'A string of newline separated extra headers to include on every request.' description: 'A string of newline separated extra headers to include on every request.'
required: false required: false
http2:
description: 'Whether or not to use HTTP/2 when communicating with the Vault server.'
default: 'false'
required: false
exportEnv: exportEnv:
description: 'Whether or not export secrets as environment variables.' description: 'Whether or not export secrets as environment variables.'
default: 'true' default: 'true'

View file

@ -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'; const tlsSkipVerify = (core.getInput('tlsSkipVerify', { required: false }) || 'false').toLowerCase() != 'false';
if (tlsSkipVerify === true) { if (tlsSkipVerify === true) {
defaultOptions.https.rejectUnauthorized = false; defaultOptions.https.rejectUnauthorized = false;