Skip to content

feat: mark remote run execution as trusted#48

Merged
Theauxm merged 1 commit intomainfrom
feat/api-auth-hardening
Apr 15, 2026
Merged

feat: mark remote run execution as trusted#48
Theauxm merged 1 commit intomainfrom
feat/api-auth-hardening

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Apr 15, 2026

Summary

  • Wraps executionService.RunAsync in TraxRequestHandler with ITrustedExecutionScope.BeginTrusted("scheduler.remote-run") so the mediator's per-train authorization check is skipped for work the scheduler dispatches.
  • Remote job submissions were already authorized at the original API submission point; re-checking here would require threading the submitter's principal across process boundaries for no additional safety.
  • Request-handler unit and integration tests updated to register the new ITrustedExecutionScope dependency.

Depends on

Test plan

  • dotnet build zero warnings
  • TraxRequestHandlerTests (unit) + RemoteRunExecutionTests (integration) green once Mediator package is published with ITrustedExecutionScope

Wraps the executionService.RunAsync call inside TraxRequestHandler in
ITrustedExecutionScope.BeginTrusted("scheduler.remote-run") so the
mediator's per-train authorization check is skipped for work the
scheduler dispatches. Remote job submissions were already authorized
at the original API submission point; re-checking here would require
carrying the submitter's principal across process boundaries for no
additional safety benefit.

Adjusts the request-handler unit and integration tests to register
the new ITrustedExecutionScope dependency.
@Theauxm Theauxm merged commit 27f66e4 into main Apr 15, 2026
1 of 2 checks passed
@Theauxm Theauxm deleted the feat/api-auth-hardening branch April 15, 2026 17:40
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Apr 15, 2026

This PR is included in version 1.27.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant