You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 930e477
Browse filesBrowse the repository at this point in the historyBrowse files
FE bridge for the Iceberg REST per-user session feature (builds on the SPI DTO):
- ConnectorSessionBuilder.from(ctx): copy the retained per-connection
DelegatedCredential + sessionId onto the ConnectorSession ONLY when the target
connector declares SUPPORTS_USER_SESSION (least-privilege); map fe-core
DelegatedCredential -> neutral ConnectorDelegatedCredential by enum name so an
added-but-unmapped type fails loud rather than being silently dropped.
- PluginDrivenExternalCatalog.shouldBypassTableNameCache / shouldBypassDbNameCache
= supportsUserSession() && ctx.hasDelegatedCredential(). Under session=user the
REST server returns PER-USER metadata, so the shared (catalog+name-keyed, NOT
user-keyed) db/table-name caches are bypassed to prevent cross-user leakage; a
session with no credential keeps the shared cache (the fail-closed rejection then
happens connector-side on the actual read, never by serving/poisoning a shared entry).
- ExternalCatalog/ExternalDatabase: db-level live-path bypass
(getFilteredDatabaseNames(false)/getDbNullableWithoutCache/matchesLocalDbName),
still re-appending information_schema+mysql and never mutating the shared
lowerCaseTo*Name lookup when bypassing (updateLookup=false).
Tests: ConnectorSessionImplTest (capability-gated inject / non-capable skip / no-cred),
PluginDrivenExternalCatalogSessionBypassTest (the bypass decision across capability +
credential + null-context).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013KKXx3btbQc6w3MbZbEoRf
0 commit comments