Inspector
The panel shows the HTTP and TCP records that passed through a tunnel. The address is http://127.0.0.1:4590/panel. Recording does not stop the request from being forwarded to the local application.
Read one request
-
Open the tunnel
tunl http 3000 -
Open the panel
At the top are the tunnel picker, the public address, and the edge rules. If there is more than one tunnel, the picker lists all of them.
-
Produce a request
Open the public address in the browser, or let a webhook arrive. The row appears on the left.
-
Pick a tab
- Summary: method, path, status, duration.
- Headers: request and response headers. Hidden ones are
***. - Raw: a text body.
- Binary: a body that is not text, as bytes.
-
Replay it
The same method, headers, and body go to the local endpoint. The new row carries a
replaytag. -
Edit it if you want
The method, path, query, headers, and body change. Then it is replayed. Replay does not happen if the path contains a space, a line break, a question mark, a hash, or a backslash.
The edit box opens the body kept on record. XML may be split across lines on the screen, but the box, copy, and the Raw tab use the original bytes.
Filter and inspector tools
Every condition in the box is searched for together. Quick-filter chips (All, 2xx, 4xx/5xx, POST, Replays) toggle common filters in one click, and the toolbar includes Pause (buffers incoming live hits without losing them), Export (downloads visible requests as HAR 1.2), Clear (purges the tunnel's request history), Copy cURL, and Re-sign & replay for webhook-verified tunnels. Press ? to view keyboard shortcuts (/, j/k, r, e, c, p).
method:POST path:/hook status:4xx dur:>50 size:>100 header:content-type=json replay:1
| Condition | Meaning |
|---|---|
method: | HTTP method (comma-separated, e.g. method:POST,PUT) |
path: | Path substring |
status: | Exact code, class (2xx, 4xx, 5xx), or comparison (>=400) |
dur:> | Duration, milliseconds |
size:> | Response size |
header: | Header name, or name=value |
error:1 | Requests with transport error or 4xx/5xx status |
replay:1 | Replayed requests only |
A word with no condition is searched in the path, the body, and the headers.
How much is kept
- The last 24 hours or 2000 records per tunnel. Whichever fills first.
- The panel list opens the newest 200 requests, then adds more from the live stream (at most 500). If the bodies are large, the list gets shorter: the response carries requests, newest first, until the stored bodies add up to about 3 MB (at least one request always comes). For a wider list, the API is
/api/tunnels/<id>/requests?limit=2000; the same budget applies there too. Older records that pass the budget do not appear in the list, and they stay on disk. - A body is at most 64 KB. The rest is cut and cannot be replayed without editing it.
- The file is
adit-inspect.db. The record stays even if the same name connects again. - A binary body stays in the record. The panel shows it together with the byte count.
What happens to secrets
Before the record is written to disk, password-like values are replaced with *** in four places: headers, the path, the query, and the body. The panel shows the same masked record.
- Headers: the value of
Authorization,Proxy-Authorization,Cookie,Set-Cookie, and of a header whose name containstoken,secret,password,api-key,credential, orsession. - Query and body, by field name: the value of a field whose name contains one of
token,secret,password,passwd,passphrase,apikey,accesskey,privatekey,credential,session,sessid,authorization,signature,jwt,passcode,cardnumber,cvv,cvc(orparola,sifre,şifre,belirtec,belirteç); also ones that containcookie,bearer,verifier,assertion,samlresponse,mnemonic,seedphrase,ccnumber, andverificationcode,authcode,mfacode,smscode,securitycode,recoverycode,backupcode,resetcode; ones whose exact name ispwd,pass,auth,sig,otp,totp,hotp,pin,ssn, orsid; and a barekeyin the query. Case,-,_,., spaces, and brackets do not change the name:api-key,API_KEY, anduser[apiKey]are the same. - Fields whose name ends in
code: names such ascode,country_code, andpromo_codecan carry a secret (an OAuth code) or an ordinary value (a country, a status code). So the value is hidden only when it looks like a token (16–2048 characters, no spaces, text that contains both letters and digits):"code": "4/0AX4XfWh..."is hidden,"country_code": "TR"and"code": 404stay. Values that are not text (a number, an array, an object) do not enter this rule. - Formats that are read: JSON (numbers such as
"max_tokens": 100and true/false stay; only text values are hidden),application/x-www-form-urlencoded,multipart/form-data(not file fields, only form fields), and XML (element text, attributes, and CDATA).Content-Typesays the format; if it does not, the first character of the body is looked at. - The value itself, in any field: a JWT, Stripe (
sk_live_,rk_live_...), GitHub (ghp_,github_pat_...), an AWS access key id (AKIA...), Slack (xox...) tokens, and PEM private key blocks. - Path: services that put the token inside the address, and the value shapes above: a Telegram bot (
/bot123456789:token/sendMessage; a bot token that sits somewhere else on the bot's own webhook address, such as/webhook/123456789:token, too), a Discord webhook (/webhooks/number/token), a Slack incoming webhook (/services/T.../B.../token), a Microsoft Teams incoming webhook (/IncomingWebhook/...), Zapier (/hooks/catch/number/code), IFTTT Maker (/with/key/key), Mattermost (/hooks/plus 26 characters), a Lark or Feishu custom bot (/open-apis/bot/v2/hook/code), and a JWT, Stripe, GitHub, AWS, or Slack token that appears in the path. The part that identifies the account (the bot or webhook number) stays, and the token becomes***. - A segment in the path that looks random: a token from a service whose name we do not know is caught too: a path segment of 32–512 characters, containing only letters, digits,
-, and_, carrying uppercase, lowercase, and a digit, and distributed like a random string, becomes***. Readable names (camelCaseorsnake_caseidentifiers, titles written with hyphens), hexadecimal digests, UUIDs, and dotted file names stay. There are two costs: about 1 percent of random tokens are not noticed, and long random-looking ids such as a Google Drive file id are hidden even when they are not secrets. - A compressed body: request and response bodies that arrive with
Content-Encodingare opened and read for the record:gzip(includingx-gzip),deflate(a zlib wrapper or a raw stream), andbr(Brotli). Encodings in a row, such asgzip, br, are opened too (at most 3 layers, at most one Brotli). If the Brotli window is larger than 4 MB, the body is not opened and is not kept, as below. If a secret is inside, the record is stored as opened and masked text (at most 128 KB; the text of a stream the capture cut in the middle counts as cut too). If there is no secret, the compressed bytes stay as they are. If the header says compressed but the body is plain text, it is scanned as text. The bytes that go to the visitor and to the local application never change. - An encoding that cannot be read: a body that arrives as
zstd,aes128gcm,compress, an unknown name, more than three layers, or two Brotli layers is not kept, because what is inside cannot be known. In the record and in the panel a line stands in its place, such as[Content-Encoding: zstd; gövde okunamadığı için saklanmadı, 1234 bayt]. The line begins with[Content-Encoding: zstd; gövde okunamadığı için saklanmadı]. Replay sends this body from the server's memory; after the server restarts, this request is not replayed until you write its body (409). - Replay: the real values live only in the server's memory, for the last 4096 requests and at most 16 MB. After the server restarts, the headers of an old request are not sent; if the path, the query, or the body has a masked value, replay is refused with
409and you are asked to write that part yourself in the edit box. Sending the mask (***) as it is is refused too; the value you wrote is what goes. If the real value is still in the server's memory, changing one field in the box is enough: the path, query, and body you did not change go in their real form, and the mask does not. A body you type into the box by hand is plain text; if the original request carriedContent-Encoding, that header is dropped on replay. - The
adit-inspect.dbfile is created so that only the server account can read it (0600 on Linux), and the trace of deleted rows is cleaned out of the file too. Records written by an older version (and records from before a version whose masking rules grew) are scanned and masked on first open; on a large record file this can take a few seconds, and the file is compacted afterwards.
What is not hidden
This list is not complete; the following are written as they are:
- Short or readable information in the path of a service not listed above:
/reset/9f3a...,/invite/ada-2024. A path cannot be split into "id" and "secret" by its name alone; only long segments that look random, and values whose shape is a token (JWT, Stripe...), are hidden. If you know such a path, hide it with--mask-path(below). - A secret under an innocent name:
{"note": "my password abc123"}. If the value is not recognized by its name or its shape, there is no clue; if you know the name, add it with--mask-field. Names that end incodeare hidden when the value looks like a token; a code that does not look like a token ("code": "123456") stays. - Uncompressed binary bodies (an image, a file) are written as they are; the panel shows them with the byte count.
- Plain-text bodies that carry no field name (free text that is not in the form
password=...).
If you do not want any of this written to disk, take the record in memory only with aditd --inspect-memory; it is deleted when the server restarts. If you know which field or path is a secret, give your own rules below.
Your own rules
The built-in rules cannot know every service. Name a field or a path shape you know when aditd starts. The rules are added to the built-in ones; they do not replace them.
aditd --mask-field customer_ref,X-Tenant-Key --mask-path '/invite/([A-Za-z0-9]+)' --mask-path 'hook-[0-9a-f]{6}'
--mask-field(ADIT_MASK_FIELDS, comma-separated): field and header names whose value is always hidden. It applies in the query, in a form, in JSON, XML, and a multipart body, and in headers. Case and-,_,., spaces, and brackets do not change the name (customer_refandCustomer-Refare the same), but the name matches exactly:customer_refdoes not hide acustomer_referencefield or amy_customer_reffield. The value is hidden whatever it is; the "if it looks like a token" condition is not applied.--mask-path(ADIT_MASK_PATHS, one expression per line): a Go regular expression that finds the part of the path to hide. The part group 1 matches becomes***; if there is no group, the whole match does. Example: with/invite/([A-Za-z0-9]+), the path/invite/Zk3Ab9/acceptis recorded as/invite/***/accept. The flag may be given more than once. Quote the expression so your shell does not interpret the parentheses and the star.- At most 64 rules are given, each at most 512 bytes. An invalid name or expression stops the server before it opens and says what the error is.
- When the rules change, old records in the store are scanned again with the new rules as the server starts, and the file is compacted (a few seconds on a large file). Removing a rule does not bring back a record that was masked up to that day.
- The bytes that go to the visitor and to the local application do not change. Replay sends these values from the server's memory only too; after the server restarts, the same
409rule applies.
The rules are read when the server starts; changing them on a running server requires a restart. In a Windows service the flags are given after the -- mark: aditd service install --name aditd -- --mask-field customer_ref --mask-path '/invite/([A-Za-z0-9]+)'. In Docker, use the environment variable; path expressions are written line by line: -e ADIT_MASK_FIELDS=customer_ref -e "ADIT_MASK_PATHS=$(printf '/invite/([A-Za-z0-9]+)\nhook-[0-9a-f]{6}')".
Durations and traffic
The Status page shows endpoint settings, per-tunnel traffic bytes (hover for in/out breakdown), and the p50 / p95 duration from recent records. If there is no request, the duration line is empty. Offline reserved names are listed too and can be released by the operator.
What it is used for
- Take a webhook from the provider once and try it again locally.
- Keep the request that produced an error and send the same body after the code is fixed.
- Change a header or the path and try that branch of the application.