Azure / Azure/azure-functions-host

Sharing same key vault for storing azure web job secret for app and slot(Or two different app) is not working

Open
#9,565 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

I was working on a setup with AzureWebJobsSecretStorageKeyVaultUri where the access keys will be stored inside the key vault for both Prod and stage slot. During this setup I observed for both stage and prod slot , the secrets are stored with same name as shown below in the screenshot for both master and function keys. So in this case, both stage and prod will be stored using the same name if the cx is using the same key vault in stage and prod slot.There is no differentiation in the app name while storing the secrets in the key vault.

• Can we append function app host name to this key which will allow cx to store secrets of different apps in same key vault?
![image](https://github.com/Azure/azure-functions-host/assets/101626474/fd13256e-f201-428c-b67e-f1979a596949)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported setup with AzureWebJobsSecretStorageKeyVaultUri for production and stage slots, using one Key Vault for both. Inspect how master and function keys are currently named and stored, then define and verify a naming scheme that distinguishes app or slot secrets without breaking existing storage or retrieval.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.