Let one API key carry every area the holder may still grant.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Failing after 29s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 17s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Failing after 7m49s

A key belongs to one application and can include global exercises, several clubs, and the holder's own exercises. Lost roles stop that area from being delivered, and the key stays copyable.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-23 14:25:57 +01:00
1 parent c08c7c65b5
commit b824115e9b
7 files changed
+260 -111

No files matched your search

@@ -102,6 +102,7 @@ def test_replay_keeps_release_id_and_explicit_reconfirm_mints_a_new_one() -> Non
def test_key_scope_follows_the_role_context() -> None:
assert scope_denial("user", ["exercise"], ["official", "club", "private"]) is None
assert scope_denial("personal", ["exercise"], ["private"]) is None
assert scope_denial("personal", ["exercise"], ["official"])
assert scope_denial("club", ["exercise", "framework"], ["club", "private"]) is None