[Feature] Implement function-organization Postbox access through IDM, Organizations, and Core contracts #3

Open
opened 2026-07-07 21:00:57 +02:00 by zemion · 1 comment
Owner

Imported from the repository seed backlog.

  • Source: /mnt/DATA/git/govoplan-postbox/docs/POSTBOX_BACKLOG.md
  • Line: 7
  • Section: P1 Immediate
  • Milestone: P1 Immediate

Backlog item:

Implement role-organization-bound access checks through core/access contracts

Refined boundary and acceptance criteria

  • Resolve the authenticated account to identities and effective direct/delegated/acting-for function assignments through idm.directory.
  • Resolve concrete function, function type, unit, and bounded hierarchy facts through organizations.directory.
  • Use Core/Access permission evaluation for generic Postbox actions, but do not require a function-to-RBAC-role mapping merely to access the postbox bound to that function.
  • Return separate discover/read/send/reply/acknowledge/administer decisions with assignment, function, unit, delegation, policy, and binding provenance.
  • Assignment changes affect current/future access and cache state; they do not rewrite historical access/delivery evidence.
  • Enforce tenant isolation, validity windows, account-specific acting context, classification constraints, and fail-closed behavior when required identity facts are unavailable.
  • Batch directory lookups and cover vacancy, multiple incumbents, delegation expiry, revocation, and reassignment in tests.

Dependencies: IDM effective assignment contract and Organizations hierarchy contract. Parent story: #16.

<!-- codex-module-seed-fingerprint:ad0850a8bd070f1949bc3d60 --> Imported from the repository seed backlog. - Source: `/mnt/DATA/git/govoplan-postbox/docs/POSTBOX_BACKLOG.md` - Line: `7` - Section: `P1 Immediate` - Milestone: `P1 Immediate` Backlog item: ```text Implement role-organization-bound access checks through core/access contracts ``` <!-- codex-postbox-access-refinement-2026-07-28 --> ## Refined boundary and acceptance criteria - Resolve the authenticated account to identities and effective direct/delegated/acting-for function assignments through `idm.directory`. - Resolve concrete function, function type, unit, and bounded hierarchy facts through `organizations.directory`. - Use Core/Access permission evaluation for generic Postbox actions, but do not require a function-to-RBAC-role mapping merely to access the postbox bound to that function. - Return separate discover/read/send/reply/acknowledge/administer decisions with assignment, function, unit, delegation, policy, and binding provenance. - Assignment changes affect current/future access and cache state; they do not rewrite historical access/delivery evidence. - Enforce tenant isolation, validity windows, account-specific acting context, classification constraints, and fail-closed behavior when required identity facts are unavailable. - Batch directory lookups and cover vacancy, multiple incumbents, delegation expiry, revocation, and reassignment in tests. Dependencies: [IDM effective assignment contract](https://git.add-ideas.de/GovOPlaN/govoplan-idm/issues/5) and [Organizations hierarchy contract](https://git.add-ideas.de/GovOPlaN/govoplan-organizations/issues/5). Parent story: #16.
zemion added this to the P1 Immediate milestone 2026-07-07 21:00:57 +02:00
zemion changed title from [Feature] Implement role-organization-bound access checks through core/access contracts to [Feature] Implement function-organization Postbox access through IDM, Organizations, and Core contracts 2026-07-28 18:59:06 +02:00
Author
Owner

Codex State: progress

Function-bound access now combines generic Postbox actions with current IDM direct/delegated/acting assignments, enforces tenant and validity boundaries, requires explicit acting context, reports vacancy/incumbents, and uses batch incumbency lookup. Assignment removal immediately removes current access because no second membership/cache model is kept. More granular reply/export/classification policy remains for later slices.

## Codex State: progress Function-bound access now combines generic Postbox actions with current IDM direct/delegated/acting assignments, enforces tenant and validity boundaries, requires explicit acting context, reports vacancy/incumbents, and uses batch incumbency lookup. Assignment removal immediately removes current access because no second membership/cache model is kept. More granular reply/export/classification policy remains for later slices.
zemion added
status
in-progress
and removed
status
ready
labels 2026-07-29 00:20:18 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GovOPlaN/govoplan-postbox#3
No description provided.