Skip to content

redis: constant-time compare for downstream auth password#45472

Open
jmestwa-coder wants to merge 1 commit into
envoyproxy:mainfrom
jmestwa-coder:redis-auth-consttime
Open

redis: constant-time compare for downstream auth password#45472
jmestwa-coder wants to merge 1 commit into
envoyproxy:mainfrom
jmestwa-coder:redis-auth-consttime

Conversation

@jmestwa-coder
Copy link
Copy Markdown

compare the AUTH password against each configured downstream password with CRYPTO_memcmp in checkPassword instead of std::string ==, which short-circuits on the first mismatch and leaks the configured password by timing over the network.

Signed-off-by: jmestwa-coder <jmestwa@gmail.com>
@repokitteh-read-only
Copy link
Copy Markdown

Hi @jmestwa-coder, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #45472 was opened by jmestwa-coder.

see: more, trace.

@jmestwa-coder jmestwa-coder requested a deployment to external-contributors June 5, 2026 14:42 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant