Skip to content

gate-5 (route-auth) fails on AppHost-aliased routes (health/metrics/preferences) — pre-existing #561

Description

@rubenvdlinde

Problem

Hydra gate-5 (route-auth) fails on scholiq's AppHost-aliased routes. For each route name ctrl#method in appinfo/routes.php, the gate derives lib/Controller/{Ctrl}Controller.php and fails if that file is absent. scholiq's health#index, metrics#index, preferences#getPreference, preferences#setPreference routes point at generic AppHost controllers (ADR-040, GenericHealth/Metrics/PreferencesController) with no local controller file, so the gate reports them as missing:

health#index — lib/Controller/HealthController.php missing
metrics#index — lib/Controller/MetricsController.php missing
preferences#getPreference — lib/Controller/PreferencesController.php missing
preferences#setPreference — lib/Controller/PreferencesController.php missing

This is pre-existing on development (the routes are not introduced by any recent PR) and blocks the pre-merge-check-strict job for every PR whose CI runs the current hydra main.

Options

  1. Add thin local HealthController / MetricsController / PreferencesController that extend the AppHost generics and carry the NC auth attributes (#[PublicPage] / #[NoAdminRequired] etc.) — makes gate-5 pass and documents the auth posture locally.
  2. Or teach hydra gate-5 to recognise AppHost-aliased routes (skip / resolve via the generic) — hydra-side fix.

Option 1 is the scholiq-local fix. Filed while merging the dashboard PR (#45), whose CI was red solely on this pre-existing gate (the PR touches no PHP / routes).


Gemigreerd van Codeberg — oorspronkelijk Conduction/scholiq#51, geopend door rubenvdlinde op 2026-07-07.

Metadata

Metadata

Assignees

Labels

triageAwaiting triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions