Config files are one of the easiest ways to leak a secret. An nginx block, a docker-compose.yml, or a .env example often carries passwords, API keys, or internal hostnames. Before you share one as a link, clean it up.
Redact before you share
- Passwords and API keys — replace with
REDACTEDor a placeholder. - Connection strings and tokens — strip the credentials portion.
- Internal hostnames and IPs — swap for
example.comstyle placeholders if the snippet is going public.
Then share it as a link
- Paste the cleaned config into the code share tool.
- Pick the language (YAML, JSON, or plain text) and create the link.
- Send it for review — formatting and indentation stay exactly right, which matters a lot for YAML.
Why a link beats a paste
Config formats are whitespace-sensitive; a chat paste that eats indentation can change the meaning. A shared snippet preserves it exactly and gives the reader a raw link to copy from cleanly. The same "redact first" rule applies when you share a screenshot. Free, no account, and unlisted links.