Skip to main content

Admin Settings page

The Admin Settings page collects the gateway wide settings that are not about routing or logging. Open it at /ui/admin-panel. It sits in the left nav under Settings, then Admin Settings. The nav shows it to the admin session role, which covers proxy admins and proxy admin viewers. Org admins see the Settings group but not this item, and internal users do not see the group. The page has no role guard of its own, and the page as a whole has no license gate. A few controls check for a license, as noted below.

The page opens with the heading Admin Access and the note "Go to 'Internal Users' page to add other admins.", because admins are added by giving a user an admin role on the Internal Users page, not here.

The tabs are SSO Settings, Security Settings, SCIM, UI Settings, Logging Settings, Hashicorp Vault, CyberArk Conjur, Plugins, Web Search Interception, JWT Key Mappings and Credential Encryption. SSO Settings opens first. JWT Key Mappings appears only for the admin session role, and Credential Encryption appears only for a proxy admin who is not view-only. Writes on the other tabs are not hidden from proxy admin viewers, but the gateway refuses them.

A real-world scenario​

After a security review, an admin must make sure the Admin UI and the API accept calls only from the office network and the VPN. They open Security Settings, add both address ranges under Allowed IPs starting with the one they are connected from, and check that a call from outside the ranges is refused.

Steps​

  1. Open Settings, then Admin Settings, or go to /ui/admin-panel, and select the Security Settings tab.

  2. Click Allowed IPs, then Add IP Address, type your own range first, for example 203.0.113.0/24, and confirm. Add the VPN range the same way. The API call is:

    curl -X POST http://localhost:4000/add/allowed_ip \
    -H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
    -d '{"ip": "203.0.113.0/24"}'
  3. From a machine outside both ranges, call any route and check that it is refused.

    curl -i http://gateway.example.com/health/readiness

Expected result​

The dialog lists both ranges, calls from inside them work as before, and a call from outside is refused.

SSO Settings tab​

This tab shows and edits the single sign-on configuration for the Admin UI. While it loads it shows a placeholder. The card is titled SSO Configuration with the description "Manage Single Sign-On authentication settings".

With nothing configured you see No SSO Configuration Found and Configure SSO, which opens the Add SSO dialog. SSO counts as configured when a Google, Microsoft or generic client ID, or a SAML metadata URL or XML, is stored.

Once configured, the card shows Edit SSO Settings and Delete SSO Settings and a details table. The Provider row shows the detected provider. A generic client whose authorization endpoint contains okta or auth0 is shown as Okta / Auth0 SSO, and any other generic client as Generic SSO.

ProviderRows shown
Google SSOClient ID, Client Secret, Proxy Base URL
Microsoft SSOClient ID, Client Secret, Tenant, Proxy Base URL
Okta / Auth0 SSO and Generic SSOClient ID, Client Secret, Authorization Endpoint, Token Endpoint, User Info Endpoint, Scopes, Proxy Base URL, and Team IDs JWT Field when team mappings are on
SAML SSOIdP Metadata URL, IdP Metadata XML (shows "Provided" when set), SP Entity ID, Allow IdP-initiated (unsolicited) responses (Enabled or Disabled), Proxy Base URL

Client IDs and secrets are hidden behind dots until you press the eye button. The gateway masks client secrets before it sends them, so even the revealed secret is a masked value. Endpoint rows have a copy button. Unset rows read "Not configured".

Below the configuration, the SSO readiness card checks the provider before anyone relies on it. Click Check readiness and the gateway reports one of three results: No SSO provider is active when no client id is loaded, is ready when every value the provider needs is loaded, or is missing required values with the list of setting names that must be set before sign-in can work. "Could not check SSO readiness" means the check itself failed, and the message under it says why. The check reads only and changes nothing. See managing SSO from the Admin UI.

When role mappings are stored, a second card titled Role Mappings shows the Group Claim, the Default Role and a table with the columns Role and Mapped Groups. A role with no groups shows "No groups mapped".

Add SSO and Edit SSO Settings dialogs​

Both dialogs use the same form. Edit SSO Settings opens with the stored values filled in.

