You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pkg/plugins/builtin/http/README.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This plugin permorms an HTTP request.
13
13
|`body`| a string representing the payload to be sent with the request |
14
14
|`headers`| a list of headers, represented as (`name`, `value`) pairs |
15
15
|`timeout`| timeout expressed as a duration (e.g. `30s`) |
16
-
|`auth`| a single object composed of either a `basic` object with `user` and `password` fields to enable HTTP basic auth, or `bearer` field to enable Bearer Token Authorization|
16
+
|`auth`| a single object composed of either a `basic` object with `user` and `password` fields to enable HTTP basic auth, or a `bearer` field to enable Bearer Token Authorization, or a `mutual_tls` object to enable Mutual TLS authentication|
17
17
|`follow_redirect`| if `true` (string) the plugin will follow up to 10 redirects (302, ...) |
18
18
|`query_parameters`| a list of query parameters, represented as (`name`, `value`) pairs; these will appended the query parameters present in the `url` field; parameters can be repeated (in either `url` or `query_parameters`) which will produce e.g. `?param=value1¶m=value2`|
19
19
|`trim_prefix`| prefix in the response that must be removed before unmarshalling (optional) |
@@ -39,8 +39,17 @@ action:
39
39
user: {{.config.basicAuth.user}}
40
40
password: {{.config.basicAuth.password}}
41
41
bearer: {{.config.auth.token}}
42
+
mutual_tls:
43
+
# a chain of certificates to identify the caller, first certificate in the chain is considered as the leaf, followed by intermediates
44
+
client_cert: {{.config.mtls.clientCert}}
45
+
# private key corresponding to the certificate
46
+
client_key: {{.config.mtls.clientKey}}
42
47
# optional, string as boolean
43
48
follow_redirect: "true"
49
+
# optional, defines additional root CAs to perform the call. can contains multiple CAs concatained together
50
+
root_ca: {{.config.mtls.rootca}}
51
+
# optional, string as boolean. indicates if server certificate must be validated or not.
0 commit comments