You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "sshiv012 (via GitHub)" <gi...@apache.org> on 2026/10/21 22:57:33 UTC
[I] Agent service compile requests are rejected with 401 because no auth token is sent [texera]
sshiv012 opened a new issue, #9078:
URL: https://github.com/apache/texera/issues/9078
### What happened?
**Root cause:** `agent-service/src/api/compile-api.ts#compileWorkflowAsync` POSTs to `${WORKFLOW_COMPILING_SERVICE_ENDPOINT}/api/compile` with only `Content-Type`. Since #5199 / #5404, `WorkflowCompilationResource` (`@RolesAllowed(REGULAR, ADMIN)`) sits behind `JwtAuthFilter`, which returns 401 when no Bearer token is present. The agent client (added in #4495) was never updated.
```
Before: agent prepareStep -> POST /api/compile (no Authorization) -> 401 -> null -> agent sees no schemas / compile errors
After: agent prepareStep -> POST /api/compile (Bearer <delegate token>) -> 200 -> schemas + operatorErrors in context
```
The failure is silent: it is logged as `compilation failed` and the agent proceeds without output schemas.
Expected: the compile call forwards the delegating user's token, the same way `workflow-api.ts` (`createAuthHeaders`) and the execution tool already do.
Audit of the other agent-service HTTP calls:
| Call | Auth sent | Needs auth |
| --- | --- | --- |
| `/api/compile` (compile-api.ts) | no | **yes** |
| `/api/workflow/persist`, `/api/workflow/{wid}` (workflow-api.ts) | yes | yes |
| workflow execution (workflow-execution-tools.ts) | yes | yes |
| `/api/resources/operator-metadata` (backend-api.ts) | no | no (unannotated, public) |
### How to reproduce?
1. Deploy main with agent-service and workflow-compiling-service.
2. Start an agent on a workflow with at least one operator and send a message.
3. agent-service logs `CompileAPI ... status 401 ... compilation failed` on every step.
### Version/Branch
1.4.0-incubating-SNAPSHOT (main)
### Commit Hash (Optional)
3ba45ee5a
### Relevant log output
```shell
{"module":"CompileAPI","status":401,"statusText":"Unauthorized","msg":"compilation failed"}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Agent service compile requests are rejected with 401 because no auth token is sent [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9078:
URL: https://github.com/apache/texera/issues/9078#issuecomment-6329394664
<!-- texera:template-compliance -->
👋 Thanks for opening this issue, @sshiv012!
It looks like the issue description doesn't quite follow our template yet:
- This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see [CONTRIBUTING.md](https://github.com/apache/texera/blob/main/CONTRIBUTING.md) for the full contribution flow.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Agent service compile requests are rejected with 401 because no auth token is sent [texera]
Posted by "sshiv012 (via GitHub)" <gi...@apache.org>.
sshiv012 commented on issue #9078:
URL: https://github.com/apache/texera/issues/9078#issuecomment-6328434603
/take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Agent service compile requests are rejected with 401 because no auth token is sent [texera]
Posted by "mengw15 (via GitHub) via notifications" <no...@texera.apache.org>.
mengw15 closed issue #9078: Agent service compile requests are rejected with 401 because no auth token is sent
URL: https://github.com/apache/texera/issues/9078
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org