opyeb envmask

Sharing config safely on GitHub and Slack

2026-11-29 · 2 min read

One line: never paste the original. Share keys only, or a masked snippet built for the channel.

In an issue or pull request

Reproducing a problem needs the structure, not the values. The key names, masked values and the one failing line are usually enough.

GitHub Markdown shows code-block contents verbatim, and notification emails and the mobile app copy them too.

```dotenv
DB_HOST=db...ernal
DB_PASSWORD=EXAM...word
STRIPE_SECRET_KEY=sk_l...0000
```

Masked with envmask. 3 of 12 values hidden.

.env.example

Keys with no values is the safest form, and the next person setting up an environment needs nothing more.

Choose .env.example in the workbench export and nested structures become names such as DB_HOST.

Slack mrkdwn

Slack uses three backticks for a code block, *asterisks* for bold and _underscores_ for italics. Formatting does not apply inside a code block, so paste the masked values as they are.

Check the preview before sending: the edit history and search keep what you posted.

What never to do

These are the common mistakes.

Risky sharing
Do notWhy
Screenshot the whole .envValues live in pixels and are never found by search
Delete only some valuesOne missed key is a full leak
Send a password by DMIt stays in history, notifications and backups
Attach a log to a public issueLogs often contain tokens
Share a hash instead of a passwordShort values can be recovered by dictionary attack

Make it a team rule

Put a masked example in the sharing template and add a "config values are masked" checkbox to the pull request template.

Write down the incident order (rotate, clean, notify) so the next response is faster.

Questions

Is a masked value still risky?

Partial masking keeps the last characters, so a short value can be guessed. Use full masking anywhere public.

What if I already posted it?

Rotate the key first. Deleting the message does not reach notifications and backups.

Sources

Every example here can be pasted into the workbench as it is.

Open the workbench