Skip to content

feat(auth): attest task token context - #2

Merged
hongzexin merged 1 commit into
mainfrom
codex/task-context-attestation
Aug 14, 2026
Merged

feat(auth): attest task token context#2
hongzexin merged 1 commit into
mainfrom
codex/task-context-attestation

Conversation

@hongzexin

Copy link
Copy Markdown

Summary

  • add an authenticated /api/task-context attestation endpoint
  • only accept server-stamped mat_ task-token identity
  • reject PAT/JWT and incomplete task context

Why

The production Codex pool broker must validate user/task/agent/workspace binding without trusting client-provided headers.

Tests

  • GOPROXY=https://goproxy.cn,direct go test ./internal/handler -run ^TestGetTaskContext -count=1
  • GOPROXY=https://goproxy.cn,direct go test ./cmd/server -run ^$ -count=1

@hongzexin
hongzexin merged commit 61fcfd7 into main Aug 14, 2026
13 checks passed
@hongzexin
hongzexin deleted the codex/task-context-attestation branch August 14, 2026 10:16
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