Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.29 Backports 2024-10-23 #982

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

sayboras
Copy link
Member

@sayboras sayboras commented Oct 22, 2024

Once this PR is merged, a GitHub action will update the labels of these PRs:

 974

[ upstream commit 1e298fa ]

When validating the input header value against a secret, it is advisable
to use a timing-safe string comparison operator with a runtime that is
independent of the number of equivalent prefix bytes of the secret and
header value. This commit is to use CRYPTO_memcmp function[^1] for string
comparison, similar to what is done in envoy codebase.

[^1]: https://github.com/openssl/openssl/blob/master/doc/man3/CRYPTO_memcmp.pod

Signed-off-by: Tam Mach <[email protected]>
@sayboras sayboras marked this pull request as ready for review October 22, 2024 22:04
@sayboras sayboras requested a review from a team as a code owner October 22, 2024 22:04
@sayboras sayboras requested review from jrajahalme and removed request for a team October 22, 2024 22:04
@sayboras sayboras merged commit fa4efef into v1.29 Oct 22, 2024
5 checks passed
@sayboras sayboras deleted the pr/v1.29-backport-2024-10-23-08-59 branch October 22, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant