-
Notifications
You must be signed in to change notification settings - Fork 249
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
Please document (and verify via tests) which http_connector/tcp_connector gets used for IMDS (to allow https_only
for others)
#579
Comments
Following up on this: several existing bits of documentation showing how to use ProviderConfig give examples that build a connector with |
https_only
for others)https_only
for others)
I'm looking at how we define and use connectors in the SDK right now with the aim of simplifying things. I'll make sure, when the design solidifies, to make it as obvious as possible what can be set, how, and where it will be used. |
That sounds great. I would love to see a simplified model here. Thank you! |
The team is not going to be able to address this issue in the short term but we do consider it important and we'll be thinking about it. |
The right thing to do here is adding an |
Per the announcement in the latest release:
|
This looks like this has been documented in the latest version. Please let us know if you still have any questions/concerns about this. |
Comments on closed issues are hard for our team to see. |
Describe the bug
Setting up a custom connector requires providing that connector in several places: in the
ProviderConfig
, in theSdkConfig
, and in the various API clients.One of the first two gets used for IMDS, to retrieve things like the region or authentication tokens. Providing a connector that only supports
https
will break in this case ("Unsupported scheme http").Please document which of the connectors gets used for IMDS, and that that connector must support HTTP.
Ideally, please also verify via tests that that connector gets used for http to IMDS (and never for https), and other connectors are never used for http, only https.
Expected Behavior
I'd like to get some kind of indication that
https_only
won't work for one specific connector, and a clear indication of which connector.Current Behavior
"Unsupported scheme http"
Reproduction Steps
Configure a hyper-rustls connector, calling
.https_only()
on its builder during setup.Use that connector in the provider config (via
.http_connector
) and theSdkConfig
(via.http_connector
and indirectly via the provider config passed to.configure
).Observe the failure documented above.
Possible Solution
No response
Additional Information/Context
No response
Version
Environment details (OS name and version, etc.)
Debian, latest sid
Logs
No response
The text was updated successfully, but these errors were encountered: