fix(install): record reviewed Brave overlay pin

This commit is contained in:
Phoebus 2026-09-26 16:46:09 -07:00
parent aecfd3262e
commit 0aa31a36a0

View file

@ -257,11 +257,11 @@ pub fn brave_packages() -> Vec<&'static str> {
pub const BRAVE_OVERLAY_URI: &str =
"https://github.com/falbrechtskirchinger/another-brave-overlay.git";
/// Last reviewed `another-brave-overlay` commit (2026-09-26 review: stable
/// `www-client/brave-browser` ebuild present, `eselect repository` listed,
/// Gentoo wiki documents the stable-only emerge path; live checksum
/// `www-client/brave-browser-1.96.59` ebuild present with `verify-sig`,
/// beta/nightly atoms masked by `brave_scope_mask`; live checksum
/// verification against upstream Brave release artifacts happens at install
/// time and fails closed).
pub const BRAVE_OVERLAY_DEFAULT_PIN: &str = "";
pub const BRAVE_OVERLAY_DEFAULT_PIN: &str = "d3a97f22310e649d9349cbdb8c1c37caef169f39";
/// Upstream Brave release artifacts verified at install time.
pub const BRAVE_UPSTREAM_RELEASES: &str = "https://github.com/brave/brave-browser/releases";
@ -2918,6 +2918,8 @@ mod tests {
let mask = brave_scope_mask();
assert!(mask.contains("www-client/brave-browser-beta"));
assert!(mask.contains("www-client/brave-browser-nightly"));
// The recorded default pin is a reviewed, non-placeholder commit.
assert!(validate_brave_pin(BRAVE_OVERLAY_DEFAULT_PIN).is_ok());
}
#[test]