feat: harden download and install security

This commit is contained in:
stoorps 2026-03-21 20:48:53 +00:00
parent f8ffb95376
commit af13e98eb3
Signed by: stoorps
SSH key fingerprint: SHA256:AZlPfu9hTu042EGtZElmDQoy+KvMOeShLDan/fYLoNI
33 changed files with 1517 additions and 46 deletions

View file

@ -0,0 +1,32 @@
# Security Issues
## AppImageHub Download Host Trust
**Status:** Open
**Severity:** High
**Area:** Provider trust / supply chain
### Summary
`aim` now enforces HTTPS for AppImageHub provider-returned download URLs, but it does not yet enforce a host trust policy or allowlist for those returned URLs.
### Current Mitigation
- AppImageHub download URLs must use `https://`
- insecure user-supplied HTTP policy is handled separately through `allow_http`
### Remaining Gap
A compromised or unexpected AppImageHub API response could still direct downloads to an arbitrary HTTPS host. Transport encryption alone does not establish publisher trust.
### Deferred Follow-Up
Future hardening should add one of:
- a fixed allowlist of expected AppImageHub download hosts
- a configurable host trust policy
- stronger publisher verification metadata if AppImageHub exposes it
### Notes
This issue is intentionally tracked separately from the immediate HTTPS enforcement work so the current hardening tranche can reduce risk without trying to solve the full provider trust model in one pass.