pastesite.com New paste

Share YAML without breaking the indentation

Guide · updated October 2026 · 2 min read

YAML fails silently. Two spaces instead of four, one tab where a space belonged, or a colon inside an unquoted string, and the file that worked on your machine is invalid on the reader's. That is exactly the failure a paste prevents: the text arrives byte-for-byte, not re-rendered through a chat client that strips leading whitespace.

Why a paste beats pasting into chat

Chat apps collapse runs of spaces, convert tabs, apply smart punctuation and wrap long lines. All four break YAML. Even clients that offer a code block can mangle trailing spaces, which matter inside literal blocks (|). A paste link stores the text as typed, and the reader can copy from the raw endpoint if their editor needs it.

Round-trip a YAML paste

# get the exact file back
curl -s https://pastesite.com/raw/K8sMan1fest > deployment.yaml
diff deployment.yaml ~/project/deployment.yaml

Before sending a Kubernetes or compose file

Usually fine to shareRedact first
apiVersion, kind, metadata.nameSecret manifests, base64 "data" values
Container images and portsRegistry credentials, imagePullSecrets
Resource limits and probesCloud provider account ids, ARNs
Environment variable namesEnvironment variable values that are tokens
Volume names and mount pathsPVC names that reveal customer identities

Kubernetes Secrets are base64, not encrypted. Anyone reading the paste can decode them in one command, so treat data: blocks as plaintext credentials.

Common indentation bugs to check first

Choosing paste settings

Set the language to YAML for keys, strings and comments in colour. Config files rarely belong in a public feed, so mark the paste unlisted and give it an expiry. If the file contains anything that looks like a credential, replace it with a placeholder and add a password — then send the password in a different message.

Finding a secret after the fact? Rotate it. A paste may already have been read, cached, or forwarded, and deleting the link does not undo that. Create a YAML paste

Frequently asked questions

Does the paste convert tabs to spaces?

No. The text is stored exactly as pasted. If your editor wrote tabs, the paste keeps tabs — and a YAML parser will reject them, which is a useful signal rather than a paste bug.

Can I share a Kubernetes Secret safely?

Only if you have replaced the base64 values. A Secret is trivially decodable, so redact the data block and keep the structure.

Which YAML flavours are highlighted?

Any YAML text gets the same key/value/comment colouring. There is no schema awareness, so a Kubernetes manifest and a CI config are treated identically.

Can I compare two YAML files?

Yes — paste both versions into the text comparison tool, or paste the output of diff -u with the language set to Diff.