Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

[Bug] Key Vault Secrets loaded multiple times #906

@mrm9084

Description

@mrm9084

Environment

  • Spring boot starter:

    azure-keyvault-secrets-spring-boot-starter

  • OS Type: Windows

  • Java version:

    • 1.8

Summary

When used with another configuration provider the key vault values are loaded multiple times. I see the values load 4 times, though someone else sees 8.

Initially reported here, Azure/AppConfiguration#306, but seems to be a Key Vault issue.

Reproduce steps

https://github.com/saragluna/demo-appconfiguration-kv

  1. start the application and hit http://localhost:8080
  2. wait for a minute
  3. Update the value of the config. messages property in app configuration from azure portal.
  4. Hit http://localhost:8080 again and the application will refresh the app configuration.
  5. While refreshing, I am able to monitor the logs and it fetches the key-vault value azure.cosmosdb.key several time, 8 times to be exact.

Expected Results

The values are loaded only once.

Actual Results

The key vault values are loaded multiple times, in large stores this results in a very long startup/refresh times.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions