Title: Secret loading is sequential and missing pre-emptive authentication · Issue #191 · Azure/AppConfiguration-JavaScriptProvider · GitHub
Open Graph Title: Secret loading is sequential and missing pre-emptive authentication · Issue #191 · Azure/AppConfiguration-JavaScriptProvider
X Title: Secret loading is sequential and missing pre-emptive authentication · Issue #191 · Azure/AppConfiguration-JavaScriptProvider
Description: Summary While using the library to load App Configuration, I’ve observed slow performance due to two key issues: Secrets are fetched from Key Vault sequentially No pre-emptive authentication is performed Investigation This behaviour was ...
Open Graph Description: Summary While using the library to load App Configuration, I’ve observed slow performance due to two key issues: Secrets are fetched from Key Vault sequentially No pre-emptive authentication is per...
X Description: Summary While using the library to load App Configuration, I’ve observed slow performance due to two key issues: Secrets are fetched from Key Vault sequentially No pre-emptive authentication is per...
Opengraph URL: https://github.com/Azure/AppConfiguration-JavaScriptProvider/issues/191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Secret loading is sequential and missing pre-emptive authentication","articleBody":"### Summary\n\nWhile using the library to load App Configuration, I’ve observed slow performance due to two key issues:\n\n- Secrets are fetched from Key Vault **sequentially**\n- No **pre-emptive authentication** is performed\n\n### Investigation\n\nThis behaviour was identified using Application Insights, with traces collected via OpenTelemetry on a Node.js process.\n\nBelow is an example trace showing a single configuration lookup referencing 14 secrets (which are stored in 4 x separate vaults):\n\n\nThe `loadConfig` trace wraps the point we call the `load` function: https://github.com/Azure/AppConfiguration-JavaScriptProvider/blob/5c1f4a34475fe94326228f8bdffaa8088779a2d6/src/load.ts#L28\n\nEach secret fetch initially results in a 401 (unauthenticated), followed by a successful retry after authentication. This happens for every unique Key Vault endpoint used.\n\nDespite the environment running within Azure, the full configuration load takes approximately **2 seconds**, introducing noticeable latency.\n\n### Expected behaviour\n\nPerformance could be improved significantly if:\n\n- Secrets were fetched **in parallel**\n- Authentication was performed **proactively**, avoiding repeated 401/retry cycles","author":{"url":"https://github.com/ronfor","@type":"Person","name":"ronfor"},"datePublished":"2025-04-30T13:07:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/191/AppConfiguration-JavaScriptProvider/issues/191"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:650a049d-efc9-8a8d-55b9-9a13653da825 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B80A:176BA4:981902:C74333:6991F1E5 |
| html-safe-nonce | dc6a7f40c557c8b22e9d3fe752de366baf434dc8a005c336bc2b19817a58a726 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODBBOjE3NkJBNDo5ODE5MDI6Qzc0MzMzOjY5OTFGMUU1IiwidmlzaXRvcl9pZCI6IjM4MTI4MDk3ODk0NzEzMjI1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 71db5f9ad75b3fb454261a962b4dae086ed8ae3f7cf6448dd26d51b20715c5cd |
| hovercard-subject-tag | issue:3031231269 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Azure/AppConfiguration-JavaScriptProvider/191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/729ee760ff76c32c85377bd909254e853d149b59c339dd7352402f5167ae9700/Azure/AppConfiguration-JavaScriptProvider/issues/191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/729ee760ff76c32c85377bd909254e853d149b59c339dd7352402f5167ae9700/Azure/AppConfiguration-JavaScriptProvider/issues/191 |
| og:image:alt | Summary While using the library to load App Configuration, I’ve observed slow performance due to two key issues: Secrets are fetched from Key Vault sequentially No pre-emptive authentication is per... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ronfor |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/Azure/AppConfiguration-JavaScriptProvider git https://github.com/Azure/AppConfiguration-JavaScriptProvider.git |
| octolytics-dimension-user_id | 6844498 |
| octolytics-dimension-user_login | Azure |
| octolytics-dimension-repository_id | 688057518 |
| octolytics-dimension-repository_nwo | Azure/AppConfiguration-JavaScriptProvider |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 688057518 |
| octolytics-dimension-repository_network_root_nwo | Azure/AppConfiguration-JavaScriptProvider |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width