You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Imports: an apt import without a public key re-signs whatever the connection delivered #753
An apt import (#644) checks each Packages index against Release, and each .deb against its index entry. Without public_key, which is optional (crates/server/src/admin/imports.rs:519), nothing checks Release itself (crates/server/src/import/apt.rs:249-300). The documented sources are often plain http://.
Scenario
An import of http://apt.example.com/debian without a key goes through a network that alters it. The man in the middle controls Release, so it controls every index and .deb too. Forge stores them and then signs its own indexes with the hosted repository's key. Clients that trust that key install the altered packages with no warning.
apt itself refuses such a source unless it is marked trusted=yes. The import turns an unauthenticated source into a signed one. This is documented, but it is the default.
Expected
An apt import needs the source's public key, or an explicit opt-in ("allow_unsigned": true) that the web UI's Import form shows with a warning. Refusing it at least for http:// sources would close the common case. The opt-in is recorded in the audit line.
Activity