Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 2, 2025

Backport of #8406 to release/9.2

/cc @eerhardt @davidfowl

Fix #8364

Customer Impact

When using Azure Cosmos, Redis, or Postgres resources with secrets (WithAccessKeyAuthentication or WithPasswordAuthentication) and running as an emulator/container during F5 time, the KeyVault resource was being added to the model and being provisioned. This is unnecessary and can block people's apps because they didn't set up for Azure provisioning, since they are using the emulator.

Testing

Added new unit tests to ensure the KV resource is not in the app model. Also manual tested.

Risk

There's risk here that not keeping the KV resource in the model might uncover other problems. But I'm not currently aware of any problems this causes. It is the same approach used elsewhere - like in the case of Azure Functions and the Host Storage account.

Regression?

Yes, from 9.1 and previous versions.

@eerhardt eerhardt changed the title [release/9.2] Davidfowl/fix emulators [release/9.2] Cosmos, Redis and Postgres show keyvault when using key access or passwords with emulator Apr 2, 2025
@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Apr 2, 2025
@danmoseley
Copy link
Member

Whee the bot worked!

@joperezr joperezr merged commit 941d1a1 into release/9.2 Apr 2, 2025
174 checks passed
@joperezr joperezr deleted the backport/pr-8406-to-release/9.2 branch April 2, 2025 15:43
@github-actions github-actions bot locked and limited conversation to collaborators May 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants