You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test registry signer conflicts end to end in the CLI #613
Once registries can configure their own signing keys (#595), test fresh driver resolution through dbc add, dbc install, dbc lock, and dbc sync. Today all registries use the built-in Columnar signer, so the CLI cannot encounter a signer conflict. Requested in the review of #601: #601 (comment)
With two registries that list the same driver under different signers, check that resolution fails with a signer conflict. Check that add and install suggest --registry, and that lock and sync suggest setting source in dbc.toml.
If a registry's index cannot be fetched and its signer differs from that of the reachable registry listing the driver, check that resolving a driver without a source fails with ErrIncompleteIndex.
In both cases, check that explicitly choosing the reachable registry succeeds with --registry for add and install, and with source for lock and sync.
With two registries configured with the same signing certificate, check that resolution succeeds from the reachable registry when the other index cannot be fetched.
With two distinct unsigned registries that list the same driver, check that implicit resolution fails with a signer conflict. Each unsigned registry has its own signer identity.
Check that package signature verification uses the same signing certificate used to determine the selected registry's signer identity in that operation.
Remove the TODO in cmd/dbc/driver_source_test.go once the tests are in place.
Activity