Skip to content

Commit 21a539c

Browse files
Dakumotobio
andauthored
Add Request Headers to bypass security gates (#1057)
* chore: add headers to the requests * chore: add headers to the legacy provider part * Make headers a map * make docs-generate * chore: add PR information --------- Co-authored-by: Toby Brain <[email protected]>
1 parent 6227f4b commit 21a539c

28 files changed

+56
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## [Unreleased]
22

3+
- Add `headers` for the provider connection ([#1057](https://github.com/elastic/terraform-provider-elasticstack/pull/1057))
4+
35
## [0.11.15] - 2025-04-23
46

57
- Add `global_data_tags` to fleet agent policies. ([#1044](https://github.com/elastic/terraform-provider-elasticstack/pull/1044))

docs/data-sources/elasticsearch_index_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Optional:
6161
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
6262
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
6363
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
64+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
6465
- `insecure` (Boolean) Disable TLS certificate validation
6566
- `key_data` (String, Sensitive) PEM encoded private key for client auth
6667
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/data-sources/elasticsearch_security_role.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Optional:
6262
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
6363
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
6464
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
65+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
6566
- `insecure` (Boolean) Disable TLS certificate validation
6667
- `key_data` (String, Sensitive) PEM encoded private key for client auth
6768
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/data-sources/elasticsearch_security_role_mapping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Optional:
5959
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
6060
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
6161
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
62+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
6263
- `insecure` (Boolean) Disable TLS certificate validation
6364
- `key_data` (String, Sensitive) PEM encoded private key for client auth
6465
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/data-sources/elasticsearch_security_user.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Optional:
5959
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
6060
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
6161
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
62+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
6263
- `insecure` (Boolean) Disable TLS certificate validation
6364
- `key_data` (String, Sensitive) PEM encoded private key for client auth
6465
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/data-sources/elasticsearch_snapshot_repository.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ Optional:
8787
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
8888
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
8989
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
90+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
9091
- `insecure` (Boolean) Disable TLS certificate validation
9192
- `key_data` (String, Sensitive) PEM encoded private key for client auth
9293
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Optional:
159159
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
160160
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
161161
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
162+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
162163
- `insecure` (Boolean) Disable TLS certificate validation
163164
- `key_data` (String, Sensitive) PEM encoded private key for client auth
164165
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/resources/elasticsearch_cluster_settings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Optional:
7272
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
7373
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
7474
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
75+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
7576
- `insecure` (Boolean) Disable TLS certificate validation
7677
- `key_data` (String, Sensitive) PEM encoded private key for client auth
7778
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/resources/elasticsearch_component_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Optional:
9797
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
9898
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
9999
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
100+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
100101
- `insecure` (Boolean) Disable TLS certificate validation
101102
- `key_data` (String, Sensitive) PEM encoded private key for client auth
102103
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

docs/resources/elasticsearch_data_stream.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ Optional:
103103
- `cert_file` (String) Path to a file containing the PEM encoded certificate for client auth
104104
- `endpoints` (List of String, Sensitive) A list of endpoints where the terraform provider will point to, this must include the http(s) schema and port number.
105105
- `es_client_authentication` (String, Sensitive) ES Client Authentication field to be used with the JWT token
106+
- `headers` (Map of String, Sensitive) A list of headers to be sent with each request to Elasticsearch.
106107
- `insecure` (Boolean) Disable TLS certificate validation
107108
- `key_data` (String, Sensitive) PEM encoded private key for client auth
108109
- `key_file` (String) Path to a file containing the PEM encoded private key for client auth

0 commit comments

Comments
 (0)