Skip to content

log-tail: redact webhook credentials before export; deploy from CI - #715

Open
ZIJ wants to merge 1 commit into
mainfrom
collector-redaction
Open

log-tail: redact webhook credentials before export; deploy from CI#715
ZIJ wants to merge 1 commit into
mainfrom
collector-redaction

Conversation

@ZIJ

@ZIJ ZIJ commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Split out of #714 so the collector's redaction is live before any credential-bearing webhook URL exists. Merging this deploys opencomputer-log-tail-prod through the new workflow.

Behavior changed

  • request_url, console messages, and exception text have everything after /api/agent-webhooks/<id>/ or /v1/agent-webhooks/<id>/ replaced with redacted before export to Axiom.
  • New .github/workflows/deploy-log-tail.yml: deploys on push to main when cloudflare-workers/log-tail/** changes, or by workflow_dispatch, using the same CLOUDFLARE_API_TOKEN as the api-edge workflow (same account). AXIOM_TOKEN stays as the Worker secret it already is; --keep-vars.
  • New package manifest pinning wrangler so the test and deploy are the same commands locally and in CI.

Verification

Three collector tests pass, including a 502 record with no console logs, a malformed trailing path, and an emitter line quoting the path. wrangler deploy --dry-run against wrangler.prod.toml passes.

Release order

Merge this first, then diggerhq/blue#45, then #714, which contains the same collector changes and merges cleanly on top.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RKjbUpydN8ju2ZLxukbWLQ

The collector exported the full request path, and console messages that
quoted it, to Axiom. Agent webhook URLs are about to carry their credential
in the path (opencomputer#714, blue#45), so everything after the webhook id
is replaced with `redacted` in request_url, console messages, and exception
text. Regression tests cover a 502 record with no console logs, a malformed
trailing path, and an emitter that quoted the path.

Adds a package manifest and .github/workflows/deploy-log-tail.yml so the
collector deploys on push to main when its files change. Split out of #714
so redaction is live before the URLs exist.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RKjbUpydN8ju2ZLxukbWLQ
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