{"id":20605123,"url":"https://github.com/arnab-developer/aspnetazurekeyvaultdemo","last_synced_at":"2026-04-20T11:04:28.308Z","repository":{"id":44754589,"uuid":"400713062","full_name":"Arnab-Developer/AspnetAzureKeyVaultDemo","owner":"Arnab-Developer","description":"ASP.NET Azure key vault demo","archived":false,"fork":false,"pushed_at":"2024-06-12T03:10:27.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T02:24:09.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arnab-Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-28T05:47:25.000Z","updated_at":"2024-08-16T13:35:10.000Z","dependencies_parsed_at":"2024-11-16T09:37:07.856Z","dependency_job_id":null,"html_url":"https://github.com/Arnab-Developer/AspnetAzureKeyVaultDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAspnetAzureKeyVaultDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAspnetAzureKeyVaultDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAspnetAzureKeyVaultDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAspnetAzureKeyVaultDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnab-Developer","download_url":"https://codeload.github.com/Arnab-Developer/AspnetAzureKeyVaultDemo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250932,"owners_count":20096895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T09:26:38.378Z","updated_at":"2026-04-20T11:04:28.277Z","avatar_url":"https://github.com/Arnab-Developer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Azure key vault demo\n\nA demo to show how an ASP.NET app can access Azure key vault secret.\n\nApplication secrets should not be stored in `appsettings.json`. When the app is\nrunning in local machine then it should read the secrets from \n[user secret](https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-5.0\u0026tabs=windows#how-the-secret-manager-tool-works).\nWhen the app is deployed and running from Azure then it should read secrets from \n[key vault](https://azure.microsoft.com/en-gb/services/key-vault/).\n\nWith this sample app you can able to see how 'appsettings' value has been overwritten \nby 'user secret' and 'user secret' value has been overwritten by 'azure key vault'.\n\n## Run this app from local with 'user secret'\n\n- Clone the repo.\n- Open the solution with Visual Studio.\n- Right click on the project and click on 'Manage User Secrets'.\n- Use below json in the user secret\n```json\n{\n  \"Address\": \"user secret value\"\n}\n```\n- Press F5 in Visual Studio to run the app.\n\n## Run this app from azure with 'azure key vault'\n\n- Create app service in azure and deploy this app.\n- Create key vault and add 'Address' secret with some value.\n- You need to 'add access policy' in the key vault with the app service identity \nprincipal so that the application can access key vault successfully.\n- Run the app\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Faspnetazurekeyvaultdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnab-developer%2Faspnetazurekeyvaultdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Faspnetazurekeyvaultdemo/lists"}