Skip to content

Commit cb64a65

Browse files
authored
Always use system trust store when creating Q client (#4652)
Some users may have a networking setup where they implicitly traverse SSL-introspecting appliances without explicit configuration.
1 parent 3b14912 commit cb64a65

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type" : "bugfix",
3+
"description" : "Fix Q Chat not respecting system trust store unless a proxy is configured"
4+
}

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeWhispererEndpointCustomizer.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ class CodeWhispererEndpointCustomizer : ToolkitClientCustomizer {
9595
.useSystemPropertyValues(false)
9696

9797
clientBuilder.proxyConfiguration(proxyConfiguration.build())
98-
.tlsTrustManagersProvider { arrayOf<TrustManager>(CertificateManager.getInstance().trustManager) }
9998
}
10099

101-
builder.httpClientBuilder(clientBuilder)
100+
builder.httpClientBuilder(
101+
clientBuilder
102+
.tlsTrustManagersProvider { arrayOf<TrustManager>(CertificateManager.getInstance().trustManager) }
103+
)
102104
}
103105
} else if (builder is CodeWhispererClientBuilder) {
104106
clientOverrideConfiguration.addExecutionInterceptor(

0 commit comments

Comments
 (0)