Skip to content

Refetch a detached signature cached before its release file - #799

Open
simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:fix/release-signature-pairing
Open

simonchrz wants to merge 1 commit into
git-pkgs:mainfrom
simonchrz:fix/release-signature-pairing

Conversation

@simonchrz

Copy link
Copy Markdown
Contributor

Fixes #763.

Release.gpg and repomd.xml.asc have their own metadata cache entry and TTL, apart from the release file they sign. When the release file was fetched again, after its TTL or because an index didn't match it and it was expired, the cached signature was still served with the new release file, and gpgv reported BADSIG until the signature's TTL ran out.

A cached signature that was fetched before its release file was last fetched is now fetched again from upstream. Otherwise it is served from the cache as before.

Not covered: if upstream fails right after the release file was refreshed, the old signature is still served as a stale fallback.

Release.gpg and repomd.xml.asc had a cache entry and TTL of their own,
apart from the release file they sign. When the release file was fetched
again, after its TTL or because an index showed upstream had moved on, the
cached signature kept being served with it and failed to verify. A cached
signature fetched before its release file is now fetched again.
@simonchrz simonchrz added the bug Something isn't working label Nov 22, 2026
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f529a8eb-70b8-4e78-b3a0-27dd5d79f857
Commits

Reviewing files that changed from the base of the PR and between 784ba61 and 419455c.

Files selected for processing: 5

  • docs/configuration.md
  • internal/handler/debian.go
  • internal/handler/release_index.go
  • internal/handler/release_signature_test.go
  • internal/handler/rpm.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian and RPM: detached signatures are cached apart from the file they sign

1 participant