D / HDark Heart LabsAccess-control demonstrationFictional workspace

CHOOSE A ROLE. CHECK THE BOUNDARY.

Permission is only
part of the picture.

Explore allowed and denied actions, then see how a session’s lifetime changes the outcome.

THE SAMPLE RULE

Active session
+ Required permission
→ Allowed action

A permission check never reads or changes real records.

Simulation only. Fixed fictional personas, page-only sessions and a simulated clock. No accounts, passwords, usable tokens, network requests or saved data.

A SMALL AUTHORIZATION LAB

Try a sample action

Acting persona

Not started

Each persona has one displayed session. Starting again replaces that displayed session; no sign-in occurs.

Simulated clock

0 min30-minute sample lifetime

The original service treats exactly 30 minutes as valid. A session expires strictly after its expiry time and is removed when checked. Clock limit: 120 simulated minutes.

Check a permission

This checks permission only. To remove a sample session, use the separate revocation control below.

LAST ACTION

Ready to explore

Start a sample session, then check an action.

Revoke a sample session

Administrator and Support can revoke an existing sample session. Developer cannot. The actor must have an active session.

THE PERMISSION MODEL

Three roles. Four permissions.

These grants match the original service. Session validity is checked separately. Selecting another persona does not change any role’s permissions.

EDUCATIONAL OBSERVER VIEW

Sample audit trail

0 / 40 entries

This teaching view stays visible for every persona. It is not the protected audit-reading API. Permission checks, session starts and revocations append records; inspecting this view adds none.

  1. No sample actions yet.

The trail is append-only within this page run. At 40 entries, action controls pause until reset. Reset clears the fictional run; this is not a persistent security log.

This browser lab illustrates the original Go service’s role checks and session lifecycle. It is not an authentication system and grants no access to any service.

Restore the access lab?

This clears fictional sessions, audit records and the simulated clock, then restores the administrator persona.