What GET /v1/config Should Expose: Catalog Property Leakage in Iceberg REST Catalogs and the Polaris Fix
GET /v1/config tells clients how to talk to a catalog, and it can leak far more.

GET /v1/config tells clients how to talk to a catalog, and it can leak far more. Polaris was copying the whole catalog properties map into defaults, including base locations, operator keys and polaris.config overrides. On Nov 25, 2026 the fix narrowed it: clients get no catalog properties except a page size taken from pagination flags.
Every Iceberg REST catalog client makes the same first call. Before it lists a namespace or loads a table, it asks the catalog for configuration. The answer shapes everything the client does next: which URL prefix to use, which endpoints exist, and which properties to apply on top of its own settings. It’s the least glamorous endpoint in the specification and one of the most trusted.
That trust is the problem. Whatever the catalog puts in that response reaches every client that connects. Spark jobs, Python notebooks, BI tools, AI agents. If the response carries internal settings, they reach all of them. Apache Polaris spent most of November 2026 working out exactly what its response should contain. The answer it reached is a useful standard for any REST catalog, and this article turns it into a checklist you can run against your own.
What the Spec Says /v1/config Is For
The Iceberg REST catalog specification defines GET /v1/config as the configuration endpoint. A client calls it with an optional warehouse parameter and gets back a JSON object with three main parts.
defaults are properties the client applies before its own configuration. The client’s settings win over them.
overrides are properties the client applies after its own configuration. They win over the client’s settings.
endpoints list the REST operations the server supports, so clients know whether optional features like scan planning or multi-table commits are available.
The merge order matters. A client builds its effective configuration as defaults, then its own settings, then overrides. So defaults are suggestions the client can override, and overrides are instructions the client can’t.
The classic use of overrides is the URL prefix. A server that hosts many catalogs tells the client which path prefix to use for this warehouse. The classic use of defaults is a setting the server wants most clients to adopt unless they know better, such as a page size for list operations.
Nothing in the specification says the response should mirror the catalog’s internal properties. That’s an implementation choice, and it’s where things went wrong.
What Polaris Was Exposing
Vignesh A opened the discussion on the Polaris dev list on November 7, 2026, in a thread titled “Client-facing keys on Iceberg REST GET /v1/config.” After an earlier change, PR #5246, a successful response returned the full public catalog properties map in defaults.
Polaris already omitted storage configuration, connection configuration, and secrets. Those were never at risk. What did flow through, according to PR #6089’s description, was:
default-base-location, the storage location where new tables land,polaris.config.*keys, which are Polaris server feature overrides set per catalog,- registered catalog configuration keys,
table-default.*properties,- leftover custom keys operators had added,
- catalog-level FileIO settings,
- Iceberg REST keys stored on the catalog.
None of these are passwords. Some are still sensitive, and none of them are the client’s business.
default-base-location reveals your storage layout: the bucket name, often the account or project, and the path convention. That’s reconnaissance data for anyone probing your storage.
polaris.config.* reveals which server features are on or off for the catalog. It tells a client things only operators need to know, and it invites clients to depend on internals.
Custom keys are the wildcard. Operators put all sorts of things on catalog properties, including notes, contacts, and integration settings. Every one of them went to every client.
Why “Not a Secret” Isn’t the Right Test
The obvious defense is that nothing secret leaked. That misses three real costs.
Reconnaissance. Storage paths, feature flags, and internal names help an attacker map your environment. Defense in depth means not handing that map to every authenticated client, including compromised ones.
Accidental coupling. Once a client sees a key, someone builds on it. A notebook reads default-base-location from the config response to construct paths. A tool checks a feature flag to decide behavior. Now changing a server-side setting breaks clients the operator didn’t know existed.
Configuration confusion. Defaults apply to client configuration. A catalog property meant for the server lands in a client as if it were a client setting. If the key name collides with a real client property, the client changes behavior. FileIO settings like s3.endpoint are the sharpest example. They’re legitimate client settings, but on a catalog they were set for the server’s own use.
The right test for each key is “does the client need this to talk to the catalog correctly?” If not, it stays on the server.
How the Discussion Converged
The thread ran from November 7 to November 25 and moved through several positions.
Vignesh’s first proposal kept default-base-location, custom keys, and Iceberg properties, and dropped only polaris.config.*. He asked whether any Iceberg client consumed a polaris.config.* key.
Dmitri Bourlatchkov pushed further on November 13. Catalog entity properties shouldn’t reach clients automatically at all. He suggested that /v1/config list only properties from the storage access configuration, a model that depends on PR #5756, He also suggested a staged transition, with operators moving settings from catalog properties to storage configuration over time.
On November 23, Dmitri proposed a home for each kind of setting. FileIO settings come from storage configuration. Table defaults come from catalog properties filtered by a prefix such as iceberg.table-default.. Page size comes from native Polaris feature flags, with catalog values ignored and warned about. No other catalog properties are sent.
Yufei Gu argued that table-default.* should stay off /v1/config entirely. Polaris applies table defaults on the server at table creation, and clients see the result in table metadata. Sending them to clients as well invites clients to apply them a second time. He also asked that the client-side contract be checked against Iceberg docs and real client behavior before changing anything.
On November 25, Vignesh agreed with the homes Dmitri proposed for FileIO and page size. He pointed out that copying rest-page-size from catalog properties teaches operators to store an Iceberg client key on the catalog, a key that a later change then ignores. He said he’d reshape PR #6089 so Polaris pagination flags are the source of page size, rest-page-size stays in the response, table-default.* stays off the endpoint, and FileIO from storage configuration follows separately.
What PR #6089 Changes
PR #6089, titled “Stop copying catalog properties into Iceberg REST GET /v1/config defaults,” carries the change. As of December 1, 2026, it’s open. Dmitri Bourlatchkov (dimas-b on GitHub) approved it on November 27, and review was re-requested on December 1 after later commits.
The new behavior, per the PR description:
- Typical catalogs return empty
defaults. prefixandnamespace-separatorstay inoverrides.- Pagination stays controlled by the
LIST_PAGINATION_ENABLEDandLIST_PAGINATION_MAX_PAGE_SIZEflags. table-default.*is no longer returned, but Polaris still applies those defaults when it creates a table.- FileIO settings from storage configuration come in a later change.
Two review points are still worth tracking. An automated review flagged a compatibility risk. Operators who set s3.endpoint or s3.path-style-access on the catalog lose them on upgrade with no opt-out, and it suggested gating the change behind a behavior-change configuration. The visible thread doesn’t show that question resolved. A human reviewer also questioned whether Polaris should send a page size to all clients at all, since page size is an operational choice for each client.
Here’s the shape of the change as a before-and-after response for a typical catalog. Values are illustrative:
{
"before": {
"defaults": {
"default-base-location": "s3://acme-lake-prod/analytics",
"polaris.config.enable-some-feature": "true",
"table-default.write.format.default": "parquet",
"s3.endpoint": "https://s3.internal.acme.example",
"owner-team": "data-platform",
"rest-page-size": "100"
},
"overrides": { "prefix": "analytics" }
},
"after": {
"defaults": {},
"overrides": { "prefix": "analytics" }
}
}
In the “before” block, the storage location reveals the bucket and path convention. The polaris.config.* key reveals a server feature flag. The table-default.* key duplicates something the server already applies. The s3.endpoint key pushes an internal endpoint into every client. The custom owner-team key leaks operator notes. In the “after” block, the client gets only what it needs to address the catalog. If the catalog sets pagination through flags, a page size appears, but it no longer comes from catalog properties.
The Exposure Checklist
Polaris’s fix gives a good rule for any REST catalog. Here’s that rule as a checklist, one question per key in your defaults and overrides.
- Does the client need this key to address the catalog?
prefixandnamespace-separatorpass. Most others don’t. - Is this key already applied on the server? If so, sending it as a default invites double application. Table defaults fail this test.
- Does it reveal storage layout? Base locations, bucket names, internal endpoints. Keep them server-side.
- Does it reveal server internals? Feature flags, server config overrides, version details beyond what the protocol needs.
- Did an operator add it for their own reasons? Custom keys almost never belong in client configuration.
- Is it a credential or credential-adjacent? Tokens, keys, role names, or endpoints that grant access. Use credential vending instead.
- If it’s a client setting, should every client get the same value? Page size, metrics reporting, and FileIO tuning vary by client. A per-client setting is better configured on the client.
- What breaks if you remove it? If a client depends on it, document the dependency and give the client a proper way to configure it before removing.
Keys that pass question 1 belong in the response. Keys that fail any of 2 through 6 come out. Keys that only raise question 7 are judgment calls.
Inspecting Your Catalog’s Response
You can run the checklist in a minute. Fetch the response with a client’s credentials and print every key:
URI="https://catalog.example.com/api/catalog"
TOKEN="$(cat ~/.catalog-token)"
curl -s -H "Authorization: Bearer ${TOKEN}" \
"${URI}/v1/config?warehouse=analytics" \
| jq '{
default_keys: (.defaults // {} | keys),
override_keys: (.overrides // {} | keys),
endpoints: (.endpoints // [] | length),
flagged: ([(.defaults // {}), (.overrides // {})]
| add | keys
| map(select(test("location|polaris\\.config|table-default|s3\\.|gcs\\.|adls\\.|token|secret|key|credential|endpoint"; "i"))))
}'
The curl call requests configuration for one warehouse with a bearer token, exactly as a client would. The jq program prints the key names in defaults and overrides, the number of advertised endpoints, and a flagged list. The flagged list matches key names against patterns from the checklist: locations, server config, table defaults, storage settings, and anything credential-shaped. It prints only names, not values, so you can share the output without leaking what you’re checking for.
Run it with a low-privilege principal, not an admin. You want to see what an ordinary client sees. Then walk each flagged key through the checklist.
What Clients Lose When Defaults Disappear
Removing keys from defaults is the right change, and it can still break clients that relied on them. Plan for three cases.
Storage settings. If clients picked up s3.endpoint, s3.path-style-access, or similar settings from the catalog, they now need them from somewhere else. The best answer is credential vending with storage configuration, where the catalog returns scoped storage credentials and settings with each table load. Where that isn’t available yet, configure them on the client. The Polaris PR itself moved FileIO properties for its Spark integration tests into the Spark client configuration for this reason.
Here’s what that looks like for a Spark session:
spark.sql.catalog.lake=org.apache.iceberg.spark.SparkCatalog
spark.sql.catalog.lake.type=rest
spark.sql.catalog.lake.uri=https://catalog.example.com/api/catalog
spark.sql.catalog.lake.warehouse=analytics
spark.sql.catalog.lake.header.X-Iceberg-Access-Delegation=vended-credentials
spark.sql.catalog.lake.s3.path-style-access=true
spark.sql.catalog.lake.s3.endpoint=https://s3.internal.acme.example
The first four lines configure the REST catalog connection. The access delegation header asks the catalog to vend storage credentials with each table load. The two s3.* lines are the settings that used to arrive as catalog defaults. They now live where they belong, on the client that needs them. Once storage configuration in the catalog carries FileIO settings, those two lines can go away.
Table defaults. Clients that read table-default.* from config to decide table properties at creation lose that input. In Polaris, the server still applies the defaults when it creates the table. Clients see them in the new table’s metadata. If a client sets properties itself, check whether it should.
Page size. Clients that used the catalog’s rest-page-size keep getting a page size when Polaris pagination flags set one. If you relied on a per-catalog value, move it to the flags or to client configuration.
Who Actually Sees the Response
It helps to be concrete about the audience. /v1/config requires authentication in any serious deployment, so the response goes to authenticated principals. That’s still a large and varied group.
- Batch engines like Spark and Flink, running under service principals.
- Interactive users in notebooks and SQL clients, often with broad read access.
- BI tools connected with shared service accounts.
- AI agents, which increasingly connect to catalogs directly through REST or through an MCP server in front of one.
- Third-party services you granted catalog access for a specific integration.
Every one of them gets the same defaults and overrides for a warehouse. A catalog can’t tailor the config response per principal in a way clients expect, because the specification treats it as catalog configuration, not user configuration.
So the response’s audience is the least trusted principal that can authenticate to the warehouse. If a third-party integration gets read access to one namespace, it still sees the full config response for the warehouse. If an AI agent’s credentials leak, the attacker sees it too. Design the response for that reader.
Per-Table Configuration Is the Better Channel
The REST specification has a second place to send configuration, and it’s a much better fit for storage settings. When a client loads a table, the LoadTableResult response includes a config map with table-specific properties. With access delegation, it can also include storage credentials scoped to that table.
That’s the right channel for anything about reaching data, for three reasons.
It’s scoped. The catalog only returns it to principals allowed to load that table. A client without access to the table never sees its storage settings.
It’s specific. Different tables can live in different storage with different endpoints and credentials. Per-table config handles that naturally. A single catalog-wide default can’t.
It’s fresh. Vended credentials expire. The client gets new ones on the next load or through a credential refresh call. Static settings in /v1/config never expire.
When a client sends the X-Iceberg-Access-Delegation: vended-credentials header, it asks the catalog to vend credentials this way. Polaris supports credential vending, and its storage configuration model is the planned home for FileIO settings. When that follow-up lands, storage endpoints and similar settings flow to clients per table, through the channel that already enforces access control.
This is the real reason the /v1/config cleanup matters. Removing keys is half the job. The other half is moving each setting to the channel whose access rules match the setting’s sensitivity.
A CI Check for Config Drift
Leakage tends to come back. A new feature adds a property, an operator sets a custom key, or an upgrade changes the default behavior. A small test in CI catches it before production does.
import os
import requests
ALLOWED_DEFAULTS = {"rest-page-size"}
ALLOWED_OVERRIDES = {"prefix", "namespace-separator"}
def test_v1_config_has_no_unexpected_keys():
uri = os.environ["CATALOG_URI"]
token = os.environ["CATALOG_TOKEN"]
warehouse = os.environ.get("CATALOG_WAREHOUSE", "analytics")
resp = requests.get(
f"{uri}/v1/config",
params={"warehouse": warehouse},
headers={"Authorization": f"Bearer {token}"},
timeout=10,
)
resp.raise_for_status()
body = resp.json()
extra_defaults = set(body.get("defaults", {})) - ALLOWED_DEFAULTS
extra_overrides = set(body.get("overrides", {})) - ALLOWED_OVERRIDES
assert not extra_defaults, f"unexpected defaults: {sorted(extra_defaults)}"
assert not extra_overrides, f"unexpected overrides: {sorted(extra_overrides)}"
The test fetches the config response for a staging warehouse with a low-privilege token, the same view an ordinary client gets. Two allowlists define what’s acceptable: a page size in defaults, and the addressing keys in overrides. Any key outside those lists fails the test, and the failure message names the keys without printing values. Run it after every catalog upgrade and every change to catalog properties. When a new key is legitimate, adding it to the allowlist becomes a reviewed decision instead of an accident.
Adjust the allowlists to your catalog. Some deployments legitimately send a metrics reporting setting or another client key. The point is that every key in the response is there on purpose.
Rolling Out the Change Safely
If you operate Polaris or another catalog making the same change, sequence it.
- Inventory current keys. Run the inspection script against every warehouse.
- Find dependents. Search client configurations and code for any key you plan to remove. Pay special attention to storage settings.
- Move settings to their proper home. Storage configuration for FileIO, server-side table defaults, flags for pagination, client configuration for per-client tuning.
- Communicate the change. Give client owners the list of keys disappearing and where each now lives.
- Upgrade, then verify. Re-run the inspection script.
defaultsshould be empty or close to it. - Watch for client errors. Storage access failures right after the upgrade almost always mean a client lost a FileIO setting it depended on.
If your catalog offers a behavior-change flag for this, use it to stage the rollout by environment. The Polaris PR review raised exactly that request, and it’s a sensible pattern for any change that removes data clients depend on.
Common Objections
The cleanup draws a few predictable objections. Each one has a fair answer.
“Central client configuration is convenient.” It is. Setting s3.endpoint once on the catalog and having every client pick it up saves work. The cost is that every client gets it, including clients that shouldn’t know about that endpoint, and every client is coupled to a server-side property that operators don’t think of as a client contract. Per-table configuration through credential vending gives you central control without that broadcast. Use it where your catalog supports it.
“Our warehouse only has one client.” Today. Catalogs outlive the clients that first used them. A warehouse built for one Spark pipeline gains a notebook user, then a BI tool, then an agent. Designing the config response for the least trusted future client costs little now and saves a cleanup later.
“Isn’t an empty defaults a spec violation?” No. The specification defines defaults as properties for the client to apply before its own configuration. An empty map is valid, and clients handle it. What clients need, the URL prefix and the list of endpoints, lives in overrides and endpoints.
“Clients already ignore keys they don’t understand.” Mostly true, and it misses the point. The risk isn’t a client crashing on an unknown key. It’s a client applying a key it does understand, like a FileIO setting, that was never meant for it. And it’s people reading keys they shouldn’t see.
“We’ll just never put anything sensitive on catalog properties.” That rule depends on every operator, forever, knowing that catalog properties are public to clients. Most operators don’t think of them that way. A catalog that only exposes an allowlist removes the need for that discipline.
These answers all point the same direction. Treat the config response as a public contract with a short, deliberate list of keys, and give every other setting a home that matches its audience.
Failure Modes and Warning Signs
Storage access failures after upgrade. Warning sign: clients fail to read or write data files right after the catalog upgrade. Cause: a lost s3.endpoint or path-style setting. Fix: move the setting to client config or storage configuration with vending.
Tables created with unexpected properties. Warning sign: new tables differ from old ones in format or write settings. Cause: a client used to apply table defaults itself and now doesn’t, or applies them twice. Fix: let the server apply defaults, and remove client-side duplication.
Clients reading internals. Warning sign: code that parses default-base-location or feature flags from config. Cause: coupling to leaked keys. Fix: give those clients a supported source, or remove the dependency.
Drift back to leakage. Warning sign: new keys appear in defaults after a later upgrade or a property change. Cause: a new code path or operator habit. Fix: run the inspection script in CI against staging, and fail the build on unexpected keys.
Where This Is Heading
The Polaris discussion points toward a cleaner model that every REST catalog will need sooner or later. Each kind of setting gets one home.
- Addressing (
prefix,namespace-separator) lives inoverrides. - Capabilities live in
endpoints. - Storage access lives in storage configuration and arrives with credential vending per table.
- Table defaults live on the server and show up in table metadata.
- Client tuning lives on the client.
That leaves defaults nearly empty for most catalogs, which is exactly what the Polaris PR produces. It’s a good sign when a configuration endpoint has little to say. It means every setting lives somewhere that matches who owns it.
Conclusion
GET /v1/config is the first call every Iceberg REST client makes, and whatever it returns reaches all of them. Polaris was returning far more than clients needed: storage locations, server feature flags, table defaults, and operator notes. The fix, agreed on November 25 and carried in PR #6089, sends only what clients need to address the catalog, plus a page size sourced from server flags.
Apply the same standard to any catalog you run. Fetch the response as an ordinary client, walk every key through the checklist, move each setting to its proper home, and keep a CI check so leakage doesn’t creep back.
For background, see the REST catalog API endpoint reference, the REST catalog specification overview, how Polaris’s external credential mode guards this endpoint, how to opt out of credential vending, and what it takes to run Polaris in production.
Sources: Polaris dev thread, Nov 25, 2026 message · Polaris PR #6089
Keep Going
If this piece was useful, I have written a lot more on catalogs and governance. Apache Polaris: The Definitive Guide (O’Reilly) covers Polaris’s catalog model, storage configuration, and credential vending in depth. You can find every book I have written, across lakehouse architecture, Apache Iceberg, Apache Polaris, and AI, at books.alexmerced.com.


