# How Mercari Secures Enterprise Devin Management with Terraform and Automated Tools

DevFeed: [How Mercari Secures Enterprise Devin Management with Terraform and Automated Tools](<https://devfeed.tech/articles/enabling-ai-usage-at-mercari-with-secure-devin-management-56811.md>)

Original publisher: [Read original article](<https://engineering.mercari.com/en/blog/entry/20260403-secure-devin-management/>)

Author: Hiroki Akamatsu

Published: 2026-04-03T10:25:21Z

Content type: article

Language: en

Sources: [Mercari Engineering](<https://devfeed.tech/sources/mercari-engineering.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [ai security](<https://devfeed.tech/topics/ai-security.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Access Control](<https://devfeed.tech/topics/access-control.md>), [secret rotation](<https://devfeed.tech/topics/secret-rotation.md>), [Security](<https://devfeed.tech/topics/security.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [permission](<https://devfeed.tech/topics/permission.md>), [Terraform](<https://devfeed.tech/topics/terraform.md>), [audit](<https://devfeed.tech/topics/audit.md>), [okta](<https://devfeed.tech/topics/okta.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-security](<https://devfeed.tech/tags/ai-security.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [article](<https://devfeed.tech/tags/article.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [okta](<https://devfeed.tech/tags/okta.md>), [secret-rotation](<https://devfeed.tech/tags/secret-rotation.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

Mercari describes scaling Devin, an AI Agent service, across multiple teams by building a custom Terraform provider and automated management tools using the Devin Enterprise API. The approach addresses organizational permissions, secret rotation, API key lifecycle management, auditing, SSO, and team-level environment isolation.

## Source excerpt

Introduction Hello. I am @hi120ki, an AI Security engineer at Mercari. At Mercari, we have rolled out Devin, an AI Agent service, to multiple teams across the company. Devin is a service that can autonomously investigate code, write code, and submit pull requests. However, operating it at an organizational level comes with several management challenges. [...]