Repository navigation
Description
Prerequisite to the jobs/tasks batch of #864, under API epic #857. Keep an intentional visibility correction separate from the later response-byte-preserving conversion.
The current list_job_tasks handler serializes generated TaskInstance storage rows through Json(json!({ "tasks": tasks })). entities/task_instance/entity.yaml declares token_hash internal; the storage struct serializes it, while the generated TaskInstanceWire omits it. This is a source-level candidate to verify, not a claim of live exploitation.
Plan and acceptance:
- Reproduce the public task-list boundary in the existing Postgres-backed task-ledger harness using a synthetic active fallback credential. Assert that a viewer can read the permitted task fields but cannot receive
token_hash; observe the regression fail before a fix. Never capture real credential material. - Have an independent fresh-context verifier check the reproducer and scope before treating this as a confirmed finding.
- If confirmed, project the public task list through generated
TaskInstanceWire. Preserve the existingtasksenvelope, authorization behavior and every public field/value. Do not change entity columns, credential lifecycle, or the internal attempt-channel protocol. - Verify actual response bytes/fields before and after: only the internal field should disappear. Keep the regression in the existing harness and require unchanged contract artifacts unless a real contract correction is necessary.
- Run
make check, the appropriate real Postgres integration gate, and normal CI; complete the post-merge ledger.
Source anchors on main: rust/crates/er-server/src/lib.rs::list_job_tasks, entities/task_instance/read/by_job.yaml (returns: entity), and generated rust/crates/er-entities/src/task_instance.rs. No generated file should be edited by hand.
Activity
athvin commentedon Nov 9, 2026
Claimed — working in #1076 (draft). Closing that PR releases the claim. This verifies the task-list wire boundary before the jobs/tasks conversion in #864.
fix(api): omit internal credentials from public task listings
fix(ci): unbreak the kind probe and widen the ECR retention window AL…