Skip to content
Snippets Groups Projects
Commit 4fcb00cb authored by Quang-Minh Nguyen's avatar Quang-Minh Nguyen Committed by Eric Ju
Browse files

test: Test ALPN enforcement in TLS connections

This commit adds tests to verify ALPN (Application-Layer Protocol Negotiation)
enforcement in TLS connections with Gitaly servers. ALPN enforcement ensures
that servers and clients properly negotiate protocol versions, which improves
security by preventing protocol downgrade attacks.

The tests validate both positive and negative scenarios across different
client-server combinations, including:
- Clients with and without ALPN capabilities
- Server implementations (both standard Gitaly and non-ALPN dummy servers)
- Environment-controlled enforcement behaviors

By testing these combinations, we ensure that connections correctly enforce
ALPN requirements when the enforcement flag is enabled while maintaining
backward compatibility where needed.
parent 9615a076
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment