# The key pasted into a ticket

> When anyone pastes a password or an API key, hide it, ask them to rotate it and alert security.

Canonical: https://www.decimal.app/automations/credential-in-ticket · Last reviewed: 2026-09-23

## When

New message: Anyone adds a message or internal note to a ticket.

## Instructions

Read the new message and its attachments. Look for anything that works as a credential: API keys, access tokens, passwords, private keys, connection strings, session cookies.

If you find one:
1. Redact it from the message.
2. Add an internal note saying what kind of credential it was and who posted it. Never repeat the secret.
3. Tag the ticket "credential-exposed".
4. If a customer posted it, reply asking them to rotate it now, and to use our secure upload link for anything sensitive in future.
5. Post to #security with the ticket link, the credential type and the customer.

If the message only talks about a credential without including one, do nothing.

## Tools to turn on

- **Ticket actions**: Read tickets, Redact messages, Add internal notes, Tag tickets, Reply to customers
- **Slack**: Post messages

## How a run goes

- **Reads every new message**: Including notes from your own team and text inside attachments.
- **Decides if it’s a real secret**: A key that would work, not the word “password” in a sentence.
- **Contains it**: Redacts the message, notes what it was and tags the ticket.
- **Gets it rotated**: Asks the customer to rotate the key and tells security who and where.

---

Decimal · Book a demo: https://cal.com/decimal-demo/30m · Markdown index: https://www.decimal.app/llms.txt
