- 
  Notifications
 You must be signed in to change notification settings 
- Fork 949
The request signature not match. #5849
-
I get this error when i put Object to s3 bucket : " The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. " and strangely when I took the bucket, I definitely didn't get an error like signature not match ( everything went smoothly ).
And I have made sure all the secret keys from s3 are correct.
i use this version dependency :
<dependency>
	<groupId>software.amazon.awssdk</groupId>
	<artifactId>s3</artifactId>
	<version>2.30.0</version>
</dependency>
and i use the java version 17 and spring boot 3.4.1.
is this a bug or just a version error?
Beta Was this translation helpful? Give feedback.
All reactions
Right, so the third-party solution is most likely impacted by a change released in the Java SDK version 2.30.0 announced here. The third-party needs to accommodate the changes on their side, you should reach out to their support team.
Replies: 1 comment 3 replies
-
Are you sending the request to a third-party AWS-compatible solution or to S3 directly?
Can you share a repro example?
Beta Was this translation helpful? Give feedback.
All reactions
-
yes i sending the request to a third-party AWS-compatible.
this is repro example :
PutObjectRequest putRequest = PutObjectRequest.builder()
 .bucket(bucketName)
 .key(keyName)
 .contentType("text/plain") 
 .build();
s3Client.putObject(putRequest, RequestBody.fromFile(Paths.get(filePath)));
@Bean
 public S3Client s3Client(){
 return S3Client.builder()
 .serviceConfiguration(s3Config)
 .endpointOverride(URI.create("endpoin url third party"))
 .credentialsProvider(StaticCredentialsProvider.create(
 AwsBasicCredentials.create("access key", "secret-key")
 ))
 .region(Region.of("my region"))
 .build();
 }
Beta Was this translation helpful? Give feedback.
All reactions
-
Right, so the third-party solution is most likely impacted by a change released in the Java SDK version 2.30.0 announced here. The third-party needs to accommodate the changes on their side, you should reach out to their support team.
Beta Was this translation helpful? Give feedback.
All reactions
-
ok, thanks for your response
Beta Was this translation helpful? Give feedback.