oliver-zehentleitner / maity

hub: Keep the Why GET drops the kept family when the grant is revoked (not_covered)

Sign in to report

tsk-104gqeqgakkf Open

Security rating by suqj (S232, INFO), from audit round 3b (tsk-hgnbapyw7hnh, read at 80fef076). Ruling (lotse): yes, a revoked grant takes effect.

Today hub ktw.py (around :902-919) keeps serving the last good Keep the Why family, a revoked grant (not_covered) included, when the root is unavailable, until a restart. Export and bodies re-check on every call. Change GET …/keep-the-why so it drops the kept family once not_covered is set, the same way export does. Tests: revoke the grant, then make the root unavailable: GET no longer serves the old family. Docs/context in the same PR.