{"id":15422553,"url":"https://github.com/heaths/keyvaultproxy","last_synced_at":"2026-04-10T08:30:21.496Z","repository":{"id":83526739,"uuid":"261349933","full_name":"heaths/KeyVaultProxy","owner":"heaths","description":"Sample showing how to use an HttpPipelinePolicy to proxy secrets, keys, and certificates from Azure Key Vault.","archived":false,"fork":false,"pushed_at":"2020-09-12T09:56:35.000Z","size":53,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T10:16:48.696Z","etag":null,"topics":["azure-core","azure-keyvault"],"latest_commit_sha":null,"homepage":"","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/heaths.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-05-05T03:07:58.000Z","updated_at":"2023-09-25T14:40:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d68c144-205b-443b-a530-8a955e28b705","html_url":"https://github.com/heaths/KeyVaultProxy","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.47058823529411764","last_synced_commit":"065f7b43d17acc7c23926b41ae39eac6a7987629"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2FKeyVaultProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2FKeyVaultProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2FKeyVaultProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2FKeyVaultProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heaths","download_url":"https://codeload.github.com/heaths/KeyVaultProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239979042,"owners_count":19728454,"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":["azure-core","azure-keyvault"],"created_at":"2024-10-01T17:38:55.022Z","updated_at":"2026-04-10T08:30:21.433Z","avatar_url":"https://github.com/heaths.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Key Vault Proxy\n\n![ci](https://github.com/heaths/KeyVaultProxy/workflows/ci/badge.svg)\n\nThis is a sample showing how to use an `HttpPipelinePolicy` to cache and proxy secrets, keys, and certificates from Azure Key Vault. The [Azure.Core](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/README.md) packages provides a number of useful HTTP pipeline policies like configurable retries, logging, and more; and, you can add your own policies.\n\n## Getting started\n\nTo use this sample, you will need to install the [Azure.Core](https://nuget.org/packages/Azure.Core) package, which is installed automatically when installing any of the Azure Key Vault packages:\n\n* [Azure.Security.KeyVault.Certificates](https://nuget.org/packages/Azure.Security.KeyVault.Certificates)\n* [Azure.Security.KeyVault.Keys](https://nuget.org/packages/Azure.Security.KeyVault.Keys)\n* [Azure.Security.KeyVault.Secrets](https://nuget.org/packages/Azure.Security.KeyVault.Secrets)\n\nOnce you build this project, you can reference this sample in your own project by either:\n\n* Adding a `\u003cProjectReference\u003e` to this sample project in your own project, or\n* Running `dotnet pack` on this sample project, publish it to a private NuGet source, and add a `\u003cPackageReference\u003e` to `AzureSamples.Security.KeyVault.Proxy`.\n\nAfter you reference this sample, in your own project source, add the following:\n\n```csharp\nusing AzureSamples.Security.KeyVault.Proxy;\n```\n\n## Examples\n\nAll HTTP clients for Azure.* packages allow you to customize the HTTP pipeline using their respective client options classes, such as the `SecretClientOptions` class below:\n\n```csharp\nSecretClientOptions options = new SecretClientOptions();\noptions.AddPolicy(new KeyVaultProxy(), HttpPipelinePosition.PerCall);\n\nSecretClient client = new SecretClient(\n    new Uri(\"https://myvault.vault.azure.net\"),\n    new DefaultAzureCredential(),\n    options);\n```\n\nWhenever you make a call to a resource with given a unique URI, it will be cached, by default, for 1 hour. You can change the default time-to-live (TTL) like so:\n\n```csharp\nSecretClientOptions options = new SecretClientOptions();\noptions.AddPolicy(new KeyVaultProxy(TimeSpan.FromSeconds(30)), HttpPipelinePosition.PerCall);\n```\n\nWhen the resource has expired, the next request will go to the server and a successful `GET` response for certificates, keys, or secrets will be cached.\n\n## Feedback\n\nPlease leave feedback, ask questions, and file issues in our [Issues](https://github.com/heaths/KeyVaultProxy/issues) page.\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fkeyvaultproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheaths%2Fkeyvaultproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fkeyvaultproxy/lists"}