Buckets:
AnonymousSpottedToad/candidate_bucket / preliminary /mappings /java /session_based_access_control /syndesisio_syndesis.json
| { | |
| "role_mappings": [ | |
| { | |
| "role": "Subject", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No in-repo client (UI/SDK/CLI) calls /api/v1/event/reservations or /api/v1/event/streams/{id}; grep over app/ finds only the server-side handlers. The caller (the Syndesis UI) lives outside this repo snapshot." | |
| }, | |
| { | |
| "role": "Authentication enforcer", | |
| "status": "present", | |
| "symbol": "handleRequest", | |
| "file": "app/server/runtime/src/main/java/io/syndesis/server/runtime/EventBusToServerSentEvents.java", | |
| "lines": "91", | |
| "notes": "Anonymous ServerSentEventHandler override registered in customize (EventBusToServerSentEvents.java:88) as an Undertow initial handler for /api/v1/event/streams, i.e. before the Spring Security servlet chain; it calls reservationCheck (:92) and only proceeds to the SSE handler when the subscription id (opaque reservation UUID in the URL) is valid, otherwise 404. A twin exists in EventBusToWebSocket.java:65." | |
| }, | |
| { | |
| "role": "Verifier", | |
| "status": "present", | |
| "symbol": "reservationCheck", | |
| "file": "app/server/runtime/src/main/java/io/syndesis/server/runtime/EventBusToServerSentEvents.java", | |
| "lines": "101", | |
| "notes": "Called from handleRequest (EventBusToServerSentEvents.java:92); extracts the subscription id from the URI, asks the reservation store via existsReservation (:136) and returns false with 404 when no open reservation matches. The principal is later taken from claimReservation in connected (:63)." | |
| }, | |
| { | |
| "role": "Session manager", | |
| "status": "present", | |
| "symbol": "existsReservation", | |
| "file": "app/server/endpoint/src/main/java/io/syndesis/server/endpoint/v1/handler/events/EventReservationsHandler.java", | |
| "lines": "69", | |
| "notes": "Reached from reservationCheck (EventBusToServerSentEvents.java:136); returns the Reservation (holding the Principal) for the id from the in-memory ConcurrentHashMap reservedEventStreams (EventReservationsHandler.java:37). Reservations are created by reserveEventStream (:57, UUID.randomUUID, an authenticated POST) and removed by claimReservation (:65); no expiry (TODO at :36)." | |
| }, | |
| { | |
| "role": "Authorisation enforcer", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "On the event-stream path nothing authorises the principal: handleRequest/reservationCheck/connected only check reservation existence and log the principal (EventBusToServerSentEvents.java:69). Off-path: Spring Security authorizeRequests hasRole(\"AUTHENTICATED\") in configure (SecurityConfiguration.java:70) guards /api/v1/** servlet requests authenticated by header pre-auth (X-Forwarded-User, STATELESS), but the Undertow stream handler bypasses it." | |
| }, | |
| { | |
| "role": "Decider", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No authorisation decision on the traced reservation/stream path. Off-path, Spring's FilterSecurityInterceptor/AccessDecisionManager evaluates hasRole(\"AUTHENTICATED\") configured at SecurityConfiguration.java:70 for the servlet API, not for the stream handler." | |
| }, | |
| { | |
| "role": "Policy provider", | |
| "status": "missing", | |
| "symbol": "", | |
| "file": "", | |
| "lines": "", | |
| "notes": "No policy is consulted on the traced path. Off-path, the servlet API's policy is the antMatchers chain in configure (SecurityConfiguration.java:66-71) with ROLE_AUTHENTICATED granted to every header-authenticated user (SecurityConfiguration.java:90)." | |
| }, | |
| { | |
| "role": "System", | |
| "status": "present", | |
| "symbol": "connected", | |
| "file": "app/server/runtime/src/main/java/io/syndesis/server/runtime/EventBusToServerSentEvents.java", | |
| "lines": "60", | |
| "notes": "EventBusHandler.connected runs after handleRequest (:91) passes reservationCheck and super.handleRequest (:93); it claims the reservation (:63) and subscribes the SSE connection to the EventBus (:72) to stream events to the client." | |
| } | |
| ] | |
| } | |
Xet Storage Details
- Size:
- 4.13 kB
- Xet hash:
- 8241041daf6fbdff954401c5e1547b285d7cb28b415571ca8ce88ac9953985e1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.