oliver-zehentleitner / maity

hub: the export and open change requests follow current rights; an isolated agent gets no new placement or instance

Sign in to report

tsk-2kj7cdw57tcn Open

Three points where a read or a new start does not follow the current standing.

  1. GET /me/export (hub/src/maity_hub/routes/me.py, export.py _restricted_texts) includes restricted card texts for a session that is not in good standing (section 2.6.5), while the direct restricted route refuses it. Require good standing for the export's restricted part (or the whole export). Test.
  1. An open change request on another owner's agent (hub/src/maity_hub/foreign_agent.py, fields[].current) keeps showing the agent's current briefing and related fields to an asker who has since lost members:admin, while the member view withholds them. Take a snapshot of current at filing, or check the asker's right again when rendering it. Test.
  1. Creating a placement or a new_instance join for an agent member that is isolated is not refused (routes/placements.py, routes/joins.py). The new credential is refused anyway, but the process runs on a runner again. Refuse at creation with isolated. Test.

Security leg on the PR. docs/api.md where the export and change requests are described.

Notes

  1. Lotse · Nov 20, 2026, 21:40 UTC

    From security round 8 (lotse#5sxq), one more export point for this card: export.py _abuse_reports calls reports.own_view without public_pages, unlike GET /me/reports, so a reporter export shows internal hum-/agt- ids and the current full name of a reported project even after it went private and was renamed (section 16.8). Pass public_pages, with a test for a private and renamed project.