Skip to content

Commit bacec5a

Browse files
authored
Use configured HTTP transport for SSH metadata fetch (#5075)
## Summary - `getServerMetadata` in `experimental/ssh` was using `http.DefaultClient` for the driver proxy metadata request, bypassing workspace TLS and proxy configuration from `client.Config`. - Replace with `&http.Client{Transport: client.Config.HTTPTransport}` to respect custom TLS certs and proxy settings. ## Test plan - [ ] Verify SSH connect works with default config - [ ] Verify SSH connect works behind corporate proxy with custom TLS certs
1 parent de07621 commit bacec5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

experimental/ssh/internal/client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ func getServerMetadata(ctx context.Context, client *databricks.WorkspaceClient,
454454
if err := client.Config.Authenticate(req); err != nil {
455455
return 0, "", "", err
456456
}
457-
resp, err := http.DefaultClient.Do(req)
457+
httpClient := &http.Client{Transport: client.Config.HTTPTransport}
458+
resp, err := httpClient.Do(req)
458459
if err != nil {
459460
return 0, "", "", err
460461
}

0 commit comments

Comments
 (0)