Skip to content

fix(search): validate curated Debian package identity - #7

Merged
Ruraam merged 10 commits into
mainfrom
hardening/catalog-package-identity
Nov 13, 2026
Merged

Ruraam merged 10 commits into
mainfrom
hardening/catalog-package-identity

Conversation

@Ruraam

@Ruraam Ruraam commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extend curated catalog rows with an optional fourth field containing the expected Debian Package: name.
  • Carry that identity through curated search selection into check_and_update, so validate_deb_metadata rejects a downloaded .deb whose package name differs from the explicit mapping.
  • Keep existing three-field catalog entries backward-compatible and unpinned.
  • Preserve explicit mappings when the scheduled deb-get catalog synchronization regenerates the catalog, but only when the package name and repository still match.
  • Reject malformed mappings and ambiguous duplicate package identities; keep debup and dbp entry points byte-identical.

Tests

  • Extend curated search tests for mapped, legacy, and malformed entries.
  • Extend catalog synchronization tests to verify explicit mappings survive refreshes.
  • Existing package metadata tests already cover rejection of a mismatched Debian package name.

No existing catalog rows were assigned guessed Debian package names. Existing catalog behavior is unchanged until an explicit fourth field is added.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cda33c9b-4f88-4ff8-9d3e-9210c6a0fa37
  • 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

@Ruraam
Ruraam merged commit ee2c269 into main Nov 13, 2026
19 checks passed
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.

1 participant