Repository navigation
docs: add network configuration design - #590
vuanhphung wants to merge 3 commits into
Conversation
Proposes one network policy per connection on the Thrift backend so OAuth, storage and SQL requests honor the same transport, TLS and proxy settings, matching the kernel backend. Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
Drop history and open questions, and condense the survey into one comparison table. Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
🔀 Cross-reviewed: two independent reviews (Claude Opus 5.5 · GPT-6.1 Sol), checked by a judge model (Claude Sonnet 5.5).
Verdict: 1 Medium
Looks good, with 1 medium design concern. I checked the call-site citations (connection.go:692, connector.go:188, m2m.go:106, exchange.go:33,44, kernel_config.go:204) against the checkout and they hold.
|
|
||
| - Built-in authenticators implement the interface and assert it at compile time. Other authenticators | ||
| are left unchanged. | ||
| - The returned copy shares the original's token state. Connectors that share an authenticator therefore |
There was a problem hiding this comment.
🟡 Medium — The design shares token state across bound copies, so a refresh runs on whichever connector's transport triggers it. Connector A's client secret can then go over connector B's relaxed-TLS or custom transport. This contradicts the "same transport, TLS and proxy settings" goal and the "keyed by everything that affects its result" rule. Fix: key the shared state by network policy, or state and justify the exception.
🔀 Found by Claude Opus 5.5 · confirmed by the judge
Adds
docs/design/NETWORK_CONFIGURATION.md, a design for applying one network policy per connection on the Thrift backend. Today OAuth, token federation and volume staging ignoreWithTransportandWithSkipTLSHostVerifyand send Go's default User-Agent (#413), while the kernel backend applies the same settings to every request.The design builds one base transport per connector and routes workspace, auth and storage requests through it. As in the kernel and JDBC, TLS relaxation also applies to OAuth, which private-link hosts need. The phased plan is about +315/−120 production lines.
Docs only; no code changes.
This pull request and its description were written by Isaac.