Skip to content

Test registry signer conflicts end to end in the CLI #613

Done

Description

@eitsupi

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

  1. added this to the 0.4.0 milestone on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions