Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
RequestContextProcessorMonolog processor to extract request context parameters (identity_id,collab_person_id,second_factor_id,recovery_token_id,name_id,institution) from route attributes, query parameters, POST request bodies, and JSON command payloads, and append them to log records underextra.Example Log Entries
1. Identity authorization check (GET path parameter)
Request:
GET /authorization/may-self-vet-using-self-asserted-token/f9913e4b-8f50-4729-97b9-87ca9b33f0b8{ "message": "Checking self-asserted token authorization", "context": {}, "level": 200, "level_name": "INFO", "channel": "app", "datetime": "2026-10-07T09:19:55+00:00", "extra": { "request_id": "29e025623a3a1029ddbd5db71d1c064a", "application": "middleware", "server": "mw-dev.stepup.coin.surf.net", "identity_id": "f9913e4b-8f50-4729-97b9-87ca9b33f0b8" } }2. Deprovisioning (DELETE path parameter)
Request:
DELETE /deprovision/urn:collab:person:surfnet.nl:jdoe{ "message": "Deprovision request processed", "context": {}, "level": 200, "level_name": "INFO", "channel": "app", "datetime": "2026-10-07T09:19:55+00:00", "extra": { "request_id": "29e025623a3a1029ddbd5db71d1c064a", "application": "middleware", "server": "mw-dev.stepup.coin.surf.net", "collab_person_id": "urn:collab:person:surfnet.nl:jdoe" } }3. RA listing (Path parameters for Identity and Institution)
Request:
GET /ra-listing/f9913e4b-8f50-4729-97b9-87ca9b33f0b8/surfnet{ "message": "Retrieving RA listing", "context": {}, "level": 200, "level_name": "INFO", "channel": "app", "datetime": "2026-10-07T09:19:55+00:00", "extra": { "request_id": "29e025623a3a1029ddbd5db71d1c064a", "application": "middleware", "server": "mw-dev.stepup.coin.surf.net", "identity_id": "f9913e4b-8f50-4729-97b9-87ca9b33f0b8", "institution": "surfnet" } }4. Command execution (POST JSON payload)
Request:
POST /commandwith JSON payload containingid,name_id,institution{ "message": "Command received and handled", "context": {}, "level": 200, "level_name": "INFO", "channel": "app", "datetime": "2026-10-07T09:19:55+00:00", "extra": { "request_id": "29e025623a3a1029ddbd5db71d1c064a", "application": "middleware", "server": "mw-dev.stepup.coin.surf.net", "identity_id": "abb1b9f8-20c9-44a9-9694-176f00aaa618", "name_id": "29c41b84214b4fd5fb4d508e680fc921", "institution": "Example Org" } }