Skip to content

fix(cassandra): Amazon Keyspaces IAM sign-in signs with the ISO 8601 timestamp Keyspaces reads - #4712

Open
datlechin wants to merge 2 commits into
mainfrom
fix/keyspaces-sigv4-login
Open

datlechin wants to merge 2 commits into
mainfrom
fix/keyspaces-sigv4-login

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • The Amazon Keyspaces SigV4 login sends amzdate, X-Amz-Date and the string-to-sign time as yyyy-MM-ddTHH:mm:ss.SSSZ, the form AWS's Java, Python, Go and Node.js Keyspaces plugins send. The compact SigV4 form we sent made Keyspaces answer "Internal Server Error".
  • Milliseconds are truncated, never rounded into the next second, and the scope date comes from the same instant.
  • KeyspacesSigV4Tests/authResponseShape pinned the old compact amzdate and is updated with it.
  • Body-only change in PluginKit, no ABI change. The host's PluginKit carries it, so installed Cassandra plugins get it with the app.

Test plan

  • KeyspacesSigV4Tests/awsReferenceVector and awsReferenceVectorWithSessionToken check the full response against the test vector AWS's plugins share (signature 7f3691c1…). Both fail on main and pass here.
  • KeyspacesSigV4Tests/amzDateMilliseconds covers truncation at a second and a year boundary.
  • Not run against a live Keyspaces endpoint.

Fixes #4705

@datlechin datlechin added bug Something isn't working backport release/0.88 Merged into main; pick onto release/0.88 backport release/0.89 Merged into main; pick onto release/0.89 labels Nov 29, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/0.88 Merged into main; pick onto release/0.88 backport release/0.89 Merged into main; pick onto release/0.89 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Amazon Keyspaces IAM (SigV4) login fails with "Internal Server Error (0x02000000)"

1 participant