Skip to content

feat: rename --no-verify to --skip-package-signature-check - #639

Merged
eitsupi merged 10 commits into
fix/archive-download-limitfrom
feat/skip-package-signature-check
Dec 4, 2026
Merged

eitsupi merged 10 commits into
fix/archive-download-limitfrom
feat/skip-package-signature-check

Conversation

@eitsupi

@eitsupi eitsupi commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Closes #636. The new name makes clear that the option skips package signature verification. Archive hash checks and locked signer checks still apply where relevant.

  • dbc install and dbc sync accept --skip-package-signature-check. The hidden --no-verify alias still works and prints a deprecation warning to stderr when enabled.
  • The unreleased install options are now dbc.SkipPackageSignatureCheck() in Go, DBC_INSTALL_SKIP_PACKAGE_SIGNATURE_CHECK in C, InstallOptions::skip_package_signature_check in Rust, and skipPackageSignatureCheck in npm.
  • Help and shell completions use the new flag name. The installation guide keeps the v0.3.1 example and notes the rename.

@eitsupi
eitsupi added this pull request to stack #641 December 2, 2026 13:54
@eitsupi eitsupi changed the title feat/skip package signature check feat: rename --no-verify to --skip-package-signature-check Dec 2, 2026
@eitsupi eitsupi changed the title feat: rename --no-verify to --skip-package-signature-check feat: rename --no-verify to --skip-package-signature-check Dec 2, 2026
@eitsupi
eitsupi force-pushed the feat/skip-package-signature-check branch from fd66ced to 300ea8b Compare December 2, 2026 14:44
@eitsupi
eitsupi force-pushed the feat/skip-package-signature-check branch from 300ea8b to 1b0a553 Compare December 2, 2026 15:04
@eitsupi eitsupi changed the title feat: rename --no-verify to --skip-package-signature-check feat!: rename --no-verify to --skip-package-signature-check Dec 2, 2026
@eitsupi eitsupi changed the title feat!: rename --no-verify to --skip-package-signature-check feat: rename --no-verify to --skip-package-signature-check Dec 2, 2026

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean rename across the CLI, Go, C, Rust and npm. The hidden --no-verify alias is ORed into the same field, and the deprecation warning is printed only from GetModel, so tests that build models directly stay quiet. skip_signature_flag_test.go covers both spellings for install and sync. The bindings regenerate cleanly, and the old API names were never released.

Inline notes below. One doc sentence contradicts its since_version('v0.4.0') marker; the others are minor.

Heads-up on stacking: #635 rewrites the same signer-change paragraphs in docs/concepts/driver_registry.md (around line 227) and docs/guides/driver_list.md (line 184) to point at dbc lock --allow-signer-change NAME. Those paragraphs still mention dbc sync --no-verify and "delete dbc.lock". Whichever PR merges second needs to merge the two versions: keep #635's recovery steps and this PR's flag name.

Comment thread docs/guides/installing.md

Make note of the name "some_driver" printed above as this will be the name to use when loading the driver with a [Driver Manager](../concepts/driver_manager.md). i.e., `dbapi.connect(driver="some_driver")`.

In v0.4.0, `--no-verify` is renamed to `--skip-package-signature-check`. The old flag still works and prints a deprecation warning.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related, on line 273: that paragraph is under "Archive Verification", which #638 marks since_version('v0.4.0'), but it names --no-verify. In v0.4.0 that flag is a deprecated alias. Keeping the v0.3.1 flag in the local-archive example makes sense, but that section only exists from v0.4.0 on, so it should say --skip-package-signature-check.

Comment thread rust/columnar-dbc/README.md Outdated
@@ -33,8 +33,8 @@ assert_eq!(list_installed(&dir)?.len(), 1);
`install` verifies each driver's signature with Columnar's public signing key

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this still says install verifies "with Columnar's public signing key and cleans up a driver that fails verification". The lib.rs, C header and npm docs were updated to say the registry's configured key is used, or no verification for an unsigned registry, and that an existing install is left in place. This README should match.

Comment thread cmd/dbc/sync_plan.go Outdated
// verified. The policy of its bound source decides which key is
// trusted; the lock only says which one was chosen. A pin that the
// configuration no longer selects is an error, also with --no-verify, and
// configuration no longer selects is an error, also with --skip-package-signature-check, and

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: after the rename this comment line runs past the usual wrap width. It's cosmetic, but you rewrapped the other comments.

--no-verify reads as turning off all verification, but it only skips
checking package signatures against their signing keys; archive hash
and locked signer checks still apply. Add the new name to dbc install
and dbc sync and keep --no-verify as a hidden, deprecated alias that
prints a warning on stderr. Help, docs and completions use the new
name.
The Go, C, Rust and npm install options now carry the CLI flag's name,
since they too skip only the package signature check and also accept a
signature that does not verify, not only an unsigned package:

- Go: dbc.SkipPackageSignatureCheck()
- C: DBC_INSTALL_SKIP_PACKAGE_SIGNATURE_CHECK
- Rust: InstallOptions::skip_package_signature_check
- npm: install(..., { skipPackageSignatureCheck })

None of these options is in a release yet, so the old names are not
kept.
Also describe the Rust and npm install calls as verifying with the key
of the package's registry before the driver is installed, as
Client.Install does, rather than always with Columnar's key.
The C, Rust and npm install descriptions said the registry's key always
verifies the driver, but a registry declared unsigned is not verified.
The guide documents the released dbc, so its local archive example
keeps --no-verify, with a note that v0.4.0 renames it.
@zeroshade

Copy link
Copy Markdown
Member

Re-reviewed at 865e4b4. The approval still stands: all three inline comments are fixed, and the overlap with #635 was merged as suggested.

Checks run: go build ./... succeeds, and go vet on ./cmd/dbc/, . and ./capi/ is clean. With -race, these pass:

  • in cmd/dbc: skip_signature_flag_test, the TestSyncInstallNoVerify and TestInstallNoVerify tests, TestSyncUpgrade*, TestInstallUsesTheKey* and the signer tests
  • in the root package: TestClientInstall*
  • go test ./capi/

The Rust and npm tests weren't run; the binding code is unchanged since the approval apart from one doc comment.

Earlier comment Now
installing.md:273: the v0.4.0 Archive Verification section named --no-verify Now says --skip-package-signature-check. The local-archive example keeps the v0.3.1 flag.
The Rust README still described Columnar's key only and said a failing driver is cleaned up Now matches lib.rs, the C header and npm.
sync_plan.go comment ran past the wrap width Rewrapped.
Overlap with #635 in the signer-change paragraphs driver_registry.md and driver_list.md keep #635's dbc lock [--upgrade-driver NAME] --allow-signer-change NAME steps and use the new flag name.

#635's new tests now use SkipPackageSignatureCheck. Every remaining --no-verify mention is intentional: the hidden alias, the v0.3.1 example, the rename note, the cli.md alias notes, and cargo publish --no-verify in scripts/publish_crates.py.

Merge order: this branch includes #638's commits, so it should merge after #638 or be rebased onto it.

@eitsupi
eitsupi merged commit 47141fe into main Dec 4, 2026
31 checks passed
@eitsupi
eitsupi deleted the feat/skip-package-signature-check branch December 4, 2026 00:53

This branch was previously deployed

1 inactive deployment
snapshot — 865e4b4b Deployed Dec 3, 2026 by eitsupi via snapshot #1467
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.

proposal: rename --no-verify to a name that says what it skips

2 participants