fix(relay): restore buzz-relay build after #8005 and #8028 (#8036)

🤖 `main` at `2ebfde914` doesn't compile `buzz-relay`. #8005 and #8028
each passed CI alone and git merged them cleanly, but they conflict in
meaning:

- #8005 added a call to `crate::nip_fi_http::http_denial` in
`api/git/transport.rs`. #8028 turned that path into a private re-import
of `nip_fi_core::http_denial`, so the call fails with E0603. It now
calls `crate::nip_fi_core::http_denial` directly. Behavior is unchanged.
- #8005's test `failed_restriction_lookup_is_503_not_403` implements
`VerifyAssertion::verify_assertion` with one argument. #8028 added a
`community: &CommunityBinding` parameter to the trait, so the test fails
with E0050. The test stub now accepts and ignores `_community`.

Each PR's CI ran against a base without the other's change, so neither
CI run could catch this.

🤖 The local `rust-tests` pre-push hook was skipped for this push. It
kept failing on an unrelated `buzz-acp` timing test,
`keepalive_resets_idle_past_deadline`, which passes when run alone. A
serial `just test-unit` run was fully green. CI's Unit Tests job is the
gate for this PR.

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Co-authored-by: Duncan <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@buzz.block.builderlab.xyz>
This commit is contained in:
Will Pfleger
2026-10-01 21:40:44 -04:00
committed by GitHub
parent 2782b9cd5e
commit 639593bba9

View File

@@ -211,7 +211,7 @@ impl axum::extract::FromRequestParts<Arc<AppState>> for GitAuth {
// Off mode); only a real refusal is 403.
let unavailable = |legacy: Response| match mode {
buzz_auth::NipFiMode::Off => legacy,
_ => crate::nip_fi_http::http_denial(buzz_auth::DenialClass::AuthorizationUnavailable),
_ => crate::nip_fi_core::http_denial(buzz_auth::DenialClass::AuthorizationUnavailable),
};
match crate::api::relay_members::check_relay_membership(
state,
@@ -4139,6 +4139,7 @@ mod off_mode_precedence_tests {
fn verify_assertion(
&self,
_token: &str,
_community: &buzz_auth::CommunityBinding,
) -> Result<buzz_auth::VerifiedAssertion, buzz_auth::VerifierError>
{
Ok(buzz_auth::VerifiedAssertion::new_for_test(self.0))