ControlTypeWhat it does
SSO ProviderDropdownGoogle SSO, Microsoft SSO, Okta / Auth0 SSO, Generic SSO or SAML SSO. Required. The provider fields below change with it.
Provider fieldsText, password, text area, checkboxSee the next table.
Proxy Admin EmailTextThe email of the proxy admin. Required.
Proxy Base URLTextThe public URL of the gateway, placeholder https://example.com. Required. It must start with http:// or https:// and must not end with a slash. Spaces are removed as you type.
Use Role MappingsCheckboxOnly for Okta / Auth0 and Generic. Shows the role mapping fields.
Group ClaimTextThe token claim that holds the user's groups. Required when role mappings are on.
Default RoleDropdownThe role for users in none of the mapped groups. Internal Viewer, Internal User (the default), Admin Viewer or Proxy Admin.
Proxy Admin Teams, Admin Viewer Teams, Internal User Teams, Internal Viewer TeamsTextComma separated group names that map to each role.
Use Team MappingsCheckboxOnly for Okta / Auth0 and Generic. Shows Team IDs JWT Field.
Team IDs JWT FieldTextThe token field that holds the user's team IDs, with a link to the JWT auth docs. Required when team mappings are on.
ProviderFields
Google SSOGoogle Client ID and Google Client Secret, both required.
Microsoft SSOMicrosoft Client ID, Microsoft Client Secret and Microsoft Tenant, all required.
Okta / Auth0 SSO and Generic SSOGeneric Client ID, Generic Client Secret, Authorization Endpoint, Token Endpoint and Userinfo Endpoint, all required, and Scopes, optional with the placeholder openid email profile.
SAML SSOIdP Metadata URL or IdP Metadata XML (a text area), SP Entity ID, which defaults to the gateway's /sso/saml/metadata URL, and the checkbox Allow IdP-initiated (unsolicited) responses. None of them is marked required.

Fields whose name contains "client" are password fields with a show and hide button. Only the fields shown for the selected provider are sent. Add SSO (or Save in the edit dialog) saves, and shows "SSO settings added successfully" or "SSO settings updated successfully". Cancel closes and resets the form. Saving needs the gateway to store its config in the database (STORE_MODEL_IN_DB=True).

Delete SSO Settings​

The confirmation is titled Confirm Clear SSO Settings, warns "This action cannot be undone." and says "Are you sure you want to clear all SSO settings? Users will no longer be able to login using SSO after this change." It shows the detected provider. Delete clears the stored provider, client ID and secret, endpoints, SAML fields, proxy base URL, admin email, role mappings and team mappings, and shows "SSO settings cleared successfully". Before you clear SSO, make sure you can still sign in another way, for example at the fallback login page shown on the Security Settings tab.

Security Settings tab​

The Security Settings card has three buttons and a warning titled SSO Configuration Deprecated, which says that editing SSO here is deprecated and you should use the SSO Settings tab.

ButtonWhat it opens
Add SSO or Edit SSO SettingsThe older SSO dialog. The label reads Edit SSO Settings when a Google, Microsoft or generic client ID and secret are stored.
Allowed IPsManage Allowed IP Addresses. Needs a license.
UI Access ControlUI Access Control Settings. Needs a license.

Under the card, an info box titled Login without SSO links to the fallback login page, the gateway's base URL followed by /fallback/login, which accepts a username and password even when SSO is on.

Below it, the Sign-in protection and Network allowlists cards are described in security settings, and the Data access auditing card holds two switches, each with its help text next to it. Record every time someone opens a prompt or response (audit_log_content_reads, on by default) writes a viewed audit row whenever a request's prompt and response are opened, so you can prove who read customer conversations. Also record every list of logs and every usage report (audit_log_list_reads, off by default) adds a row for every page of the request list and every Usage report, for teams that must log every data access, at the cost of many more audit rows. Choose On or Off and click Save. Only proxy admins can change them. See read audit events.

Older SSO dialog​

