IT

Rotate a secret that leaked

Tell Merlin in Slack which secret leaked. It rotates it in AWS, moves the code off the old value and sends you the pull request.

@Merlin from now on, when someone in #security says a secret leaked, find every place in acme/web and its config that uses it. Rotate it in AWS Secrets Manager with the AWS CLI, replace any hard-coded copy with a reference to the secret and open a pull request. Reply in the thread with the link and anything a person still has to do, like redeploying. Never write a secret's value in Slack, a commit or the pull request.

#security
Get started for free
  1. Starts whenSomeone tells @Merlin in #security that a secret leaked
  2. Merlin worksClaude Code or Codex finds where the secret is used, rotates it in AWS Secrets Manager with the AWS CLI and updates the config
  3. You getA pull request with the config change, linked in the thread with anything a person still has to do

Tools

  • Slack
  • AWS CLI
  • GitHub

Capabilities

  • Integrations

How it works

From a leaked secret to a rotated one and a pull request.

Mention @Merlin in #security with the secret and where it showed up. Teammates can add places that use it.

Acme

Channels

general

eng

product

support-eng

data

security

Direct messages

Merlin

Dev

Omar

security

24

MessagesAdd canvasFiles

Today

Dev16:20

@Merlin the analytics database password is visible in a screenshot someone posted on a vendor's support forum. Can you rotate it?

Message #security

Before and after

A leaked secret gets rotated while the team is still talking about it.

Without Merlin

Someone drops what they're doing, rotates the secret by hand and hunts down every copy before something breaks.

  1. 01Read the alert in #security
  2. 02Search the code for the secret
  3. 03Ask who else uses it
  4. 04Rotate it with the AWS CLI
  5. 05Find the hard-coded copies
  6. 06Replace them with a reference
  7. 07Run the tests
  8. 08Open a pull request
  9. 09Post what needs a redeploy

With Merlin

One mention gets the secret rotated and the code fixed, and a person reviews and redeploys.

  1. @Merlin in #securityAsked by Dev when the leak is spotted
  2. Rotates it and fixes the code on Dev's MacBookAWS CLI and the checked-out repository
  3. Pull request linked in the threadWith what a person still has to do

Setup

Keep the code and an AWS role that can rotate on one machine, then report leaks in #security.

Set these up once and anyone in #security can hand a leaked secret to Merlin. A person still reviews the pull request and redeploys.

  1. 01Connect a machineRuntimeInstall the Merlin desktop app or CLI on a computer running Claude Code or Codex. You can also use a machine a teammate shares with your workspace.
  2. 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs /invite @Merlin.
  3. 03Sign in to the AWS CLIRuntimeSign it in on the machine that runs this, with a role that allows only what this job needs.
  4. 04Install the GitHub appIntegrationsPick the repositories Merlin can access, so it can read and link the pull requests there. Pushes use the machine owner's own Git access.
  5. 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
  6. 06Let the AWS role rotate your secretsRuntime

    Give the AWS CLI on that machine a role that can rotate your app's secrets in Secrets Manager and nothing wider. Secrets Manager only rotates a secret that has rotation set up, such as a database password with its rotation function.

  7. 07Paste the setup promptGuidanceAn owner or admin sends the prompt below to @Merlin once, and it becomes workspace guidance for every future run.

Prompt

Tell Merlin how to handle a leaked secret once.

@Merlin from now on, when someone in #security says a secret leaked, find every place in acme/web and its config that uses it. Rotate it in AWS Secrets Manager with the AWS CLI, replace any hard-coded copy with a reference to the secret and open a pull request. Reply in the thread with the link and anything a person still has to do, like redeploying. Never write a secret's value in Slack, a commit or the pull request.

#security

Once, when you paste it

  1. PromptYou paste the prompt to @Merlin
  2. GuidanceMerlin saves your rules as workspace guidance

Every time someone mentions Merlin in Slack

  1. IntegrationThe Slack app spots the mention
  2. RuntimeMerlin picks an available machine
  3. ContextThe run gathers context
  4. WorkClaude Code or Codex rotates the secret and fixes the code
  5. SteeringYour team steers the work in the thread
  6. ResultMerlin links the pull request in the thread

Bring your coding agents into the tools your team already uses.

Let your whole team hand work to Claude Code and Codex today. Connect one machine and add Merlin to Slack, Linear or GitHub. 14-day free trial, no API keys, no card.