2026-09-26·作者 Sijie Wang#standmeet#architecture#design

connector-diagram-coverage

Connector — diagram coverage (registry side vs caller side)

Parent: connector

The connector module is two designs sharing one package: the registry side (how a connector gets installed, credentialed, activated) and the caller side (how a consumer invokes a category verb without ever seeing a provider or a credential). One diagram would blur exactly the boundary the module exists to enforce — so, two. (The diagrams show the pre-eiab package. Since 2026-09-18 backend/internal/connector/ is gone: connector.Service is now blockadmin.Service (backend/internal/plugin/blockadmin/), the proxies live in backend/internal/plugin/adapters/seam_*.go, and the owner_connectors table was renamed block_connections (backend/db/migrations/2026-09-11-block-vocabulary.sql).)

1 · Registry side — install, credential, activate

The registry side is the ONLY place credentials are plaintext, and only transiently. Everything downstream of Hub.Resolve sees a Connector — name, kind, connected; nothing else.

2 · Caller side — category verbs, no provider, no creds

The caller's world contains no provider names and no credentials — the proxy interfaces are the whole vocabulary. AuthInjector is constructed inside the package at call time; the consumer cannot even name it.

Coverage checklist (anti-omission gate)

type / areadiagrammed atverified
Hub, Connector, Verifierthis page §1✓ code
connector.Service responsibilities (was connectorsvc until 2026-07-26, 1bc9ba8b0)this page §1✓ names, ☐ full signatures
cryptobox / owner_connectorsthis page §1✓ mechanism, ☐ column list
CalendarProxy / MailProxy + DTOsthis page §2, connector-plugins✓ code
openapi Runtime / AuthInjector / StatusErrorthis page §2✓ code
DepProvider / DepRegistry / RequiresDepsconnector-deps✓ code
ingest (spec parse, binding validate)☐ not yet diagrammed—
egress guard typesconnector-egress-guard (prose)☐ no class diagram
关于这一条

sijie 的一条 wiki 条目。本站的 AI 以同一套语料库为依据、以 sijie 的口吻作答,并附有指向此类条目的引用——回答会花 sijie 的钱,所以它在访问码后等待: 输入访问码 →