Settings and tools reference (Enterprise)
Enterprise only. This page is about the Portward gateway that a company runs in its own cloud. If Portward runs it for you, on the web, this page doesn’t apply: see the page for Portward on the web.
This page lists the config file keys that shape governance, and every tool the two connectors give Claude and ChatGPT.
Config file
Section titled “Config file”The gateway reads portward.toml. On AWS, the stack’s parameters write this file, and on Google Cloud, your
Terraform settings write it. Restart the gateway after a change. What an admin adds in the console is added to the
config file’s settings, and it can’t remove anything the file lists.
[auth], with sign-in through your directory
Section titled “[auth], with sign-in through your directory”| Key | What it does | Default |
|---|---|---|
directory | Your directory’s https sign-in address (its OpenID Connect issuer) | Required |
client_id | The app registered for this gateway in your directory | Required |
client_secret_env | The environment variable that holds the app’s secret | PORTWARD_DIRECTORY_SECRET |
admin_groups | Groups whose members are admins, as the directory sends them | None |
admin_subjects | Admins by sign-in id or verified email | None |
user_groups | Groups whose members may use the data connector | None |
users | Other data users, as sign-in ids, verified emails or "@yourcompany.com". [] means admins and user groups only. Without the line, everyone the directory signs in. | No line |
groups_claim | The sign-in token claim that holds the groups | groups |
scopes | Extra sign-in scopes, such as ["groups"] for Okta | None |
subject_claim | The claim that logs and records show as the person | sub |
step_up | Ask for a fresh sign-in before changes that give more access | true |
redirect_uris | Exact https return addresses of apps other than Claude, ChatGPT and local ones | None |
With WorkOS or another provider that issues its own tokens, [auth] takes issuer, jwks_url, audience,
roles_claim and admin_roles instead of directory, client_id and the group keys
(Sign-in setup).
[gateway]
Section titled “[gateway]”| Key | What it does | Default |
|---|---|---|
public_url | The gateway’s address | |
setup_hosts | Database hosts setup may connect to. "*.corp.example" covers a domain. | None |
min_group_size | Smallest group a Totals only column is summed or averaged over (2 at least) | 5 |
max_rows | Most rows one answer returns | 200 |
timeout_ms | Query time limit for databases, files and apps | 5000 |
warehouse_timeout_ms | Query time limit for warehouses | 60000 |
records_path | The records file, next to the config file | portward.db |
[setup]
Section titled “[setup]”| Key | What it does |
|---|---|
kinds | The kinds of source setup may connect, such as ["postgres", "snowflake"]. Without it, every kind. |
[setup.sign_in.<kind>] | For sources people connect by signing in (Microsoft 365, Google Drive). Takes client_id_env, an optional client_secret_env, and for Microsoft, tenant. |
Column rules in the config file
Section titled “Column rules in the config file”You can also define sources in the config file, with rules per column:
[sources.tables.customers.columns.email]ai = "token" # "token" (the default for a listed column), "aggregate" or "plain"person = "reveal" # "plain", "reveal", "mask" or "hidden"; only for a token columnprefix = "EMAIL" # the token typeshare = true # people may send it to the AIperson = "reveal" is Click to show, and ai = "aggregate" is Totals only. A column that the config file
tokenizes stays a token. Setup and the console can’t make it a real value.
Data connector tools
Section titled “Data connector tools”The data connector is at https://<your gateway>/mcp, for everyone who asks questions. Each person sees only the
datasets they may use.
| Tool | What it does |
|---|---|
list_datasets | Lists the datasets, columns, token columns, definitions and links the person may query |
describe | Describes one dataset with its columns, definitions and a few sample rows, with token columns as tokens. Makes an answer record. |
query | Runs one read-only SELECT with the AI’s stated assumptions, shows the results table and makes an answer record |
suggest_links | Ranks columns in other sources that likely match a column of this dataset, by shared values (counts only), and shows the person a picker |
save_link | Saves the match the person chose in chat |
Admin connector tools
Section titled “Admin connector tools”The admin connector is at https://<your gateway>/admin/mcp, for admins only. These tools return metadata, never
data values. The tools that change something show a card that a person approves.
| Tool | What it does |
|---|---|
setup | Opens the setup widget for sources, access rules and context. Can open prefilled for a kind of source. |
propose_access | Proposes changes to exposure and column rules as a review card |
context_template | Returns a dataset’s columns and the context template, with any saved context |
draft_context | Shows a context draft, checked against the data, for a person to edit and save |
governance | Opens the governance view, with links to confirm, definitions to settle and recent activity |
review_queue | Lists columns whose definition is missing or a draft, most used first |
assumptions | Lists recent assumptions the AI made when answering |
draft_definition | Saves a draft definition. Never confirms one. |
confirm_definition | Proposes a definition as a review card |
links | Lists links between sources, who chose each one and its state |
confirm_link | Proposes confirming a link as a review card |
access_summary | Shows queries, people and reveals for each column |
reveal_log | Shows who revealed, shared or matched which column, and when. Never the values. |
setup_log | Shows who changed setup, and when |
evidence | Returns the evidence pack for one answer record, or the last one, with a download |