Repository navigation
Enable model catalog discovery with gateway OAuth - #60414
copyberry[bot] merged 1 commit into
Conversation
## Why Custom providers with gateway OAuth and an explicit model catalog should be able to discover models without an API key or API key model discovery enabled. ## What changed - Enable catalog refreshes for custom gateway providers when `model_catalog_url` and `base_url` have the same origin. - Reuse gateway credentials without starting an interactive login during catalog refreshes. - Keep an unrelated saved API key from making gateway catalog discovery depend on the API key discovery setting. ## Testing Add an app-server test for discovering a gateway catalog after OAuth login with no API key. Update coverage for catalog invalidation after gateway credentials require login, including across manager restarts, with API key discovery disabled. GitOrigin-RevId: b133c428cb45a9037e4b2ef13ff2f9473ed96636
0d4bd01 to
6222faa
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0d4bd0146e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| self.endpoint_client.supports_gateway_catalog() | ||
| || self.endpoint_client.uses_codex_backend().await |
There was a problem hiding this comment.
Scope cached catalogs to the gateway account
When a user signs into a different gateway OAuth account without changing the provider configuration, this newly enabled refresh path can reuse the first account's persistent catalog. models_identity::identity incorporates the gateway configuration but not the resolved gateway credential or account, while app-server model listing uses OnlineIfUncached, which accepts a matching cache before resolving OAuth. Consequently, the second account can receive the previous account's tenant-specific models until the cache expires or an online refresh is forced; invalidate the catalog on gateway login changes or include a stable gateway principal in its identity.
Useful? React with 👍 / 👎.
| if info.is_openai() || info.gateway_oauth.is_none() { | ||
| return false; |
There was a problem hiding this comment.
Do not classify custom providers by display name
For a valid custom gateway configured with name = "OpenAI", no primary API key, and an explicit same-origin catalog, this guard disables gateway catalog discovery because is_openai() compares the user-controlled display name. Such configurations are already used elsewhere in the repository, and the built-in provider cannot be reliably distinguished by this field, so model/list will never fetch the catalog solely with its gateway OAuth token. Determine built-in identity from the provider ID or remove this display-name check.
Useful? React with 👍 / 👎.
- The opt-in terminal workspace supports multiple side-chat tabs. Switch between them with the keyboard or mouse, and reopen saved local side chats after restarting Codex. (openai#59784, openai#60152, openai#60181) - Search older tasks from the agent command center by name, prompt preview, or working directory. (openai#60286) - Turn on **Collapse turn details** in the full-screen transcript to fold completed activity beneath each prompt while keeping answers visible and tool output searchable. (openai#60554, openai#60555, openai#60556, openai#60557) - Add or edit custom model providers from the terminal. With custom gateway onboarding enabled, you can create a provider during sign-in and use a device code for supported gateways over SSH or without a local browser. (openai#59779, openai#60009, openai#60186, openai#60486, openai#60662) - Press `Ctrl+S` in the terminal report editor to save a diagnostic ZIP locally, even when uploads are disabled. (openai#60542) - With the opt-in Cloud connection on macOS and Linux, send images, choose a model and reasoning effort, and archive or restore Cloud conversations from the terminal. (openai#59828, openai#60061, openai#60635, openai#60651) ## Bug Fixes - `codex exec` keeps project configuration and MCP servers disabled in untrusted directories, even with `--sandbox workspace-write`. Use `--trust` with `codex exec` or `codex review` to explicitly save project trust. (openai#60041) - **Yes, clear context and implement** now hands the full approved plan to the fresh session and keeps the current session open if the handoff fails. (openai#60763) - Fixed Windows sandbox handling for quoted `cmd.exe` paths and for PowerShell sessions whose working directory has an unreadable parent. (openai#60624, openai#60647) - Pasted images on macOS retain their intended orientation and use native PNG or JPEG clipboard data when available. (openai#60455) - The terminal no longer stays busy waiting for MCP servers that a shared app server did not report. (openai#60280, openai#60622) - Interrupted turns now close cleanly, and delayed aborts or file approval cancellations no longer interrupt a later turn. (openai#59910, openai#60700) ## Documentation - Updated the `openai-docs` skill to focus on Codex and ChatGPT Work questions and first-time API setup, with dedicated guidance for configuring Codex across a team. (openai#59944, openai#59949) - Documented how app-server clients can list models or authorize a gateway for a configured provider without changing the default provider. (openai#59776, openai#59819) ## Chores - Updated bundled SQLite to 3.54 to pick up write-ahead log fixes. (openai#60432) - Plugin marketplace upgrades can reuse Git objects already on disk, reducing repeat downloads. (openai#60528) ## Changelog Full Changelog: openai/codex@rust-v0.168.0...rust-v0.169.0 - openai#59739 Add a sidebar chooser and floating workspace shortcut panels @fcoury-oai - openai#59743 Forward explicit cyber access programs with header authentication @jamy-OAI - openai#59745 Repair legacy Windows sandbox bin permissions for SYSTEM @zm-oai - openai#59746 Add typed Cloud user-message submission receipts @bc-openai - openai#59749 Use runtime authentication for OpenAI MCP and app requests @cooper-oai - openai#59750 Stop Noise relay recovery on rejected executor credentials @richardopenai - openai#59752 Configure the Opus Bazel patch and isolate auth tests @bkotsopoulos - openai#59754 Enforce host-required cyber access programs per thread @jamy-OAI - openai#59759 Update WebSocket dependency forks @charliemarsh-oai - openai#59767 Add sidebar tabs and nonblocking side-chat creation @fcoury-oai - openai#59768 Stop prefetching plugin discovery at app-server startup @zamoshchin-openai - openai#59769 Reuse decoded WebSocket event kinds in telemetry @charliemarsh-oai - openai#59770 Add shared service-tier support for host-owned agents @rhan-oai - openai#59772 Remove the legacy sandbox policy constructor @ioanbudea-OAI - openai#59774 Remove the legacy Seatbelt command wrapper @ioanbudea-OAI - openai#59776 Allow selecting a configured provider in `model/list` @abhinav-oai - openai#59778 Expose acceptance metadata and code-cell links in rollout traces @tz-openai - openai#59779 Add provider configuration editing to the TUI @alexsong-oai - openai#59780 Enable safe identical code folding for x86-64 musl releases @dkovalenko-oai - openai#59783 Tie gRPC code-mode connection lifetime to live sessions @frantic-openai - openai#59784 Support multiple side chats in the TUI sidebar @fcoury-oai - openai#59785 Decouple message lifecycle state from model-visible item IDs @euroelessar - openai#59787 Support credential export commands for gateway authentication @alexsong-oai - openai#59789 Render delegated thread messages as Markdown in the TUI @bc-openai - openai#59792 Centralize managed proxy preparation and sandbox routing @viyatb-oai - openai#59793 Support update-boundary paging across forked thread histories @owenlin0 - openai#59794 Check extension budgets before model generation requests @rhan-oai - openai#59795 Support optional thread IDs in hosted file uploads @lt-oai - openai#59805 Pack relative relocations in x86-64 musl release builds @dkovalenko-oai - openai#59816 Retry gateway credential exports after unauthorized responses @alexsong-oai - openai#59817 Handle TUI message submission receipts and preserve uncertain drafts @bc-openai - openai#59819 Allow provider selection for gateway OAuth reads and logins @abhinav-oai - openai#59822 Add device-code authorization for gateway OAuth @smurching-oai - openai#59823 Bind runtime auth to the provider's selected credential source @cooper-oai - openai#59824 Enable resizing the sidebar chooser @fcoury-oai - openai#59826 Preserve client metadata through queued submissions @eddie-openai - openai#59828 Add a gated Cloud backend to the TUI @bc-openai - openai#59832 Add opt-in incremental tools for regular OpenAI Responses @akira-oai - openai#59842 Carry targeted moderation decisions on final-answer messages @psachdeva-oai - openai#59887 Remove incomplete prereleases after asset upload failures @jif-oai - openai#59891 Bound REPL provenance costs in elastic context preparation @jif-oai - openai#59893 Recompute the approval reviewer when switching models @jif-oai - openai#59902 Keep verified question/answer records whole under elastic budgets @jif-oai - openai#59903 Delete incomplete prereleases by release ID @jif-oai - openai#59905 Validate implicit API keys for Guardian Decisions @jif-oai - openai#59908 Avoid full image decoding for original-detail context estimates @jif-oai - openai#59910 Scope file change approval cancellation to the requesting turn @jif-oai - openai#59913 Resolve Guardian policy from the reviewed thread's catalog @jif-oai - openai#59914 Bind Guardian Decisions requests to their credential source @jif-oai - openai#59928 Improve sidebar chat selection and tab hover highlighting @fcoury-oai - openai#59933 Use permission profiles for protected-model startup downgrades @ioanbudea-OAI - openai#59944 Narrow openai-docs to product Q&A and first-time API setup @provencher-oai - openai#59949 Route broad Codex setup questions through self-knowledge guidance @vb-openai - openai#59954 Resolve skill display names in read and installations tools @jif-oai - openai#59955 Bump `ignore` to `0.4.30` @iceweasel-oai - openai#59958 Expose model metadata from each thread's catalog and settings @seanh-oai - openai#59960 Skip the network denial grace period when remote decisions drain @jif-oai - openai#59963 Normalize turn context permissions to a required profile @ioanbudea-OAI - openai#59969 Reduce contention in thread writer lock coordination @dkovalenko-oai - openai#59972 Fix Opus header installation with relative symlink inputs @bc-openai - openai#59973 Enable gRPC and host output truncation by default for Code Mode @seanh-oai - openai#59974 Test command completion before network denial grace expires @jif-oai - openai#59980 Test rejection of PNGs with readable dimensions but corrupt pixels @fjord-oai - openai#59983 Render typed prompts as Markdown in the TUI @bc-openai - openai#59987 Resolve startup models using thread creation options @seanh-oai - openai#59988 Add inherited styling to TUI display trees @joesavona - openai#59991 Preserve app invocation context across MCP tool refreshes @fahad-OAI - openai#59993 Add fixed read views for local message boards @felixxia-oai - openai#59994 Add read-only evidence retrieval tools for Guardian reviewers @felixxia-oai - openai#59995 Add subscription tools for Guardian reviewers @felixxia-oai - openai#59998 Add atomic bulk channel subscription updates @felixxia-oai - openai#59999 Add model-driven Guardian channel selection @felixxia-oai - openai#60000 Plan Guardian evidence delivery in source order @felixxia-oai - openai#60001 Add bounded original-evidence delivery for Guardian reviewers @felixxia-oai - openai#60002 Decouple Guardian retrieval from local message-board handles @felixxia-oai - openai#60003 Apply runtime authentication to realtime connections @cooper-oai - openai#60004 Expose ChatGPT user IDs in `account/read` responses @dand-oai - openai#60006 Reduce SQLite write overhead for thread activity and history @jonluca - openai#60007 Start cloud threads with the local GitHub project @bc-openai - openai#60008 Refactor TUI clipboard and composer input handling @bc-openai - openai#60009 Add custom gateway selection to TUI sign-in @alexsong-oai - openai#60010 Add a shared Windows Bazel setup action @dkovalenko-oai - openai#60011 Adapt multi-agent mode guidance for hosted tools @rhan-oai - openai#60014 Honor managed runtime authentication modes and expand coverage @cooper-oai - openai#60017 Disable bundled skills in the prompt-prefix comparison test @felixxia-oai - openai#60018 Propagate turn triggers to usage analytics events @chrisdong-oai - openai#60019 Add theme-aware semantic colors to extension UI trees @joesavona - openai#60020 Strip terminal commands from UI tree strings @joesavona - openai#60021 Normalize inline UI tree text across styled leaves @joesavona - openai#60022 Separate UI tree preparation from line rendering @joesavona - openai#60026 Add multiline layout and row wrapping to UI trees @joesavona - openai#60027 Keep configured status lines on the native renderer @joesavona - openai#60028 Reuse prepared UI trees for footer rendering @joesavona - openai#60029 Render UI trees directly into terminal buffers @joesavona - openai#60031 Unify TUI status line layout for extension content @joesavona - openai#60032 Allow extension status content to use multiple footer rows @joesavona - openai#60034 Omit sensitive process inputs from spawn trace logs @etraut-openai - openai#60035 Fix authentication for git-attribution settings requests @cooper-oai - openai#60037 Preserve MCP sharing discovery when deferring cached stdio startup @charliemarsh-oai - openai#60038 Surface MCP server startup errors when preparing cached tool calls @charliemarsh-oai - openai#60039 Add opt-in lazy startup for cached stdio MCP servers @charliemarsh-oai - openai#60040 Restrict legacy incremental tools to Amazon Bedrock providers @akira-oai - openai#60041 Require explicit project trust in non-interactive runs @etraut-openai - openai#60042 Centralize Windows sandbox filesystem override resolution @viyatb-oai - openai#60046 Derive MCP network policy and preserve saved denials @viyatb-oai - openai#60048 Allow plugin starter prompts up to 512 characters @karenwong-openai - openai#60049 Preserve model catalogs when starting child agents @evanz-oai - openai#60055 Reauthenticate runtime requests before reusing WebSocket access @cooper-oai - openai#60061 Support Cloud image messages and editable draft handoffs @bc-openai - openai#60064 Use thread runtime auth for Guardian Decisions and memory quota checks @cooper-oai - openai#60067 Ensure side-chat policy reaches the first model request @fcoury-oai - openai#60073 Use runtime authentication for remote-control requests @cooper-oai - openai#60075 Support asynchronous host service-tier reads and acceptance @rhan-oai - openai#60080 Allow asynchronous model request budget checks @rhan-oai - openai#60082 Fetch account security reminders through app-server @cooper-oai - openai#60096 Stop retrying terminal runtime authentication denials @cooper-oai - openai#60101 Use runtime authentication for Analytics requests @cooper-oai - openai#60118 Buffer payload JSON reads during rollout trace replay @tz-openai - openai#60122 Preserve code mode dispatch errors in rollout traces @tz-openai - openai#60152 Persist local workspace side chats and add tab close controls @fcoury-oai - openai#60157 Add support for incremental code mode tool definitions @akira-oai - openai#60163 Wire incremental exec tool updates into Code Mode sessions @akira-oai - openai#60172 Preserve display instructions in answer moderation @psachdeva-oai - openai#60173 Test exec catalog preservation across session and compaction changes @akira-oai - openai#60177 Add metrics for incremental exec catalog updates @akira-oai - openai#60180 Attach typed punctuation to completed skill mentions @bc-openai - openai#60181 Add keyboard and mouse navigation for sidebar tabs @fcoury-oai - openai#60186 Allow creating custom providers during sign-in @alexsong-oai - openai#60188 Allow model overrides for incremental Code Mode tool messages @akira-oai - openai#60190 Expose agent tree IDs and environment removal @richardopenai - openai#60206 Increase Bazel core unit test shards from 8 to 16 @seanh-oai - openai#60270 Warn when a CLI model is absent from the ChatGPT model list @etraut-openai - openai#60271 Keep the agents overview open when there is no chat to return to @etraut-openai - openai#60280 Fix MCP startup tracking when attaching to shared app servers @charliemarsh-oai - openai#60286 Search task history from the command center @etraut-openai - openai#60309 Defer executor readiness when prewarming a selected project @bc-openai - openai#60319 Improve side-chat discovery and navigation in the TUI @fcoury-oai - openai#60320 Include older itemless Cloud failures in full transcripts @bc-openai - openai#60327 Suppress stale cloud stream disconnects after reopening a thread @bc-openai - openai#60335 Avoid duplicate assistant messages when resuming Cloud threads @bc-openai - openai#60342 Treat goal objectives as untrusted context @dylan-hurd-oai - openai#60389 Include Codex Apps configuration in cloud prewarm requests @bc-openai - openai#60390 Allow deferring plain-text MCP output in thread item listings @btraut-openai - openai#60391 Simplify Guardian's post-denial approval guidance @olliem-oai - openai#60414 Enable model catalog discovery with gateway OAuth @smurching-oai - openai#60416 Keep fitting URLs intact in fullscreen Markdown transcripts @etraut-openai - openai#60418 Let terminal status become done while background terminals run @etraut-openai - openai#60423 Expose deferred MCP servers in resource listings @charliemarsh-oai - openai#60432 Upgrade bundled SQLite to 3.54 for WAL fixes @ioanbudea-OAI - openai#60433 Bind API workload identity source reuse to session claims @cooper-oai - openai#60434 Reset app-server turn summaries when a turn starts @cooper-oai - openai#60435 Dismiss the model switch prompt when account usage recovers @etraut-openai - openai#60436 Revalidate request auth ownership after budget checks @won-openai - openai#60443 Support cancellation and deadlines for realtime attachments @parabolala - openai#60454 Update OpenSSL Rust dependencies @dkovalenko-oai - openai#60455 Prefer native clipboard images on macOS and honor image orientation @dkovalenko-oai - openai#60461 Honor permission grant scopes in executor capability discovery @dkovalenko-oai - openai#60462 Route TUI question answers through Cloud message admission @bc-openai - openai#60466 Keep thread storage available when diagnostic logs fail @dkovalenko-oai - openai#60472 Serialize default thread permissions as a permission profile @ioanbudea-OAI - openai#60473 Respect error retry policy during local compaction @charliemarsh-oai - openai#60475 Stop retrying explicit invalid-workspace errors @charliemarsh-oai - openai#60476 Treat access program denials as terminal errors @charliemarsh-oai - openai#60479 Treat content policy violations as terminal errors @charliemarsh-oai - openai#60480 Treat workspace access denials as terminal errors @charliemarsh-oai - openai#60481 Treat invalid access program stream errors as terminal @charliemarsh-oai - openai#60482 Handle context length errors consistently across response transports @charliemarsh-oai - openai#60486 Add device authorization to app-server gateway OAuth @smurching-oai - openai#60487 Enable untrusted context tool outputs by default @akira-oai - openai#60488 Remove the Xcode 26.4 MCP elicitation compatibility workaround @jameswt-oai - openai#60489 Honor feature overrides when starting the app-server daemon @iceweasel-oai - openai#60492 Add local-only Claude Code skill migration @aramaraju-oai - openai#60496 Preserve typed gRPC code-mode session admission errors @seanh-oai - openai#60498 Unify Guardian context preparation across reviewers @ioanbudea-OAI - openai#60500 Derive sandbox telemetry labels directly from permission profiles @ioanbudea-OAI - openai#60505 Trace MCP refresh causes and plugin metadata changes @charliemarsh-oai - openai#60506 Preserve MCP trace context when tracing is disabled @joesavona - openai#60507 Use hermetic LLVM for Windows MSVC Bazel builds @zbarsky-openai - openai#60511 Treat inference hook denials as terminal errors @ccui-oai - openai#60513 Record an MCP refresh reason for session permission grants @charliemarsh-oai - openai#60517 Route sandbox CLI launches through the shared sandbox manager @viyatb-oai - openai#60519 Handle unfinished tool calls in restored history @etraut-openai - openai#60522 Fragment large Responses WebSocket messages into bounded frames @charliemarsh-oai - openai#60523 Add policy-checked TCP upstream tunneling for SOCKS @viyatb-oai - openai#60524 Encapsulate thread metadata construction @ioanbudea-OAI - openai#60525 Preserve first-party catalog display order in app-server model lists @dpatel-oai - openai#60526 Disable Daybreak when the selected model lacks access @jamy-OAI - openai#60528 Reuse installed Git objects when upgrading marketplaces @charliemarsh-oai - openai#60542 Add local diagnostic ZIP saves to the TUI @smurching-oai - openai#60554 Add optional tool call summaries to the full-screen transcript @etraut-openai - openai#60555 Extend output-free transcript summaries to more tools @etraut-openai - openai#60556 Group consecutive tool calls in the full-screen conversation @etraut-openai - openai#60557 Collapse completed turn activity beneath transcript prompts @etraut-openai - openai#60558 Discard opening prompts when side chat creation fails @etraut-openai - openai#60559 Preserve inherited previews for paginated thread forks @etraut-openai - openai#60560 Avoid periodic wakeups in idle Windows file watchers @chess-oai - openai#60568 Add an OpenSSH ProxyCommand mode to `codex tcp-tunnel` @apanasenko-oai - openai#60574 Allow searching persisted attached threads @btraut-openai - openai#60578 Add published OAuth metadata discovery to the RMCP client @vishnu-oai - openai#60599 Keep the TUI responsive while opening saved side chats @fcoury-oai - openai#60613 Clarify safety recourse messaging and add a reporting option @xiaohk - openai#60617 Support incremental tool declarations on GCP @akira-oai - openai#60620 Allow sampling in-progress turns with `thread/sample` @keyz - openai#60622 Use app-server MCP configuration and startup events in the TUI @etraut-openai - openai#60624 Preserve script quotes in Windows sandbox cmd invocations @malsamiri-oai - openai#60635 Support archiving and restoring cloud threads @bc-openai - openai#60637 Show pending key chords in a shared floating shortcut guide @fcoury-oai - openai#60638 Honor read-only MCP tool hints in automatic approval @cazhang-oai - openai#60639 Refresh Apps tools outside the MCP runtime gate @dkovalenko-oai - openai#60644 Keep interrupts responsive during host service-tier updates @rhan-oai - openai#60645 Update the safety consent test for the current dialog @ambrosino-oai - openai#60646 Use trusted Guardian templates for managed policies @won-openai - openai#60647 Restore PowerShell's working directory in the MXC sandbox @zm-oai - openai#60651 Enable model and reasoning effort selection for Cloud conversations @bc-openai - openai#60655 Support environment updates in app-server settings APIs @sayan-oai - openai#60662 Support gateway device-code sign-in in headless TUI sessions @smurching-oai - openai#60663 Defer exec-server sandbox preparation to the execution host @viyatb-oai - openai#60665 Add a content helper for forwarding MCP blocks in Code Mode @cconger - openai#60669 Skip submodule worktree scans when checking repository changes @dhavalkapil-oai - openai#60670 Initialize Guardian evidence cursors from thread history state @felixxia-oai - openai#60671 Add sign-only mode and tighten macOS signing verification @tarunoai - openai#60673 Preserve agent message deliveries in rollout traces @cassirer-openai - openai#60675 Avoid redundant reads and screen clears when switching side chats @fcoury-oai - openai#60680 Keep TUI status content separate from composer hints @joesavona - openai#60681 Prioritize draft space when allocating composer footer rows @joesavona - openai#60682 Wrap built-in TUI status lines within the footer row budget @joesavona - openai#60683 Fit composer footer hints to available terminal space @joesavona - openai#60695 Add a Signer Service backend for macOS notarization @tarunoai - openai#60697 Limit MCP product attribution to configured REPL-backed calls @trpcic-openai - openai#60700 Finalize aborted turns and ignore unrelated late aborts @etraut-openai - openai#60702 Centralize permission config selection and legacy translation @ioanbudea-OAI - openai#60708 Canonicalize Windows sandbox homes and migrate saved junction paths @zm-oai - openai#60721 Gate plugin recommendation cache warming on feature flags @adaley-openai - openai#60730 Apply session app overrides during MCP config refresh @jameswt-oai - openai#60732 Allow model-facing ID sequences to resume from allocated IDs @euroelessar - openai#60735 Preserve file-backed audio in tool outputs @hung-oai - openai#60746 Add a Git credential helper for existing Codex logins @ccy-oai - openai#60748 Label seed arguments in the model-facing ID recovery test @bc-openai - openai#60749 Capture saved Daybreak preferences for native helpers @jamy-OAI - openai#60753 Add snapshot coverage for history and notes tool contracts @euroelessar - openai#60757 Use typed context window IDs throughout thread persistence @euroelessar - openai#60759 Fix Unicode caseless matching in thread search @etraut-openai - openai#60763 Hand off approved plans through attachments in fresh sessions @dylan-hurd-oai
Enable model catalog discovery with gateway OAuth
Why
Custom providers with gateway OAuth and an explicit model catalog should be able to discover models without an API key or API key model discovery enabled.
What changed
model_catalog_urlandbase_urlhave the same origin.Testing
Add an app-server test for discovering a gateway catalog after OAuth login with no API key. Update coverage for catalog invalidation after gateway credentials require login, including across manager restarts, with API key discovery disabled.