Skip to main content
LumenWipe is non-custodial and keeps no record of who closed which account. The API’s logs follow from that: they exist to find and fix failures, and they are written so they cannot be used to reconstruct a close.

Request ids

Every API response carries an X-Request-Id header, and every error body repeats it as error.requestId. The id is generated by the API for each request; a value sent by the caller is ignored. The web app shows it as a reference beside a failed close, and @lumenwipe/sdk exposes it as LumenWipeApiError.requestId. Quote it when you report a problem: it is the key to the one log line written for that request.

What is logged

The API writes one JSON object per line to standard output. Cloud Run forwards each line to Cloud Logging, which reads the severity field to classify the entry (DEBUG, INFO, WARNING, ERROR or CRITICAL). Each request produces one line when its response is sent: Failures inside a request add lines with a message, the error’s stack and the same requestId. The service also logs its own start-up and degraded-dependency messages.

Key lifecycle lines

Creating, rotating or revoking an API key, through the operator API or through a wallet session, writes one more line from the audit logger, success or failure: Notes:
  • The operator API is protected by one shared token, so actor cannot say which operator acted; it is always admin.
  • Wallet addresses in actor and owner follow the address rule below: first four and last four characters plus a keyed hash. The hash matches an actor across lines only while LOG_HASH_KEY is the same; without it each instance and each restart uses its own random key, so stable correlation across instances requires setting LOG_HASH_KEY.
  • The owner label on the operator API is free text. Do not put personal data in it.
  • A rejected operator token, a missing wallet session and an invalid request body are not lifecycle actions and get no such line; the request’s access line records them.
  • The raw key, the full key hash and session or operator tokens are never written.

What a key record keeps

Besides its hash, owner and dates, a self-serve key stores the label and networks its owner chose and a lastUsedAt time, written at most once a minute. The label is free text chosen by the owner; do not put personal data in it. Usage is kept per key as daily counts only: successful requests and requests refused with 429. No request path, account address or client IP is stored with a key; the per-route breakdown stays per owner, as before. Only the wallet that owns a key can list its counts.

What is never logged

  • Request or response bodies.
  • Memos and deposit tags.
  • The destination of an exchange close. Any address that belongs to a listed exchange is written as the fixed token [exchange], with no prefix, suffix or hash.
  • Secret keys, bearer tokens and signed transaction envelopes.
  • Client IP addresses. The platform’s own request log is the only place an address is recorded, under the platform’s own policy. The web proxy’s daily rate-limit counters hold an IP only as the first 16 hex characters of an HMAC-SHA-256 of the route, the UTC day and the IP, under a key held by the operator, so the address cannot be recovered by enumerating IPs, the value differs per route and per day, and each counter expires within a day. The playground’s counters hold it the same way under the playground’s own key, and a failure to count is logged as the route and the error’s name only.

How addresses appear

Any other account address that reaches a log line is cut to its first four and last four characters, followed by a short keyed hash, for example GABC...WXYZ~1a2b3c4d. The hash lets two lines about the same address be matched without storing it, and it cannot be reversed to the address. It is derived with a key held by the operator, so it means nothing outside the deployment that wrote it.

How the policy is enforced

The rules are applied where lines are written, not left to each call site. Before a line leaves the process, the logger replaces secret-shaped strings, bearer tokens, long encoded blobs and full addresses as described above, and removes any memo the request itself carried, including one inside a signed envelope. Route patterns are logged instead of paths so that addresses in a URL never reach the line. Automated tests run a close that fails at every step and assert that no full address, memo, secret-shaped string or body appears in any line.

Retention and access

Logs go to standard output, Cloud Run forwards them to Cloud Logging, and retention is that log bucket’s setting. The default bucket keeps entries for 30 days unless the operator changes it. Reading them requires logging permission on the Google Cloud project that runs the API; nobody else, including API integrators, can read them.

Page analytics

The logs above are the API’s. The web app separately reports page views to two analytics tools. Vercel Web Analytics is loaded from the document every root layout renders (apps/web/app/root-document.tsx). Umami Cloud is loaded only from the marketing root layouts (apps/web/app/(marketing)/layout.tsx and apps/web/app/(marketing-es)/layout.tsx, through apps/web/components/analytics/UmamiAnalytics.tsx). Its tracker is a pinned copy of Umami’s script served from this site (apps/web/public/a/), so no third-party code runs on the site; only the page-view beacons leave it, to Umami’s collector: Umami never loads on the app (/mainnet, /testnet and every step under them: analyze, review, execute, allowances, complete and receipts), the API keys page, the cosign station or a 404, which are the pages where a wallet connects, a secret key can be entered or a transaction is signed. Those pages keep a Content Security Policy that allows no Umami host. On the marketing pages that carry the Umami tag, the only Umami origin the policy allows is its collector (https://gateway.umami.is, in connect-src); the tracker itself runs as a same-origin script. Every address is redacted in the browser before an event is sent (apps/web/lib/analytics/redact.ts):
  • The query string and the fragment are dropped, so a parameter such as ?source= or ?address= never reaches either tool.
  • A saved receipt’s id is replaced with [id]: /mainnet/receipt/<id> is reported as /mainnet/receipt/[id].
For Umami, the page the visitor came from is redacted the same way, and its script is also configured to leave out the query and the fragment itself (data-exclude-search, data-exclude-hash). The build refuses a marketing page that loads Umami without those settings and the redaction hook. Page titles are fixed text and never contain an address. The web app sends no custom events, so no account address, transaction data, memo or key reaches either tool.

Updating the pinned Umami tracker

Fetch https://cloud.umami.is/script.js, put the license comment of the current copy on its first line with the new fetch date and SHA-256, and save it as apps/web/public/a/u-<first 12 hex characters of the new file's SHA-256>.js in place of the old file. Then point UMAMI_SCRIPT in apps/web/config/marketing-csp.mjs and the license file at the new name, and update both pins in apps/web/tests/unit/umami-tracker-pin.test.ts. Read the diff of the script itself before committing: the pin exists so that a change in it is reviewed.