Skip to content

[BUG] Spring Cloud Azure keyvault secrets does not use configured connect-timeouts #43222

Open
@mrclmh

Description

@mrclmh

Describe the bug
When using spring.cloud.azure.keyvault.secret a connect-timeout can be confgured in three variants:

  1. spring.cloud.azure.client.http.connect-timeout (configuration-properties-global)
  2. spring.cloud.azure.keyvault.client.connect-timeout (configuration-properties-azure-key-vault)
  3. spring.cloud.azure.keyvault.secret.client.connect-timeout (configuration-properties-azure-key-vault-secrets)

When using a configuration which triggers an io.netty.channel.ConnectTimeoutException the timeout for this is only correctly set when using variant 3. When using variant 1 or 2, the timeout stays at the default 10 seconds.

Exception or Stack Trace
log_global.txt

To Reproduce

  1. Configure usage of Azure keyvault secrets
  2. Configure the connect-timeout with variant 1 or 2 (see above).
  3. Introduce an error in the config (like URI to nonexistent key vault).

Expected behavior
The configured timeout should be used when it is configured globally (variant 1) or for Azure keyvault (variant 2).

Setup (please complete the following information):

  • OS: MacOs 14.7.1
  • Library/Libraries: com.azure.spring:spring-cloud-azure-starter-keyvault-secrets:4.90 via com.azure.spring:spring-cloud-azure-dependencies:5.18.0
  • Java version: 23
  • Frameworks: Spring Boot

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

  • verbose dependency tree (mvn dependency:tree -Dverbose)
  • exception message, full stack trace, and any available logs

Additional context
#31051 seems to be similar

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuescustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions