Versions in this module Expand all Collapse all v0 v0.15.0 Oct 13, 2026 Changes in this version + const ConnectionsPath + const PrincipalTypeAgent + const ProvidersPath + const Purpose + const ResourceType + const ScopeRead + const ScopeWrite + const TenantColumn + var ErrNoTenant = errors.New("connections: no organization in context") + var ErrNoVault = errors.New("connections: no vault configured") + func LogAuditor(logger *slog.Logger) cf.Auditor + func MigrateSchema(ctx context.Context, db *sql.DB, d sqlstore.Dialect, cfg *rls.Config) error + func OwnerFor(orgID uuid.UUID) cf.OwnerID + func RolePermissions(base authz.RolePermissions) authz.RolePermissions + type AuthErrorWriter func(w http.ResponseWriter, err error, scope string) + type Authenticator func(r *http.Request, scope string) (uuid.UUID, error) + type Connections struct + Auditor cf.Auditor + Authorizer cf.Authorizer + Broker *broker.Broker + Crypto cf.Cryptographer + Providers *provider.Registry + Secrets cf.SecretSource + Service *service.Service + Store *sqlstore.Store + func Open(o Options) (*Connections, error) + func (c *Connections) Handler(auth Authenticator, writeAuthErr AuthErrorWriter, logger *slog.Logger) http.Handler + func (c *Connections) Migrate(ctx context.Context) error + type Options struct + Audit sfaudit.Store + Authorizer authz.Authorizer + DB *sql.DB + Dialect sqlstore.Dialect + Egress egress.Policy + Keys *keys.Keys + Logger *slog.Logger + Providers *provider.Registry + RLS *rls.Config + Vault vault.Vault