Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /mosip_registration.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The caller (registration client / other MOSIP services sending the Authorization cookie token) lives outside this repo; only tests call the secured Vert.x routes here." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "Credential-type rule (plan section 6): the only wired token check is a MOSIP Authorization-cookie JWT handled by validateToken (MosipRouter.java:111) -> kernel auth-adapter VertxAuthenticationProvider.addAuthFilter (MosipRouter.java:113). Nothing in the repo shows that this resolves an opaque id against server-side session state, so there is no session enforcer." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "The token is a JWT verified inside the kernel auth-adapter by addAuthFilter (MosipRouter.java:113). The repo contains no configuration or code showing a server-side session lookup or introspection on this path. TokenValidator.validate (TokenValidator.java:49) does a remote GET to the TOKENVALIDATE URL, but only tests call it, so it is unwired." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo session store was found, and nothing shows a server-side session lookup on the wired path. The JWT flow is validateToken (MosipRouter.java:111) -> addAuthFilter (MosipRouter.java:113, kernel auth-adapter), which cannot be shown to be more than stateless JWT validation." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "present", | |
| "symbol": "validateToken", | |
| "file": "registration-processor/registration-processor-core/src/main/java/io/mosip/registration/processor/core/abstractverticle/MosipRouter.java", | |
| "lines": "111", | |
| "notes": "validateToken in MosipRouter (MosipRouter.java:111) is registered before every secured route (MosipRouter.java:69/80; PacketReceiverStage.java:133). It translates the request path into the required role list via tokenValidator.getRole(url) and passes that list to addAuthFilter (line 113), so the stage handler only runs if the role check passes. This role does not depend on the credential type, so it is kept although the session-side roles are missing." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "external", | |
| "symbol": "addAuthFilter", | |
| "file": "registration-processor/registration-processor-core/src/main/java/io/mosip/registration/processor/core/abstractverticle/MosipRouter.java", | |
| "lines": "113", | |
| "notes": "Called by validateToken (MosipRouter.java:113) with the allowed roles. The kernel VertxAuthenticationProvider compares the JWT principal's roles with them and fails the request if they do not match." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "present", | |
| "symbol": "getRole", | |
| "file": "registration-processor/registration-processor-core/src/main/java/io/mosip/registration/processor/core/token/validation/TokenValidator.java", | |
| "lines": "107", | |
| "notes": "Called from validateToken (MosipRouter.java:113); TokenValidator.getRole maps the URL (receiver, securezone, workflowaction, ...) to the allowed roles from the APIAuthorityList enum (core/constant/APIAuthorityList.java). Spring controllers with @PreAuthorize + AuthorizedRolesDto form a separate flow, not used." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "processURL", | |
| "file": "registration-processor/init/registration-processor-packet-receiver-stage/src/main/java/io/mosip/registration/processor/packet/receiver/stage/PacketReceiverStage.java", | |
| "lines": "195", | |
| "notes": "PacketReceiverStage.routes registers router.handler(this::processURL, this::processPacket, this::failure) (PacketReceiverStage.java:133), so processURL (then processPacket at line 162) runs only after validateToken passes; it receives the uploaded registration packet." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.21 kB
- Xet hash:
- 64ff3752b79aa4336a60739f8141dd5f8e762966c337da0dfde3f0a49c30bb7e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.