Skip to content

Commit fa77267

Browse files
committed
shadow
1 parent 974fb40 commit fa77267

File tree

1 file changed

+6
-6
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp

1 file changed

+6
-6
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -374,18 +374,18 @@ private class AmazonQServerInstance(private val project: Project, private val cs
374374
val artifact = runBlocking { service<ArtifactManager>().fetchArtifact(project) }.toAbsolutePath()
375375

376376
// make some network calls for troubleshooting
377-
listOf(*QEndpoints.listRegionEndpoints().map { it.endpoint }.toTypedArray(), QDefaultServiceConfig.ENDPOINT).forEach {
377+
listOf(*QEndpoints.listRegionEndpoints().map { it.endpoint }.toTypedArray(), QDefaultServiceConfig.ENDPOINT).forEach { endpoint ->
378378
try {
379-
val qUri = URI(it)
379+
val qUri = URI(endpoint)
380380
val rtsTrustChain = TrustChainUtil.getTrustChain(qUri)
381381
val trustRoot = rtsTrustChain.last()
382382
// ATS is cross-signed against starfield certs: https://www.amazontrust.com/repository/
383383
if (listOf("Amazon Root CA", "Starfield Technologies").any { trustRoot.subjectX500Principal.name.contains(it) }) {
384-
LOG.info { "Trust chain for $it ends with public-like CA with sha256 fingerprint: ${DigestUtil.sha256Hex(trustRoot.encoded)}"}
384+
LOG.info { "Trust chain for $endpoint ends with public-like CA with sha256 fingerprint: ${DigestUtil.sha256Hex(trustRoot.encoded)}"}
385385
} else {
386386
LOG.info {
387387
"""
388-
|Trust chain for $it transits private CA:
388+
|Trust chain for $endpoint transits private CA:
389389
|${buildString {
390390
rtsTrustChain.forEach { cert ->
391391
append("Issuer: ${cert.issuerX500Principal}, ")
@@ -395,10 +395,10 @@ private class AmazonQServerInstance(private val project: Project, private val cs
395395
}}
396396
""".trimMargin("|")
397397
}
398-
LOG.debug { "Full trust chain info for $it: $rtsTrustChain" }
398+
LOG.debug { "Full trust chain info for $endpoint: $rtsTrustChain" }
399399
}
400400
} catch (e: Exception) {
401-
LOG.info { "${e.message}: Could not resolve trust chain for $it" }
401+
LOG.info { "${e.message}: Could not resolve trust chain for $endpoint" }
402402
}
403403
}
404404

0 commit comments

Comments
 (0)