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

Adding SNI config #40

Merged
merged 17 commits into from
Jul 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
3062fd0
feat: adding SNIConfig to provider and load it
WendelHime Jul 17, 2024
0cebc16
feat: check if there's a SNIConfig available for the provider and use…
WendelHime Jul 17, 2024
4a5c36e
feat: updating go version to 1.22.3; go mod tidy and updating workflo…
WendelHime Jul 17, 2024
547471b
chore: updating workflow for using actions/setup-go@v4
WendelHime Jul 17, 2024
878cb7b
fix: replacing IntN old reference, reverting expected argument type t…
WendelHime Jul 17, 2024
bf437da
fix: removing deprecated references and updating NewProvider referenc…
WendelHime Jul 17, 2024
36cf77f
chore: updating some old domains
WendelHime Jul 19, 2024
df00536
chore: updating default masquerade IPs
WendelHime Jul 22, 2024
c5f6958
chore: returning custom errors when verifying peer certificates
WendelHime Jul 22, 2024
4b8fdd6
fix: updating old test URLs and references so tests can work
WendelHime Jul 22, 2024
9ba01d0
chore: adding more test certificates and akamai default masquerades u…
WendelHime Jul 23, 2024
b26777e
feat: adding feat for sending the provided SNI verify the domain if i…
WendelHime Jul 23, 2024
0e20465
chore: adding note about default_masquerades.go with old IP addresses
WendelHime Jul 23, 2024
1385d8c
fix: updating SNIConfig comment
WendelHime Jul 26, 2024
5ecdafa
fix: hashing IP addresses and setting SNI to masquerades
WendelHime Jul 26, 2024
58b3171
fix: removing unused verifiedChains parameter, replacing fmt errors %…
WendelHime Jul 29, 2024
3da002e
fix: adding comment suggestion explaining about ensuring the use of h…
WendelHime Jul 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: adding comment suggestion explaining about ensuring the use of h…
…ashing for consistently retrieving a SNI for the masquerade IP address
  • Loading branch information
WendelHime committed Jul 30, 2024
commit 3da002e5cd71890e42ac5210bc7f08bcfaa8fdb9
1 change: 1 addition & 0 deletions masquerade.go
Original file line number Diff line number Diff line change
@@ -117,6 +117,7 @@ func NewProvider(hosts map[string]string, testURL string, masquerades []*Masquer
for _, m := range masquerades {
var sni string
if d.SNIConfig != nil && d.SNIConfig.UseArbitrarySNIs {
// Ensure that we use a consistent SNI for a given combination of IP address and SNI set
crc32Hash := int(crc32.ChecksumIEEE([]byte(m.IpAddress)))
sni = d.SNIConfig.ArbitrarySNIs[crc32Hash%len(d.SNIConfig.ArbitrarySNIs)]
}
Loading