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.
- Starts whenSomeone tells
@Merlinin#securitythat a secret leaked 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
- 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
@Merlinin#securitywith the secret and where it showed up. Teammates can add places that use it.Claude Code or Codex finds every place
acme/webuses the secret, rotates it in AWS Secrets Manager with the AWS CLI and replaces hard-coded copies with a reference to the secret.The thread gets the pull request and anything a person still has to do, like redeploying. The secret's value never goes into Slack, a commit or the pull request.
Mention @Merlin in #security with the secret and where it showed up. Teammates can add places that use it.
Claude Code or Codex finds every place acme/web uses the secret, rotates it in AWS Secrets Manager with the AWS CLI and replaces hard-coded copies with a reference to the secret.
The thread gets the pull request and anything a person still has to do, like redeploying. The secret's value never goes into Slack, a commit or the pull request.
Acme
Channels
general
eng
product
support-eng
data
security
Direct messages
Merlin
Dev
Omar
security
24
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.
- 01Read the alert in #security
- 02Search the code for the secret
- 03Ask who else uses it
- 04Rotate it with the AWS CLI
- 05Find the hard-coded copies
- 06Replace them with a reference
- 07Run the tests
- 08Open a pull request
- 09Post what needs a redeploy
With Merlin
One mention gets the secret rotated and the code fixed, and a person reviews and redeploys.
@Merlinin#securityAsked by Dev when the leak is spottedRotates it and fixes the code on Dev's MacBookAWS CLI and the checked-out repository
- 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.
- 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.
- 02Add Merlin to SlackIntegrationsInstall the Slack app and add Merlin to the channel you work in. A private channel needs
/invite @Merlin. - 03Sign in to the AWS CLIRuntimeSign it in on the machine that runs this, with a role that allows only what this job needs.
- 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.
- 05Keep your code on the machineRuntimeMerlin reads the code in a local project on the runtime, so keep the repository checked out there.
- 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.
- 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.
Once, when you paste it
- PromptYou paste the prompt to @Merlin
- GuidanceMerlin saves your rules as workspace guidance
Every time someone mentions Merlin in Slack
- IntegrationThe Slack app spots the mention
- RuntimeMerlin picks an available machine
- ContextThe run gathers context
- WorkClaude Code or Codex rotates the secret and fixes the code
- SteeringYour team steers the work in the thread
- ResultMerlin links the pull request in the thread
Related use cases
More IT tasks you can hand to Merlin.
- IntegrationsMemoryYour agent's MCP
IT
Look into a security alert
Mention Merlin under a security alert. It checks the user's recent sign-ins and devices in Okta and tells you whether it looks expected.
@Merlinin an alert's threadExpected or not, with the evidence - Integrations
IT
Check a Terraform change for risky access
Mention Merlin on a Terraform pull request. It comments on any public bucket, wide IAM policy or open security group the change adds.
@usemerlin-aion a Terraform pull requestA comment listing risky access - IntegrationsSkillsYour agent's MCP
IT
Find what a leaver still has
Delegate the offboarding issue once the account is suspended. Merlin checks what SSO does not cover and opens a sub-issue for each thing left to close.
Offboarding issue delegated to MerlinFindings per system and a sub-issue per fix
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.