Files
floci/docs
Priamo Germosen 8b2d21498b fix(elasticache,memorydb): check AUTH sent after sign-in and close IAM connections after 12 hours (#8704)
Once a client had signed in, the auth proxy relayed its bytes blind, so a later AUTH or HELLO reached
the backend with the client's own credentials, which the backend refuses. A client refreshing its IAM
token or switching user got WRONGPASS where AWS signs it in. Where the proxy checks credentials, it now
keeps reading the client's commands and checks a later AUTH or HELLO as at sign-in. Accepted
credentials are relayed as their user's private backend credentials and refused ones as credentials
the backend refuses, so the backend still answers every command and the replies keep their order. The
client's password or token never reaches the backend, and every other command passes byte for byte.

A connection signed in with an IAM token is now closed 12 hours after it signed in, and a new token
gives it another 12 hours, as AWS documents for ElastiCache and MemoryDB. An IAM user's AUTH or HELLO
inside MULTI is refused, since AWS does not support IAM re-authentication inside a transaction.
2026-11-17 05:06:39 -04:00
..
2026-03-15 17:43:56 -05:00