Title: Client-side OIDC auth pays a discovery fetch and a token fetch per outbound request · Issue #6684 · feast-dev/feast · GitHub
Open Graph Title: Client-side OIDC auth pays a discovery fetch and a token fetch per outbound request · Issue #6684 · feast-dev/feast
X Title: Client-side OIDC auth pays a discovery fetch and a token fetch per outbound request · Issue #6684 · feast-dev/feast
Description: The observation This is the client-side sibling of #6682. On the client_secret (client credentials / ROPC) branch, every outbound RPC builds a fresh auth manager and discards the token it fetched: get_auth_token constructs a new Authenti...
Open Graph Description: The observation This is the client-side sibling of #6682. On the client_secret (client credentials / ROPC) branch, every outbound RPC builds a fresh auth manager and discards the token it fetched: ...
X Description: The observation This is the client-side sibling of #6682. On the client_secret (client credentials / ROPC) branch, every outbound RPC builds a fresh auth manager and discards the token it fetched: ...
Opengraph URL: https://github.com/feast-dev/feast/issues/6684
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client-side OIDC auth pays a discovery fetch and a token fetch per outbound request","articleBody":"## The observation\n\nThis is the client-side sibling of #6682. On the `client_secret` (client credentials / ROPC) branch, every outbound RPC builds a fresh auth manager and discards the token it fetched:\n\n- `get_auth_token` constructs a new `AuthenticationClientManagerFactory`, manager, and `OIDCDiscoveryService` per call (`sdk/python/feast/permissions/client/client_auth_token.py`).\n- All three interceptors invoke it per request: the gRPC interceptor on every intercepted call, the Arrow Flight middleware in `sending_headers`, and the HTTP wrapper even on its cached-session path.\n\nSo each outbound request pays a discovery GET plus a token POST against the IdP, for a token that is typically valid for an hour. Measured with counting mocks on current master: 5 outbound calls perform 5 discovery GETs and 5 token POSTs.\n\nBeyond the latency, a batch loop (e.g. many `get_online_features` calls against a remote server, or materialization against a remote registry) multiplies IdP load by request count, which can trip IdP rate limits.\n\n## Fix\n\nCache issued tokens keyed by the token-request identity (discovery URL, client id/secret, username, password) and reuse each until shortly before its expiry, read from the token's own `exp` claim with the token response's `expires_in` as a fallback. A token whose expiry cannot be determined is not cached, preserving today's per-call behavior for opaque tokens. The static-token, env-var, and mounted service-account sources are unaffected (they were already cheap).\n\nAfter the change the same 5-call measurement performs 1 discovery GET and 1 token POST.\n\nPR to follow shortly.\n","author":{"url":"https://github.com/larrysingleton007","@type":"Person","name":"larrysingleton007"},"datePublished":"2026-07-31T16:03:51Z","url":"https://github.com/feast-dev/feast/issues/6684"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bf132b2f-0366-c045-6fab-73b0cf957f11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D254:729DB:EFD658:13C4B90:6AFE99A2 |
| html-safe-nonce | 6a128b5994419a5a680653a6654d83a170e1da36c3d776a40fdda5425b91c718 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjU0OjcyOURCOkVGRDY1ODoxM0M0QjkwOjZBRkU5OUEyIiwidmlzaXRvcl9pZCI6Ijc2NTI5MzQyMzM0NjMxMDE4NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | de0d337fd4b2f58e0e754d357be83a88db805f836b69a5f595a173131a9eb312 |
| hovercard-subject-tag | issue:5031295636 |
| 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/feast-dev/feast/6684/issue_layout |
| twitter:image | https://opengraph.githubassets.com/355108a76abc5cec3fe538be486e5802b044a0208908116450feb6ba16e583de/feast-dev/feast/issues/6684 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/355108a76abc5cec3fe538be486e5802b044a0208908116450feb6ba16e583de/feast-dev/feast/issues/6684 |
| og:image:alt | The observation This is the client-side sibling of #6682. On the client_secret (client credentials / ROPC) branch, every outbound RPC builds a fresh auth manager and discards the token it fetched: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | larrysingleton007 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width