René's URL Explorer Experiment


Title: OIDC auth builds a new JWKS client per request, adding a network fetch to every authenticated call · Issue #6682 · feast-dev/feast · GitHub

Open Graph Title: OIDC auth builds a new JWKS client per request, adding a network fetch to every authenticated call · Issue #6682 · feast-dev/feast

X Title: OIDC auth builds a new JWKS client per request, adding a network fetch to every authenticated call · Issue #6682 · feast-dev/feast

Description: The observation OidcTokenParser._decode_token constructs a fresh PyJWKClient on every call (sdk/python/feast/permissions/auth/oidc_token_parser.py): def _decode_token(self, access_token: str) -> dict: ... jwks_client = PyJWKClient( self....

Open Graph Description: The observation OidcTokenParser._decode_token constructs a fresh PyJWKClient on every call (sdk/python/feast/permissions/auth/oidc_token_parser.py): def _decode_token(self, access_token: str) -> di...

X Description: The observation OidcTokenParser._decode_token constructs a fresh PyJWKClient on every call (sdk/python/feast/permissions/auth/oidc_token_parser.py): def _decode_token(self, access_token: str) ->...

Opengraph URL: https://github.com/feast-dev/feast/issues/6682

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OIDC auth builds a new JWKS client per request, adding a network fetch to every authenticated call","articleBody":"## The observation\n\n`OidcTokenParser._decode_token` constructs a fresh `PyJWKClient` on every call (`sdk/python/feast/permissions/auth/oidc_token_parser.py`):\n\n```python\ndef _decode_token(self, access_token: str) -> dict:\n    ...\n    jwks_client = PyJWKClient(\n        self.oidc_discovery_service.get_jwks_url(), headers=..., ssl_context=ssl_ctx,\n    )\n    signing_key = jwks_client.get_signing_key_from_jwt(access_token)\n```\n\n`PyJWKClient` caches the fetched JWK set, but the cache lives on the instance, so a per-request instance starts cold every time and `get_signing_key_from_jwt` performs a full HTTPS round trip to the IdP's JWKS endpoint, TLS handshake included, on every authenticated request.\n\nReproduced on master with a mock JWKS endpoint and a hit counter: 25 authenticated decodes produce 25 JWKS fetches.\n\n## Measured impact\n\nOn a production-shaped deployment (containerized feature server, Entra ID OIDC, Redis online store):\n\n- The JWKS fetch alone measures 124-196 ms against `login.microsoftonline.com`.\n- Server-side latency for single-entity online reads sat at p50 247 ms / p95 314 ms while the Redis engine idled at 0.5% CPU; the unauthenticated `/health` floor on the same connection was ~50 ms. Nearly the entire request budget goes to re-fetching a document that hasn't changed.\n- Because the fetch is blocking I/O in the request path, concurrent requests serialize behind it: 3 parallel readers measured p50 900 ms (an exact 3x of single-request latency), and 10 parallel readers produced 502s from a perfectly healthy process. A deployment could easily misdiagnose this as \"the feature server cannot handle load\" when it is one cold cache constructor.\n\nBoth the latency inflation and the concurrency collapse are the same defect.\n\n## Fix\n\nBuild the `PyJWKClient` lazily once per parser. The parser is constructed once per process (`init_auth_manager`), so PyJWT's built-in JWK-set cache (default `cache_jwk_set=True`, `lifespan=300`) then does its job. Key rotation stays safe: `PyJWKClient.get_signing_key` refreshes the set and retries once whenever it sees an unknown `kid` (verified in PyJWT 2.13, the currently resolved version - feast pins no upper bound).\n\nAfter the change the same 25-decode benchmark performs exactly 1 JWKS fetch. To be precise about the concurrency half: this removes the accidental serialization behind per-request network I/O; it does not add parallelism to the server.\n\nPR to follow shortly.\n","author":{"url":"https://github.com/larrysingleton007","@type":"Person","name":"larrysingleton007"},"datePublished":"2026-07-31T14:17:01Z","url":"https://github.com/feast-dev/feast/issues/6682"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:54ec1369-1a8b-819b-d8c5-601fa0e59ede
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6E2:16B4F1:2AC7AC:3AFBE5:6AFE9818
html-safe-nonceab75d3c0b75c69e9a140230b7019cb068f9a4795da14a075f8217bc416419718
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkUyOjE2QjRGMToyQUM3QUM6M0FGQkU1OjZBRkU5ODE4IiwidmlzaXRvcl9pZCI6IjE2ODE0MTI4NTEzMDgwNzUwMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccd85e19beb7c06c2fcbbb1e57f32aaf0091f15ca6b098e675a44b5db77ee2ffc
hovercard-subject-tagissue:5030408018
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6682/issue_layout
twitter:imagehttps://opengraph.githubassets.com/30ebe39f0dc4ed493bfb47a5c63245774d60e2eb9d4070ca60020b7c713263d3/feast-dev/feast/issues/6682
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30ebe39f0dc4ed493bfb47a5c63245774d60e2eb9d4070ca60020b7c713263d3/feast-dev/feast/issues/6682
og:image:altThe observation OidcTokenParser._decode_token constructs a fresh PyJWKClient on every call (sdk/python/feast/permissions/auth/oidc_token_parser.py): def _decode_token(self, access_token: str) -> di...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelarrysingleton007
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/6682#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6682
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F6682
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/6682
Reloadhttps://github.com/feast-dev/feast/issues/6682
Reloadhttps://github.com/feast-dev/feast/issues/6682
feast-devhttps://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Codehttps://github.com/feast-dev/feast
Issues223 (223)https://github.com/feast-dev/feast/issues
Pull requests143 (143)https://github.com/feast-dev/feast/pulls
Discussionshttps://github.com/feast-dev/feast/discussions
Actionshttps://github.com/feast-dev/feast/actions
Security and quality1 (1)https://github.com/feast-dev/feast/security
Insightshttps://github.com/feast-dev/feast/insights
https://github.com/feast-dev/feast
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6682
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6682
#6683https://github.com/feast-dev/feast/pull/6683
OIDC auth builds a new JWKS client per request, adding a network fetch to every authenticated callhttps://github.com/feast-dev/feast/issues/6682#top
#6683https://github.com/feast-dev/feast/pull/6683
https://github.com/larrysingleton007
larrysingleton007https://github.com/larrysingleton007
on Jul 31, 2026https://github.com/feast-dev/feast/issues/6682#issue-5030408018
franciscojavierarceohttps://github.com/franciscojavierarceo
completedhttps://github.com/feast-dev/feast/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#6683https://github.com/feast-dev/feast/pull/6683
on Jul 31, 2026https://github.com/feast-dev/feast/issues/6682#event-28793774829
Sign up for freehttps://github.com/signup?return_to=https://github.com/feast-dev/feast/issues/6682
Sign in to commenthttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/6682
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.