summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
diff options
context:
space:
mode:
authorDmitry Wagin <dmitry.wagin@ya.ru>2021-01-25 17:02:09 +0300
committerDaniel Stenberg <daniel@haxx.se>2021-01-30 23:48:22 +0100
commit796ce293defeeefb001bd8b76bbb75eb77a1ce0c (patch)
tree5de053a8198e191860a9bc7177c9788880e094a5 /docs/cmdline-opts
parent3c2210713e2427d567a6c44b83b3c9ac2a8577bc (diff)
downloadcurl-796ce293defeeefb001bd8b76bbb75eb77a1ce0c.tar.gz
http: improve AWS HTTP v4 Signature auth
- Add support services without region and service prefixes in the URL endpoint (ex. Min.IO, GCP, Yandex Cloud, Mail.Ru Cloud Solutions, etc) by providing region and service parameters via aws-sigv4 option. - Add [:region[:service]] suffix to aws-sigv4 option; - Fix memory allocation errors. - Refactor memory management. - Use Curl_http_method instead() STRING_CUSTOMREQUEST. - Refactor canonical headers generating. - Remove repeated sha256_to_hex() usage. - Add some docs fixes. - Add some codestyle fixes. - Add overloaded strndup() for debug - curl_dbg_strndup(). - Update tests. Closes #6524
Diffstat (limited to 'docs/cmdline-opts')
-rw-r--r--docs/cmdline-opts/aws-sigv4.d9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/cmdline-opts/aws-sigv4.d b/docs/cmdline-opts/aws-sigv4.d
index c976d3485..26546df3f 100644
--- a/docs/cmdline-opts/aws-sigv4.d
+++ b/docs/cmdline-opts/aws-sigv4.d
@@ -1,5 +1,5 @@
Long: aws-sigv4
-Arg: <provider1[:provider2]>
+Arg: <provider1[:provider2[:region[:service]]]>
Help: Use AWS V4 signature authentication
Category: auth http
Added: 7.75.0
@@ -8,3 +8,10 @@ Use AWS V4 signature authentication in the transfer.
The provider argument is a string that is used by the algorithm when creating
outgoing authentication headers.
+
+The region argument is a string that points to a geographic area of
+a resources collection (region-code) when the region name is omitted from
+the endpoint.
+
+The service argument is a string that points to a function provided by a cloud
+(service-code) when the service name is omitted from the endpoint.