It has the same provider, email, base URL and role mapping fields as the SSO Settings tab, without team mappings. Save stores the settings and then opens SSO Setup Instructions, which asks you to keep this tab open, open the proxy base URL in a new tab, confirm you can sign in there, and only then close this tab. Done closes it. When SSO is configured a Clear button opens a confirmation, Confirm Clear SSO Settings, where Yes, Clear removes the stored SSO settings and Cancel keeps them.

Manage Allowed IP Addresses​

Allowed IPs limits which addresses can reach the gateway at all, the Admin UI and every API route included. It is off by default, so every address is allowed. On a gateway without a license, the button shows the error "Allowed IPs needs a Spanway Enterprise license." and opens nothing. With a license that lacks the ip_allowlist feature the dialog opens, and adding an address shows the license error from the gateway. Only proxy admins should change the list, and adding the first address blocks every other address at once, so add the address you are using now first.

The dialog lists the allowed addresses under IP Address and Action. When the list is empty it shows a single row, All IP Addresses Allowed, which has no delete button. Once at least one address is listed, the gateway accepts requests only from listed client addresses, so add your own address first.

ControlWhat it does
DeleteOpens Confirm Delete, "Are you sure you want to delete the IP address" followed by the address. Yes removes it right away and Close keeps it. The last address in the list has no Delete. Its row reads "Add another address before removing the last one, or use Turn off IP allowlist to allow every address. An empty list blocks every request." The gateway refuses to remove the last address too, because an empty list would refuse every request, including the Admin UI.
Turn off IP allowlistShown while at least one address is listed, and enabled only for a proxy admin. Opens Turn off the IP allowlist?, which warns that every IP address will be allowed, including the Admin UI and every API route, and that the saved addresses are removed. Turn off and allow every IP calls POST /disable/allowed_ips and shows "IP allowlist turned off. Every IP address is allowed." Cancel keeps the list. The gateway refuses this when the list comes from the config file, and records the change in the audit log.
Add IP AddressOpens Add Allowed IP Address with one field, placeholder "Enter IP address", required with the message "Please enter an IP address". The gateway accepts an IPv4 or IPv6 address or a CIDR range, and refuses an address that is already listed.
CloseCloses the dialog.

The allowed IP list is the ip_allowlist license feature on the gateway.

UI Access Control Settings​

On a gateway without a license, UI Access Control shows "Only premium users can configure UI access control" and opens nothing. The dialog controls who may sign in to the Admin UI through SSO and links to the JWT auth docs.

ControlTypeWhat it does
UI Access ModeDropdownAll Authenticated Users applies no group restriction. Restricted SSO Group lets in only members of one group. Placeholder "Select access mode".
Restricted SSO GroupTextShown for Restricted SSO Group. The group allowed in, placeholder ui-access-group. Required, with the message "Please enter the restricted SSO group".
SSO Group JWT FieldTextThe token field that holds the user's groups, placeholder groups. Dot notation reaches nested fields.
Update UI Access ControlButtonSaves and shows "UI Access Control settings updated successfully". A failure shows "Failed to save UI access settings".

SCIM tab​

The SCIM Configuration card lets your identity provider create and manage users and groups in Spanway, with a link to the SCIM docs.

SCIM Tenant URL shows the URL to paste into your identity provider, the gateway's PROXY_BASE_URL (or the dashboard's own address when it is not set) followed by /scim/v2, with a Copy button.

