aws / aws-sigv4-auth-cassandra-java-driver-plugin

A SigV4 authentication plugin for the open-source DataStax Java Driver for Apache Cassandra. Allows use of AWS IAM users and roles for direct authentication.
Apache License 2.0
13 stars 14 forks source link

Fix SigV4 timestamp formatting to match SigV4 Spec #7

Closed dchenbec closed 4 years ago

dchenbec commented 4 years ago

A change was introduced somewhere between JDK8 and JDK11 that increased the resolution of the formatted value of java.time.Instant so that it went from millisecond to microsecond resolution. Because the SigV4 spec uses millisecond resolution, the resulting string caused a signature mismatch.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.