Repository navigation
feat: rename --no-verify to --skip-package-signature-check - #639
Conversation
--no-verify to --skip-package-signature-check
fd66ced to
300ea8b
Compare
300ea8b to
1b0a553
Compare
--no-verify to --skip-package-signature-check--no-verify to --skip-package-signature-check
--no-verify to --skip-package-signature-check--no-verify to --skip-package-signature-check
c8cba4c to
ab241ae
Compare
zeroshade
left a comment
There was a problem hiding this comment.
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.
|
|
||
| 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. |
There was a problem hiding this comment.
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.
| @@ -33,8 +33,8 @@ assert_eq!(list_installed(&dir)?.len(), 1); | |||
| `install` verifies each driver's signature with Columnar's public signing key | |||
There was a problem hiding this comment.
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.
| // 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 |
There was a problem hiding this comment.
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.
…ing in the Rust README
ab241ae to
865e4b4
Compare
|
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:
The Rust and npm tests weren't run; the binding code is unchanged since the approval apart from one doc comment.
#635's new tests now use Merge order: this branch includes #638's commits, so it should merge after #638 or be rebased onto it. |
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 installanddbc syncaccept--skip-package-signature-check. The hidden--no-verifyalias still works and prints a deprecation warning to stderr when enabled.dbc.SkipPackageSignatureCheck()in Go,DBC_INSTALL_SKIP_PACKAGE_SIGNATURE_CHECKin C,InstallOptions::skip_package_signature_checkin Rust, andskipPackageSignatureCheckin npm.