Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify certain invariants by default when parsing the package #93

Open
dralley opened this issue Mar 6, 2023 · 2 comments
Open

Verify certain invariants by default when parsing the package #93

dralley opened this issue Mar 6, 2023 · 2 comments

Comments

@dralley
Copy link
Collaborator

dralley commented Mar 6, 2023

We should probably provide an API which checks the following by default when used

  • valid package signature
  • internal file digests / signatures match
  • certain basic headers are present
  • (etc.)
@dralley
Copy link
Collaborator Author

dralley commented May 22, 2023

There are some further invariants that would also be good to check, but it's more of a stretch goal. I'm going to paste links here just for future reference.

rpm-software-management/rpm#2025

#115 (comment)

QubesOS/qubes-rpm-oxide#14

"Forbid duplicate tags"

etc.

An open question for me is where to draw the line between warning and refusing to parse the package at all. For instance it would be good to be able to lint packages for things like out-of-order tags, or tags in places where they shouldn't be, but it's not clear that we should refuse to parse them entirely in all cases. After all you can't write a good linter if you can't parse anything.

Maybe "strict" and "loose" parsing options?

@cmeister2
Copy link
Collaborator

cmeister2 commented May 22, 2023 via email

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

No branches or pull requests

2 participants