oliver-zehentleitner / maity
hub: refuse a GitHub App slug that is not a slug (MAITY_FORGE_GITHUB_APP_SLUG)
tsk-gzfgxgfnj43x Open
github_app.parse (hub/src/maity_hub/github_app.py:195–219) checks that all five MAITY_FORGE_GITHUB_APP_* settings are present and that the key is an RSA key. It does not check the slug's form.
What happened (2026-11-23): the operator set the slug to the App's full URL (https://github.com/apps/<slug>). The hub would have started, and install_url builds https://github.com/apps/https%3A//github.com/apps/<slug>/installations/new, a 404 for every link. Ops caught it before the overlay.
Fix: parse raises AppConfigError when the slug is not in GitHub's slug form: lower-case letters, digits and - (^[a-z0-9][a-z0-9-]*$). The message names the setting only, never the value, as for the other settings. The upgrade page notes it if a hub could have run with such a slug.
Acceptance:
- a slug with
/,:, upper case or spaces stops the hub at startup, namingMAITY_FORGE_GITHUB_APP_SLUG; - a valid slug starts as before;
- a test per case.
Outside the launch scope (lead, seq 201898), unless a coder is free.