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

Clarify if old sigs with expired keys can be okay #528

Open
bernhardreiter opened this issue Mar 14, 2024 · 0 comments
Open

Clarify if old sigs with expired keys can be okay #528

bernhardreiter opened this issue Mar 14, 2024 · 0 comments

Comments

@bernhardreiter
Copy link
Member

If a CSAF document is signed on Pi day (the 14th of march 2023) and the key expires and of that march,
is the signature valid and okay for the CSAF standard?

If yes, the behaviour of the tools would have to be adjusted accordingly.

Currently a public OpenPGP key must be fully valid at time of downloading.
This would lead to a resigning for very old advisories.

The standard just has

The OpenPGP key SHOULD have a strength that is considered secure.

Being valid is part of being considered "secure", and old keys may not be secure enough anymore.
But as this is a "SHOULD", it could be come a warning, if our tools would be able to check to check validity
of the key at time of signing.

Behaviour of v3.0.0:

Checker and downloader stop if a CSAF document is downloaded and the OpenPGP signature was done with a key that is expired, even if it was valid at the time of signing.

Example message:

Signature of https://www.example.com/.well-known/csaf/white/2022/example-2022-0003.json could not be verified: Signature Verification Error: Invalid signature caused by openpgp: key expired.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant