Add IdentityRestoredEvent audit log entry (restored)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- php
- Domain
- authentication, backend, security
Research direction
Start with Identity::restore(), then inspect Middleware’s audit-log action map and AuditLogRepository::$secondFactorEvents, along with the existing projector and repository tests. Done means restored events produce a visible restored audit entry for RA(A)s, with matching tests and the related RA translation coordinated with OpenConext/Stepup-RA#531.
Written by the indexing model from the issue text.
Description
Problem
After PR #635, an identity that is forgotten and later restored still ends the audit log on deprovisioned. Identity::restore() emits IdentityRestoredEvent, but Middleware does not map that event to an audit-log action and the event is also absent from AuditLogRepository::$secondFactorEvents.
Why this matters
For a live identity the terminal audit-log entry can read as if the account is still gone, because there is no matching restored entry after the earlier deprovisioned one.
Follow-up work
- add
IdentityRestoredEvent::class => "restored"to the audit-log action map in Middleware - include
IdentityRestoredEventin the audit-log query allowlist so the entry is visible to RA(A)s - add/update tests for projector + repository behavior
- add the RA-side translation alongside the work already started in OpenConext/Stepup-RA#531
References
- PR #635
- OpenConext/Stepup-RA#531
- Dominant language
- PHP
- Stars
- 3
- Forks
- 3
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenConext/Stepup-Middleware
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
OpenConext/Stepup-Middleware#607 ·
-
logging
Difficulty 3/5 1-2 days Newbie friendliness 35/100
OpenConext/Stepup-Middleware#582 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
OpenConext/Stepup-Middleware#559 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
OpenConext/Stepup-Middleware#537 ·
-
Recreate deprovidioned users on loginMay be free again @pablothedude claimed this 672 days ago, and no pull request is open. Opendeprovisioning middleware
OpenConext/Stepup-Middleware#525 · 1 assignee ·
All issues in OpenConext/Stepup-Middleware
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
area/import type/enhancement when/later
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
parime/glpi-iso27001-management#1165 ·
Maintainers usually reply within 1 day
-
15.0
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
opnsense/plugins#5976 · 1 comment ·
Maintainers usually reply within 1 day