mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
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.