Skip to content

docs(registry): document configurable driver registries - #393

Open
zeroshade wants to merge 1 commit into
mainfrom
docs/configurable-registries
Open

zeroshade wants to merge 1 commit into
mainfrom
docs/configurable-registries

Conversation

@zeroshade

Copy link
Copy Markdown
Member

Summary

Documents the configurable driver registry feature:

  • docs/concepts/driver_registry.md — new "Configuring registries" section covering the global config.toml and project dbc.toml [[registries]] syntax, the priority order (project → global → built-in defaults), URL dedup/conflict resolution, replace_defaults behavior (including the project-level tri-state), and which commands use which registries.
  • docs/reference/driver_list.md — new "Registries" section documenting the [[registries]] entries (url, name) and the top-level replace_defaults key for driver lists.

Context

These docs changes were split out of #360 per review feedback ("back out the docs changes before merge and do the docs updates in a separate pr"). The implementation lives in #360; this PR carries only the documentation.

Both sections are tagged {{ since_version('v0.4.0') }}.

Document the configurable driver registry feature: the global
config.toml and project dbc.toml [[registries]] syntax, priority
ordering across project/global/built-in registries, and the
replace_defaults behavior.

Split out of #360 so the docs can be reviewed and merged separately.
zeroshade added a commit that referenced this pull request Jun 12, 2026
Move the driver-registry documentation to a separate PR (#393) so the
docs can be reviewed and merged independently, per review feedback.
@amoeba amoeba added this to the 0.4.0 milestone Jun 30, 2026
@eitsupi

eitsupi commented Nov 21, 2026

Copy link
Copy Markdown
Member

#598 may supersede this.

zeroshade pushed a commit that referenced this pull request Nov 23, 2026
…uiltin_registries` (#598)

Follow-up to #360. `replace_defaults` is named for replacing the
built-in registries, which is no longer needed: with #595 a third-party
registry can name its signing key and works like the built-in ones, and
with #577 the built-in registries can be reached through a mirror. What
the setting does is remove the built-in registries (the public and the
private Columnar registry) while keeping the `[[registries]]` entries,
so this renames it to `exclude_builtin_registries`. The user config now
wins when it excludes them.

```toml
exclude_builtin_registries = true

[[registries]]
url = "https://drivers.example.com"
name = "example"
```

- **Semantics:** the built-in registries are excluded when either the
user `config.toml` or the project's `dbc.toml` sets
`exclude_builtin_registries = true`, and a project's `false` no longer
adds them back. The CLI warns when a `dbc.toml` sets `false` that the
user config overrides, and keeps that `false` when it writes the file
back. The setting only stops dbc from adding the built-in registries to
the list; it is not an access control, so a `[[registries]]` entry with
a built-in registry's URL is still used. Omitting the key and `false`
now mean the same thing in both files.
- **Migration:** `replace_defaults` has not been released, so there is
no alias. The old key is ignored like any other unknown key, so a
`replace_defaults = true` written for a development build has to be
renamed or the built-in registries are used again.
- **Go API:** `GlobalConfig.ReplaceDefaults` becomes
`ExcludeBuiltinRegistries`. `LoadProjectRegistries` returns a `bool`
instead of a `*bool`, and `WithProjectRegistries` takes a `bool`, since
there is no longer an "inherit" state.
- **Docs:** adds a "Configuring registries" section to the driver
registry concepts page and a "Registries" section to the driver list
reference with the same content as #393, updated for the new key and
semantics, so this supersedes #393. For drivers that several registries
publish, they describe the behavior since #584 (the highest-priority
registry that has a matching version).

This branch was previously deployed

1 inactive deployment
snapshot — 294ba522 Deployed Jun 12, 2026 by zeroshade via snapshot #805
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants