Skip to content

fix: gracefully handle install without signature - #41

Merged
zeroshade merged 4 commits into
mainfrom
install-no-signature
Sep 17, 2025
Merged

zeroshade merged 4 commits into
mainfrom
install-no-signature

Conversation

@zeroshade

Copy link
Copy Markdown
Member

If the MANIFEST is missing the Files.signature then we first try looking for driver + '.sig' and then error out.

Adds a new CLI argument --allow-missing-signature which will allow installing if the signature is missing.

@amoeba amoeba 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.

Thanks for this. Seems fine.

What did you think about maybe removing the partially-installed driver when install fails like this?

Comment thread cmd/dbc/install.go Resolved
Comment thread cmd/dbc/install_test.go
m := InstallCmd{Driver: "test-driver-no-sig"}.
GetModelCustom(baseModel{getDriverList: getTestDriverList, downloadPkg: downloadTestPkg})
out := suite.runCmdErr(m)
suite.Contains(out, "signature file 'test-driver-1-not-valid.so.sig' for driver is missing")

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.

Should we test the state of the tmpdir after failure so we know what files remain when install fails? It'd be good as a regression test if we change the behavior.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Should I make the change in this PR to clean up after the failed install?

@zeroshade
zeroshade merged commit a034489 into main Sep 17, 2025
@zeroshade
zeroshade deleted the install-no-signature branch September 17, 2025 20:48
zeroshade added a commit that referenced this pull request Apr 17, 2026
If the `MANIFEST` is missing the `Files.signature` then we first try
looking for `driver + '.sig'` and then error out.

Adds a new CLI argument `--allow-missing-signature` which will allow
installing if the signature is missing.

This branch was previously deployed

1 inactive deployment
snapshot — 9a17ef0f Deployed Sep 17, 2025 by zeroshade
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.

2 participants