Authentication Token creates the token your identity provider uses. Token Name is required ("Please enter a name for your token") with the placeholder "SCIM Access Token". Create SCIM Token creates a virtual key owned by you, with no team and no models, that may call only /scim/* routes. The key then appears under Your SCIM Token with the warning "Make sure to copy this token now. You will not be able to see it again." The field is masked, and Copy copies the full token. Create Another Token clears the display so you can create another one. The token is an ordinary virtual key, so you rotate or revoke it on the Virtual Keys page the way you do any key, and provisioning stops until the identity provider has a new token. Three help lines under the token explain this, and what the two config settings do: spanway_settings.scim_admin_group, unset by default, names one directory group whose members become proxy admins, and spanway_settings.scim_upsert_user, on by default, creates users a group names before the identity provider created them. Neither can be changed on this tab. See SCIM settings.

UI Settings tab​

The tab holds three cards, UI Settings, Team admin editable fields and User Banner. Only a proxy admin can save them. An internal user is stopped by the gateway's route check with 401 "Authentication Error, Only proxy admin can be used to generate, delete, update info for new keys/users/teams. ...", and a key that passes the route check through allowed_routes or a custom role gets 403 "Only proxy admins can update UI settings.".

The same switches through the API, with a proxy admin key:

curl http://localhost:4000/get/ui_settings
curl -X PATCH http://localhost:4000/update/ui_settings \
-H "Authorization: Bearer $SPANWAY_MASTER_KEY" -H "Content-Type: application/json" \
-d '{"disable_custom_api_keys": true}'

Expected result of the second call: {"message": "UI settings updated successfully", "status": "success", "settings": {...}}, where settings holds every stored switch. Only the switches you send change. The read route needs no key, because the Admin UI reads it before sign-in, and its source field says per switch whether the value comes from the database, the config file or the default.

UI Settings​

Every switch saves as soon as you flip it and shows "UI settings updated successfully". All switches are disabled while a save runs. The help under each switch comes from the gateway and says, in plain words, what on does, what off does and which is the default. Every switch can also be set in the config file under general_settings, see the settings reference, and a value set there wins over the one saved here.

SwitchWhat it does
Disable model add for internal usersInternal users, including team admins, cannot create models or auto routers in the UI or the API. Proxy admins are exempt, and editing or deleting existing models is unchanged.
Disable team admin delete team userOn: team admins cannot remove members from the teams they manage. The Admin UI hides the remove button, and /team/member_delete and POST /management/v1/teams/{team_id}/members/bulk_delete answer 403 for them. Useful when an identity provider (SCIM) owns team membership, so removals happen in one place. Off (the default): team admins may remove members. Proxy admins are never limited.
Open the AI Hub to anyone without signing inOff by default. When on, anyone who can reach the gateway can open the AI Hub and its public hub routes without a key, and sees the models, agents, MCP servers and skills you made public. When off, only signed in users and callers with a valid key can see the hub, and other hub visitors are sent to the login page. Turning it on also clears the older require_auth_for_public_ai_hub setting.
Forward client headers to LLM APISends client headers (Authorization, anthropic-beta and x- custom headers) on to the model provider. Turn it on only when callers need their own provider session or tracing headers passed through.
Forward LLM provider auth headersSends provider key headers (x-api-key, x-goog-api-key, api-key, ocp-apim-subscription-key) on to the provider, overriding the deployment's configured key for that request, so callers can bring their own provider key.
[BETA] Enable Projects (page will refresh)On: shows the Projects page and the Project field on key create and edit, so admins can group a team's keys under their own budget and model list. Off (the default): those screens are hidden, but projects that already exist keep their budgets and limits, so turning it off never stops enforcement. Proxy admins change it. It appears only on gateway builds that support projects, and the page reloads after saving.
[BETA] Enable Chat page (page will refresh)Shows the Chat page in the sidebar. The page reloads after saving.
Disable agents for internal usersInternal users lose the Agents page and the agent management routes.
Allow agents for team adminsExempts team admins from the switch above. It is disabled unless that switch is on.
Disable vector stores for internal usersInternal users lose the Vector Stores page and the vector store management routes.
Allow vector stores for team adminsExempts team admins from the switch above. It is disabled unless that switch is on.
Scope user search to organizationUser search results are limited by organization. When off, any signed-in user can search all users.
Stop organization admins from creating keysOn: organization admins cannot create keys with /key/generate, so keys come only from proxy admins and team members, for example when keys must come from one central process. Off (the default): organization admins may create keys for teams in their organization.
Show full health details without a keyOn: /health/readiness gives callers without a key its full details, such as the callbacks, cache and version, which helps a monitor that has no key but tells anyone who can reach the gateway how it is built. Off (the default): they get only the status and whether the database and Redis answer. Leave it off unless such a monitor needs the details. Callers with a key can always use /health/readiness/details.
Disable custom Virtual key valuesOn: nobody may choose their own key value, every key is generated by the gateway, so no guessable or reused secret becomes a key, and a request that sends key is refused with 403. Off (the default): callers may bring their own sk- value of at least 16 characters.

Internal User Page Visibility limits which sidebar pages internal users see. A badge reads "Not set (all pages visible)" or the number of pages selected. Only pages that internal user roles can reach at all are listed, because admin only pages stay hidden from them regardless. Open Configure Page Visibility to see a checkbox per page, grouped by nav section, each with a short description. Save Page Visibility Settings saves the checked pages, and saving with nothing checked means all pages are visible again. Reset to Default (All Pages), shown only when a selection is saved, clears it immediately without a confirmation. This hides pages from the sidebar. It does not change which routes the gateway lets those users call.

Team admin editable fields​

This card picks which team settings a team admin may change on teams they administer. The badge shows how many fields are enabled, or "Team admins cannot edit team settings". Only fields this gateway version supports are listed.

CheckboxLets team admins
Tokens per minute Limit (TPM)Change the team's TPM limit.
Requests per minute Limit (RPM)Change the team's RPM limit.
Max Budget (USD)Keep or lower the team's budget.
Raise the team's max budgetAlso raise it, capped by the organization's budget when the team has one. Only proxy admins can remove the cap. This checkbox is disabled until Max Budget (USD) is checked, and unchecking Max Budget (USD) unchecks it too. Its help icon links to the access control docs.
Create and update projectsCreate and update projects for their teams.
Update budgets on team members' keysChange budget fields on keys owned by other members of their teams.

Save is enabled once you change something and shows "Team admin editable fields updated successfully". On a gateway that supports none of these fields the card reads "This proxy version does not support enabling any team settings fields for team admins yet."

User Banner​

This card publishes an announcement that appears below the header on every dashboard page for every user. See the banners section of the Home page guide for how users see and dismiss it.

ControlTypeWhat it does
Publish user bannerSwitchTurns the banner on or off.
MessageText areaThe banner text, in Markdown, up to 4000 characters. When publishing is on and the message is empty, it shows "Add a message before publishing."
SeverityDropdownInfo, Warning or Error, which sets the banner's color and icon.
PreviewDisplayShows the banner as users will see it, once the message has text.
Save bannerButtonSaves the switch, message and severity together and shows "User banner updated successfully". It is disabled while saving and while publishing with an empty message. Nothing changes for users until you press it.

Logging Settings tab​

The Logging Settings card holds "Proxy-wide settings that control how request and response data are written to spend logs." Hover the help icon next to each label for the gateway's own description.

ControlTypeWhat it does
Store Prompts in Spend LogsSwitchOff keeps only metadata (who, model, tokens, cost, latency, status and the trace tree), so spend, traces and dashboards still work. On also keeps prompts, responses and tool inputs and outputs in spend logs, the Lens copy of request logs, Lens trace spans, custom agent runs and workflow runs. Requests under a zero data retention policy, or with message logging turned off, never have their content kept. Off by default.
Maximum Spend Logs Retention Period (Optional)TextHow long spend logs are kept, for example 7d or 30d. Empty means no limit.
Spend Logs Cleanup Batch Size (Optional)NumberRows deleted per statement during cleanup, 1000 when empty.
Spend Logs Cleanup Max Batches (Optional)NumberDelete statements per table per cleanup run, 500 when empty.
Spend Logs Cleanup Run Budget (Optional)TextTime limit for a whole cleanup run across every table, for example 5m, which is also the default.
Spend Logs Cleanup Batch Timeout (Optional)TextDatabase statement and lock timeout for each cleanup batch, for example 30s, which is also the default.
Save SettingsButtonSaves the form. It reads "Saving..." while running.

The two count fields are rounded to whole numbers of at least 1 when you leave them. Emptying a field that has a stored value clears that value, so the default applies again. The UI clears those fields one at a time before it saves the rest. On success you see "Spend logs settings updated successfully". If clearing fails you see "Failed to clear saved value for" followed by the field names, and nothing else is saved.

Turning Store Prompts in Spend Logs on means request and response content is kept in the database, so decide on it with your data retention rules in mind.

Hashicorp Vault tab​

This tab connects the gateway to Hashicorp Vault so models can read provider keys from it. With nothing configured it shows No Vault Configuration Found and Configure Vault. The tab counts as configured once a Vault address is stored.

Once configured, the card shows an info box reminding you that secrets must be stored with the field name key, for example vault kv put secret/SECRET_NAME key=secret_value, with a link to the docs, and a table that starts with Auth Method (AppRole, TLS Certificate, Token or None, worked out from the stored fields) followed by every stored field. Secret fields show the masked value the gateway returns and a trash button that opens Clear followed by the field name, "This will remove the stored value.". Delete in that dialog clears the field.

ButtonWhat it does
Test ConnectionAsks the gateway to connect to Vault with the stored settings and shows the result.
Edit ConfigurationOpens Edit Hashicorp Vault Configuration.
Delete ConfigurationOpens Delete Hashicorp Vault Configuration?, which warns "Models using Vault secrets will lose access to their API keys until a new configuration is saved.". Delete removes the configuration.

The edit dialog groups its fields. Only fields the gateway reports are shown, and each field's placeholder is the gateway's description of it.

GroupFields
ConnectionVault Address (must start with http:// or https://), Namespace, Login Namespace, Secret Namespace, KV Mount Name, Path Prefix
Token AuthenticationToken
AppRole AuthenticationRole ID, Secret ID, Mount Path
TLSClient Certificate, Client Key, Certificate Role. Optional client certificate for mutual TLS.

Only one auth method is needed. Secret fields (Token, Secret ID, Client Key) start empty with the placeholder "Leave blank to keep existing" and the masked value, and an empty secret field keeps the stored secret. Emptying any other field clears it. Save stores the settings and shows "Hashicorp Vault configuration updated successfully".

CyberArk Conjur tab​

This tab works the same way for CyberArk Conjur. With nothing configured it shows No CyberArk Configuration Found. It counts as configured once a Conjur server URL is stored. The info box says that configuration changes are hot reloaded across all proxy instances and links to the docs. Auth Method shows API Key, TLS Certificate or None. Delete Configuration warns "Models using CyberArk secrets will lose access to their API keys until a new configuration is saved.".

GroupFields
ConnectionConjur Server URL (must start with http:// or https://), Account, Username
API Key AuthenticationAPI Key
Certificate AuthenticationClient Certificate, Client Key
AdvancedSSL Verification, Token Refresh Interval (seconds)

API Key and Client Key are secret fields that keep the stored value when left empty.

Plugins tab​

The Plugins card registers external web applications as plugins. Once added, users can switch to a plugin from the mode switcher at the top left of the sidebar. A plugin is a web app loaded in a frame from its URL. It learns who is signed in from a short-lived claim the Admin UI gets from GET /api/plugins/auth-token, and it calls the gateway through /plugin-proxy/<name>/. See Admin UI plugins for how to build one.

ColumnMeaning
NameThe plugin identifier.
Display NameThe name users see.
URLThe plugin's base URL, as a link.
Plugin KeyDots when a key is stored, a dash when not.
ActionsEdit and delete buttons.

An empty list shows "No data". Add Plugin opens a dialog with these fields.

FieldTypeWhat it does
Name (identifier)TextUsed in URLs and config, so do not use spaces, for example spanway-platform-plugin. Required.
Display NameTextRequired.
URLTextThe base URL of the plugin service. Required and must be a full http:// or https:// URL, otherwise "Must be a full http:// or https:// URL" is shown. The gateway refuses other schemes and skips a stored plugin whose URL uses one.
Plugin KeyPassword with show and hideOptional. The plugin's own credential, sent as Authorization: Bearer followed by the key only when the gateway proxies API calls to the plugin's backend under /plugin-proxy/ and the plugin name. Leave it empty for plugins that use the signed-in user's token instead. When editing it starts empty with the placeholder "Leave blank to keep current key".

Save writes the whole plugin list to the gateway. The delete button removes the plugin and saves the list immediately, with no confirmation.

Web Search Interception tab​

This tab lets the gateway answer web search tool calls itself with a configured search tool, so models without native web search can still use fresh results. An info box explains that saving applies the change to all gateway instances within about 10 seconds. When interception is on but the instance that served the page has not applied it, a warning titled Not running on the proxy that answered this page appears. That is expected for about 10 seconds after a change or restart. If it persists, check that instance's logs.

ControlTypeWhat it does
Enable Web Search InterceptionSwitchTurns interception on.
ProvidersMulti selectWhich model providers to intercept for. Empty means AWS Bedrock only. You can also type a provider name that is not in the list.
Search ToolDropdownWhich configured search tool runs the searches. Empty means the first one available. The list comes from the search tools configured on the gateway.
Max Agentic LoopsNumberHow many follow up model calls one intercepted request may chain, at least 1. Empty means the default of 3.
Save SettingsButtonEnabled once you change something. Shows "Settings updated successfully. Changes will be applied across all pods within 10 seconds.".

A load failure shows "Could not load web search interception settings" and a save failure shows "Could not update settings".

JWT Key Mappings tab​

This tab appears for the admin session role. It maps a claim in a caller's JWT to a virtual key, so the request is authorized with that key's budgets, models and rate limits.

ColumnMeaning
ClaimThe claim name and value in the form name = value, with the description under it.
IssuerThe issuer the mapping applies to, or "Any issuer".
StatusActive or Inactive.
UpdatedWhen the mapping last changed.
ActionsA menu with Edit and Delete, for proxy admins only.

The table pages on the server, 25, 50 or 100 rows per page. With no mappings it shows "No JWT key mappings yet", and a load failure shows "Could not load JWT key mappings".

+ Create Mapping, for proxy admins only, opens Create JWT Key Mapping.

FieldTypeWhat it does
Claim NameTextThe claim to match, for example sub or client_id. Required.
Claim ValueTextThe value that claim must have. Required.
IssuerTextLeave empty to match tokens from any issuer.
DescriptionTextOptional.
Identify the Key ByDropdownVirtual key to paste the key itself, or Key hash to paste its hash.
Virtual Key or Key HashPassword or textRequired. A key hash must be 64 hex characters.

Create Mapping saves it. Edit JWT Key Mapping shows the claim name and value locked, with the note "Claims cannot be changed. Delete the mapping and create a new one instead.", and lets you change Issuer, Description, the Active switch and Mapped Key, which defaults to Keep the current key. Choosing Virtual key or Key hash there shows a New Virtual Key or New Key Hash field. Save Mapping saves.

Delete opens Delete JWT key mapping?, "Tokens with this claim stop resolving to the mapped key right away. This cannot be undone." Delete removes it. The gateway also blocks mapping writes from proxy admin viewers.

Credential Encryption tab​

This tab appears only for a proxy admin who is not view-only. It checks how many stored credentials still use the legacy encryption format and re-encrypts them as AES-256-GCM. Migrating needs encryption_algorithm set to aes-256-gcm in general_settings. It is safe to run again and skips values that are already migrated.

ButtonWhat it does
Check Residual LegacyCounts stored values without changing anything.
Dry Run MigrationRuns the migration logic without writing anything.
Migrate to AES-256-GCMOpens Migrate credentials to AES-256-GCM?, which explains that every legacy value is decrypted and written back as AES-256-GCM and values that cannot be decrypted are left alone. Migrate runs it.

After a run the tab shows a heading (Residual scan, Dry run, nothing was written or Migration finished), a summary and a table by storage location with the columns Scanned, AES-256-GCM, Migrated, Legacy, Plaintext and Undecryptable. The summary reads No legacy ciphertext remains when nothing is left, or the number of legacy values still to migrate. Values that could not be decrypted are reported in a separate error box. They were likely written with a different master or salt key and are left untouched. A failure shows "Encryption check failed" or "Encryption migration failed" with the reason.

Empty, error and disabled states​

Each tab has its own empty state, listed in its section, for example "No SSO Configuration Found", "No Vault Configuration Found", "No data" for plugins and "No JWT key mappings yet". Load failures show an error box naming the tab's data, such as "Could not load UI settings" or "Could not load Hashicorp Vault configuration". Save failures show the gateway's error as a toast or, on the UI Settings card, as "Could not update UI settings".

Saving SSO settings and adding or removing an allowed IP need the gateway to store its config in the database (STORE_MODEL_IN_DB=True), and the gateway answers with a message asking you to set it otherwise, without changing the list. A value that is fixed in the config file cannot be changed here. Buttons are disabled while their request runs, and the dependent switches and checkboxes noted above stay disabled until their parent is on.

Differences by role and license​

Proxy admins can use every tab. Proxy admin viewers see every tab except Credential Encryption, and see JWT Key Mappings without the create, edit and delete controls. On the other tabs the write controls stay visible for them, but the gateway refuses the writes. Org admins and internal users have no nav entry for the page.

Allowed IPs and UI Access Control on the Security Settings tab need a license. The UI only checks that the gateway has a license, not which features it includes. The allowed IP list is the ip_allowlist license feature. The gateway refuses to add an address without it, and a gateway whose config sets allowed_ips without that feature fails to load its config at startup. [BETA] Enable Projects appears only on gateway builds that support projects. Everything else on the page works without a license.

Errors​

What you seeWhat it meansFix
"Allowed IPs needs a Spanway Enterprise license."Allowed IPs opens only on a gateway with an Enterprise license.Add the license.
The last address has no DeleteAn empty list would refuse every request.Add another address first, or use Turn off IP allowlist.
The gateway refuses Turn off IP allowlistThe list comes from the config file.Change general_settings.allowed_ips in the config file.
401 "Authentication Error, Only proxy admin can be used to generate, delete, update info for new keys/users/teams. Route=/update/ui_settings. ..."An internal user tried to save a UI setting, the banner, the theme or a logo. The route check stops anyone who is not a proxy admin.Sign in as a proxy admin.
403 "Only proxy admins can update UI settings."A key that may call the route through allowed_routes or a custom role is still not a proxy admin.Use a proxy admin key.
403 "user not allowed to access this route, role= proxy_admin_viewer. ..."A proxy admin viewer tried to save. Viewers can read the page but not change it.Use a proxy admin account.
400 "Setting(s) ['enable_ptu_cost_attribution'] are derived from the deployment environment and cannot be changed from the UI."The switch is set by the deployment, not by the Admin UI.Change the environment variable or config that sets it.
400 "team_admin_editable_team_fields does not support [...]" or "... 'raise_max_budget' requires 'max_budget' to be enabled as well."Team admin editable fields names a field this gateway does not support, or allows raising the budget without the budget itself.Pick from the supported fields, and check Max Budget (USD) with Raise the team's max budget.
403 "Setting(s) [...] are a Spanway Enterprise feature and are not available on this build."The switch needs the enterprise build.Use the enterprise build, or leave the switch off.
422 with a detail list such as {"loc": ["disable_custom_api_keys"], "msg": "Input should be a valid boolean, unable to interpret input"}A value has the wrong type.Send true or false for switches and a list of names for the list settings.
500 "Database not connected. Please connect a database." or "Set 'STORE_MODEL_IN_DB='True' in your env to enable this feature."The gateway has no database, or does not store its settings in it. The Web Search Interception tab answers the second message too.Connect a database and set store_model_in_db: true.

Logs​

LevelLineMeaning and action
WARNINGCould not refresh UI settings from the databaseA gateway could not read the saved UI settings and keeps using the ones it had. Normal during a short database outage. Check the database if it repeats.
WARNINGFailed to reinitialize web search interception settings immediately: <error>The save worked, but this instance could not apply it at once. Every instance picks it up within about 10 seconds anyway. Act only if the setting never takes effect.
WARNINGFailed to reinitialize MCP semantic filter settings immediately: <error>The same for the MCP semantic filter settings.

Every save on this page writes an audit row when audit logging is on, see the audit log event list.