Closed taer closed 4 months ago
Looks like this has been semi-addressed in the tip of main
public URI buildEndpointConfiguration(Region stsRegion) {
StsEndpointParams params = StsEndpointParams.builder()
.region(stsRegion)
.build();
try {
return StsEndpointProvider.defaultProvider()
.resolveEndpoint(params)
.get()
.url();
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}
}
That's at least not the same code.
Could this be released?
This was fixed in https://github.com/aws/aws-msk-iam-auth/commit/d064c9a84e61e73e0d833f1f560aeee1c02814b2
We plan on releasing by the end of June.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
This is from 2.1.0 of the java aws-msk-iam-auth module
If you configure the SASL config like this
software.amazon.msk.auth.iam.IAMLoginModule required awsRoleArn="$role" awsRoleSessionName="producer" awsStsRegion="$region";
on startup, you'll get this exception
It looks like the following code is making a URI that the SDK doesn't like
https://github.com/aws/aws-msk-iam-auth/blob/v2.1.0/src/main/java/software/amazon/msk/auth/iam/internals/MSKCredentialProvider.java#L278-L280
I removed the region to the SASL arg, and it starts up.