跳到主内容
@wquguru
精选75Avi Chawla技巧与观点

Vibe coding 安全新解法:Retool 统一管控 AI 生成应用权限

Vibe coding has a new problem now:

原文
发到 X

Vibe coding has a new problem now:

Vibe coding 现在面临一个新问题:

Employees are building internal tools with AI app builders, and many of those tools are open to anyone who finds the link.

员工正在使用 AI 应用构建器开发内部工具,其中许多工具对任何找到链接的人开放。

Earlier this year, RedAccess found about 5,000 apps made with popular AI app builders exposing company data to anyone who found them, including a Brazilian bank's internal financials.

今年早些时候,RedAccess 发现约有 5,000 款使用流行 AI 应用构建器制作的应用程序将公司数据暴露给任何找到它们的人,包括一家巴西银行的内部财务数据。

When an agent does add an access check, it writes it inside the app it's building. Do that across ten tools and three agents, and you get ten versions of the same rule that nobody can see all at once.

当代理确实添加访问检查时,它会将检查写入它所构建的应用程序中。如果在十个工具和三个代理上都这样做,你就会得到同一规则的十个版本,而没有人能一次性看到所有版本。

A better model doesn't fix this. Even a perfect check is still stuck inside one app, and the next app needs its own.

更好的模型并不能解决这个问题。即使是一个完美的检查仍然被困在一个应用程序中,而下一个应用程序需要自己的检查。

So I gave Claude Code, Codex and Cursor the same prompt to build an internal tool, a table of employee salaries from one Postgres database.

因此,我给 Claude Code、Codex 和 Cursor 相同的提示来构建一个内部工具,即从单个 Postgres 数据库中提取的员工薪资表。

I told all three to leave access out of the code, so every salary was visible to whoever opened the apps.

我告诉这三者不要在代码中包含访问控制,以便任何打开应用程序的人都能看到所有薪资信息。

All three run on @retool, a platform for running AI-built internal apps in production, and read the database through one Retool connection. So I set access once, on that connection, with Retool's Data Access Enforcement.

这三者都在 @retool 上运行,这是一个用于在生产环境中运行 AI 构建的内部应用程序的平台,并通过一个 Retool 连接读取数据库。因此,我通过 Retool 的数据访问强制执行功能在该连接上设置了一次访问权限。

→ HR sees all 15 employees in every app → An Engineering Manager sees only the 5 on his team

→ HR 在每个应用中看到所有 15 名员工 → 工程经理只能看到他团队中的 5 人

I didn't change a line of code in any app. Retool adds the row filter where it connects to the database, so only the allowed rows ever come back.

我没有更改任何应用程序中的一行代码。Retool 在连接到数据库的地方添加行过滤器,因此只有允许的行才会返回。

The video below shows the builds, the policy and both logins side by side, and I worked with the team to put this together.

下面的视频展示了构建过程、策略以及两个登录界面的并排对比,我与团队一起完成了这项工作。

Agents can build the tools on their own now. Build wherever you're fastest, and run it on Retool, where access is set once for every app.

现在代理可以自行构建工具了。在你最快的地方构建,并在 Retool 上运行,在那里为每个应用程序设置一次访问权限。

Try it yourself here: https://fandf.co/4ir787a

在这里尝试一下:https://fandf.co/4ir787a

If you want to dive deeper, I wrote an article that covers everything you need to understand about what stands between AI-built apps and the data they read, and how to keep it the same no matter which agent wrote the code.

如果你想深入了解,我写了一篇文章,涵盖了你需要了解的所有关于 AI 构建的应用程序与其读取的数据之间的内容,以及如何确保无论哪个代理编写代码都保持一致。

Read it below.

在下面阅读。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件