Skip to content
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

ECS Object Client SDK for Java v3.4.5 giving Error on version 4 signature #109

Open
UdayBidikar opened this issue Dec 30, 2023 · 1 comment

Comments

@UdayBidikar
Copy link

[2023-12-30T15:01:25.048+0200] [DEBUG] [74886] [ObjectConfig:168:main] - raw path & query: /?limit=1000
[2023-12-30T15:01:25.049+0200] [DEBUG] [74886] [ObjectConfig:169:main] - resolved URI: https://object.ecstestdrive.com:443/?limit=1000
[2023-12-30T15:01:25.078+0200] [DEBUG] [74886] [S3Signer:143:main] - CanonicalRequest: GET
/
limit=1000
host:object.ecstestdrive.com:443
user-agent:ECS Java SDK Java/14 (Mac OS X; 10.16; x86_64)
x-amz-date:20231230T130125Z

host;user-agent;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
[2023-12-30T15:01:25.079+0200] [DEBUG] [74886] [S3Signer:50:main] - StringToSign: AWS4-HMAC-SHA256
20231230T130125Z
20231230/us-east-1/s3/aws4_request
5bd68834f99014739bef7144c3ebd4bc2ac9ea07acc6fdc403ab07e27d928b7d
[2023-12-30T15:01:25.080+0200] [DEBUG] [74886] [S3Signer:65:main] - hmac of [65, 87, 83, 52, 51, 114, 115, 116, 51, 79, 119, 68, 84, 119, 80, 48, 70, 107, 109, 79, 56, 65, 103, 69, 115, 103, 114, 87, 106, 65, 74, 98, 76, 101, 118, 103, 49, 54, 111, 76, 48, 88, 113, 89] and 20231230:
[124, 75, 23, -89, 83, 114, -39, -83, 54, -104, 12, -79, 3, 24, -12, 8, -31, 113, -37, -49, -60, 96, -39, 6, -110, -2, 70, -29, -4, -24, 31, 88]
[2023-12-30T15:01:25.080+0200] [DEBUG] [74886] [S3Signer:65:main] - hmac of [124, 75, 23, -89, 83, 114, -39, -83, 54, -104, 12, -79, 3, 24, -12, 8, -31, 113, -37, -49, -60, 96, -39, 6, -110, -2, 70, -29, -4, -24, 31, 88] and us-east-1:
[40, 111, -76, 127, -34, -75, 26, 5, -67, -4, -63, 88, 10, -50, 3, -43, 21, -104, -64, 107, -52, 29, -18, -109, -60, 81, -22, 76, -110, -82, 92, -81]
[2023-12-30T15:01:25.081+0200] [DEBUG] [74886] [S3Signer:65:main] - hmac of [40, 111, -76, 127, -34, -75, 26, 5, -67, -4, -63, 88, 10, -50, 3, -43, 21, -104, -64, 107, -52, 29, -18, -109, -60, 81, -22, 76, -110, -82, 92, -81] and s3:
[-103, -57, -88, 94, -38, -98, 1, 47, 44, -8, 74, 43, 80, -48, 82, -58, -31, 110, -64, -65, 92, -121, 93, 53, 8, 52, 33, -56, 117, -68, -99, 83]
[2023-12-30T15:01:25.081+0200] [DEBUG] [74886] [S3Signer:65:main] - hmac of [-103, -57, -88, 94, -38, -98, 1, 47, 44, -8, 74, 43, 80, -48, 82, -58, -31, 110, -64, -65, 92, -121, 93, 53, 8, 52, 33, -56, 117, -68, -99, 83] and aws4_request:
[-35, 70, -24, -89, 25, 17, -95, -96, 4, 55, -116, 91, 68, 24, 28, 87, 24, 5, -19, -10, -57, 79, 78, 79, 65, 100, 54, -6, 42, -119, -101, 50]
[2023-12-30T15:01:25.081+0200] [DEBUG] [74886] [S3Signer:65:main] - hmac of [-35, 70, -24, -89, 25, 17, -95, -96, 4, 55, -116, 91, 68, 24, 28, 87, 24, 5, -19, -10, -57, 79, 78, 79, 65, 100, 54, -6, 42, -119, -101, 50] and AWS4-HMAC-SHA256
20231230T130125Z
20231230/us-east-1/s3/aws4_request
5bd68834f99014739bef7144c3ebd4bc2ac9ea07acc6fdc403ab07e27d928b7d:
[49, -73, -74, 90, 62, -29, 87, -107, 95, 39, -116, 122, -24, 81, 44, -11, 87, -17, -47, 43, -14, 23, -100, -65, -43, -31, -37, 73, -92, -88, 5, 34]
[2023-12-30T15:01:25.081+0200] [DEBUG] [74886] [S3Signer:64:main] - Signature: 31b7b65a3ee357955f278c7ae8512cf557efd12bf2179cbfd5e1db49a4a80522
[2023-12-30T15:01:25.824+0200] [DEBUG] [74886] [ErrorFilter:133:main] - Error: SignatureDoesNotMatch, message: The request signature we calculated does not match the signature you provided. Check your Secret Access Key and signing method. For more information, see REST Authentication and SOAP Authentication for details., requestId: 0c07c87b:18c44a618e3:d9c7:1e03

@UdayBidikar
Copy link
Author

UdayBidikar commented Dec 30, 2023

Using ECS TEST DRIVE - ECS VERSION 3.8.0.5
https://portal.ecstestdrive.com/

Version 2 signature works fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant