etlmcp runs a filter over its logs to keep tokens, keys and one-time codes out of them. Before a log line is written, the filter replaces every query-string value with REDACTED unless its name is on a short safe list, replaces the values of OAuth and ad-platform credential fields, and replaces anything shaped like a known credential, such as a bearer token, a Stripe key or a Google access token. etlmcp's own API keys and tokens keep only their prefix. Two things are never logged at all: signed export download links and the bodies of Shopify webhooks.
Query strings: allowed by name, not blocked by name
Every URL that reaches a log has its query string rewritten pair by pair. A value is kept only when its parameter name is one of these: limit, start, end, pipeline_id, source_id, network, notice and v. Every other value becomes REDACTED, and a parameter with no = at all is replaced whole. If rewriting a query string fails, the entire string is replaced.
One-time links for email verification, password resets and invitations carry their tokens in the query string, and a platform that takes its OAuth code exchange as a GET request gets the code and the client secret in the URL. With an allow list, a parameter nobody anticipated is hidden by default instead of logged by accident.
For example, a request path ending in ?start=2026-11-01&token=abc123 is logged as ?start=2026-11-01&token=REDACTED.
Credential fields in any form
These field names are treated as secrets: access_token, refresh_token, id_token, client_secret, code, auth_code, code_verifier, fb_exchange_token, developer_token and appsecret_proof. Their values are replaced whether they appear as a JSON pair ("access_token": "…"), as a form or query pair (access_token=…), or as plain name=value text. A developer token is also caught in header form, in any letter case and with a hyphen, an underscore, a space or nothing between the two words (developer-token, developer_token, DeveloperToken), followed by a colon or an equals sign.
This matters most for Meta. etlmcp's Meta client adds the access token and the appsecret_proof signature to each request URL as query parameters, and HTTPX, the HTTP library etlmcp uses, writes an INFO line with the method and URL of each request it sends. Both names are caught twice, by the query-string allow list and by the field list.
Credential shapes
Some secrets are recognised by their shape, wherever they appear in a line:
| Credential | What is matched |
|---|---|
| Bearer tokens | the value after the word Bearer, as in an authorization header |
| Stripe | secret keys (sk_test_, sk_live_), restricted keys (rk_test_, rk_live_) and webhook signing secrets (whsec_) |
| AWS | access key ids starting AKIA, and temporary access key ids starting ASIA |
strings starting ya29. or 1//, which the code treats as OAuth access and refresh tokens |
|
| Shopify | strings starting shpat_, shpca_, shpss_, shppa_ or shprt_, which the code treats as Shopify access, refresh and app tokens |
Server settings that hold secrets are redacted when they appear as NAME=value text: the Stripe secret key and webhook secret, the Google, TikTok, LinkedIn and Shopify client or app secrets, and the AWS and export-storage access keys.
etlmcp's own credentials keep their prefix
API keys (etk_), OAuth access tokens (eto_) and refresh tokens (etr_) are cut down to their prefix: a key in a log line shows as etk_REDACTED. You can still tell which kind of credential a request used, but not which one. To manage keys, see API keys; for how long MCP tokens last, see token lifetimes.
Never logged at all
- Signed export download links. When a CSV export is kept in cloud storage, downloading it redirects you to a presigned link that expires. etlmcp creates that link for each download and neither logs nor stores it. See download links and expiry.
- Shopify webhook bodies. Shopify's mandatory privacy webhooks for a customer data request and a customer redaction can carry that customer's id, email address and phone number. etlmcp's Shopify webhook receiver never stores or logs a body. Its log lines name only the webhook topic and the store, or say that a signature did not verify.
Where the filter runs
The filter is attached when the web app starts and when the background worker starts. It sits on the web server's loggers, on the outbound HTTP client's logger, and on every handler that the root and web server loggers have at that moment, so application log lines that reach those handlers pass through it too. It never drops a line: it only rewrites the values in it.
Part of the same rule set also cleans the message a connector error carries when a platform call fails: the credential-field rules, the developer-token rule, the bearer-token and Shopify-token shapes and the TikTok, LinkedIn and Shopify secret settings. A connector's message passes through them when the error is raised, before a run records it. The query-string allow list and the Stripe, AWS, Google and etlmcp token rules apply to log lines only. The shared HTTP client also replaces any token it sent that the platform echoes back in an error message. That client never logs a response body, a header or a token.
What this does not cover
The filter works on patterns. A secret in a format not listed above, or in a parameter name that happens to be on the safe list is not recognised. When a log call passes its values separately from its message, only those values are checked, not the message text around them. The list above is the complete set of rules the code applies today.