Skip to content

rustybuns: set redact_query_string in the upload once Alchemy passes it #605

Closed

Description

@QuinnsCode

Follow-up to #553. Alchemy 2.0.0-beta.77's Worker upload schema (from @distilled.cloud/cloudflare) has no redact_query_string in observability, so it gets dropped, and every script upload resets the flag to false. For now rustybuns deploy PATCHes script-settings after each deploy (packages/cli/src/redact.ts). That leaves a few seconds per deploy where query strings are logged, and a deploy without a CLOUDFLARE_API_TOKEN only warns.

Once Alchemy's WorkerObservability takes redactQueryString, emit it in gen/alchemy.ts and drop the post-deploy step.

Activity

  1. self-assigned this
    on Oct 11, 2026
  2. QuinnsCode commented on Oct 11, 2026

    @QuinnsCode
    OwnerAuthor

    Status 2026-10-11: still blocked.

    • Newest Alchemy is 2.0.0-beta.81 (we're on beta.77). It pins @distilled.cloud/cloudflare@1.0.0-rc.13.
    • rc.13 has redactQueryString on the script-settings schemas, but not on the upload's PutScriptMetadataObservability, which is what Alchemy's WorkerObservability is derived from. So it would still be dropped on upload, and the post-deploy PATCH in packages/cli/src/redact.ts stays.

    What to watch:

    1. @distilled.cloud/cloudflare: PutScriptMetadataObservability in src/services/workers.ts gaining redactQueryString. That package is generated from Cloudflare's API spec, so the real trigger may be Cloudflare adding redact_query_string to the upload metadata schema.
    2. An alchemy release pinning that distilled version. No Alchemy code change is needed, because the type flows straight through.

    Nobody needs to watch by hand: PR #714 adds a typecheck tripwire (apps/codesplitters/test/alchemy-redact.typecheck.ts) that fails the Alchemy bump PR once the field exists. When it fires, emit redactQueryString: true in gen/alchemy.ts, drop redact.ts / redactAfterDeploy / its test and the tripwire, deploy once and confirm the flag stays on after the upload, then close this.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions