-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-sigv4 request signature does not match expected value #11794
Comments
Combined with #7559, it appears as if the list of "bad" characters is now The 7559 problem is a documented known bug |
I suspect this is because the %HH-encoding curl does is using lowercase letters, and not uppercase as the "spec" seems to suggest it should use. /cc @outscale-mgo |
I'm pretty sure we need to "canonicalize" the URL query to make aws-sigv4 work proper. Because right now a URL like: |
It's exactly that, the URL need to be encoded manually. |
OK, I tried manually encoding the parameter value and that works:
Though ideally using RFC 3986 section 2.1, where this encoding is defined, states:
|
Percent encoding needs to be done using uppercase, and most non-alphanumerical must be percent-encoded. Fixes #11794 Reported-by: John Walker
#11806 is my attempt at a fix |
Percent encoding needs to be done using uppercase, and most non-alphanumerical must be percent-encoded. Fixes #11794 Reported-by: John Walker
Percent encoding needs to be done using uppercase, and most non-alphanumerical must be percent-encoded. Fixes curl#11794 Reported-by: John Walker Closes curl#11806
I did this
I'm trying to sign
GET
requests to the SPARQL endpoint of an Amazon Neptune cluster where query string parameters are used to pass information. If the parameter values contain spaces, forward slashes/
, or colons:
, then the signature calculated by curl does not match what the server expects.An example request:
Gets a response like this:
I expected the following
The calculated signature should be correct.
curl/libcurl version
curl 8.2.1 (x86_64-w64-mingw32) libcurl/8.2.1 OpenSSL/3.1.2 (Schannel) zlib/1.3 brotli/1.1.0 zstd/1.5.5 WinIDN libssh2/1.11.0 nghttp2/1.55.1 ngtcp2/0.19.0 nghttp3/0.15.0
Release-Date: 2023-07-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe UnixSockets zstd
operating system
Windows 64-bit
The text was updated successfully, but these errors were encountered: