-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implements Federated Bundle Fetching #98
Conversation
Signed-off-by: martincapello <m.a.capello@gmail.com>
Signed-off-by: martincapello <m.a.capello@gmail.com>
v2/federation/fetch.go
Outdated
var defaultFetchOptions = fetchOptions{ | ||
transport: http.DefaultTransport, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, how would you feel about transport
being a concrete *http.Transport
instead of a round tripper? The default could then be a copy of the default http transport:
defaultTransport := *http.DefaultTransport.(*http.Transport)
transport = &defaultTransport
I think there is value in preserving the default transport behavior even when we replace the TLS config for SPIFFE auth.
🤦♂️ you are right! |
In the above line I got: |
Oh shoot. Yes. Instead use |
Signed-off-by: martincapello <m.a.capello@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/
Signed-off-by: martincapello <m.a.capello@gmail.com>
Signed-off-by: martincapello <m.a.capello@gmail.com>
Signed-off-by: martincapello <m.a.capello@gmail.com>
Signed-off-by: martincapello <m.a.capello@gmail.com>
Signed-off-by: martincapello <m.a.capello@gmail.com>
Fixes #65
Unit test are in progress and will be pushed in a new PR.