-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return a ValueAbsent for all the downstream-tls related functions ins…
…tead of a NotAvailable (#315) * Return a ValueAbsent for all the downstream-tls related functions Currently these functions return a NotAvailable error, I believe this is because we don't support https within Viceroy. We do support http though, and http is also supported on Fastly, this patch adds an implementation for the downstream-tls functions which is valid for http (non-tls) connections. As Viceroy does not yet support https, we could say this is a full implementation as-of-today. In the future if/when Viceroy supports https, we would need to come back to these functions and make them return the correct, expected values based on the incoming connection (tls or not). * Remove ja3 call in test as the current rust sdk will panic from that call * Add note that the test for get_tls_raw_client_certificate() on non-tls requests is commented out as it currently panics - we are waiting on a patch to land in the fastly crate to make it not panic in this situation
- Loading branch information
Jake Champion
authored
Apr 4, 2024
1 parent
8feaf78
commit 4067d0f
Showing
2 changed files
with
32 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters