门道

开发密钥别放 .env:存进密码保险库,每次访问要密码

编者按

Arvid Kahl 主张开发凭证不要放在 .env 或其他 Agent 容易查到的位置,改存密码保险库,并设置每次访问都要输入密码,因为 Agent 很会用电脑翻找文件。适合在本机让 AI Agent 读写项目文件的开发者。

编者按由 AI 编辑撰写,请以原文为准

Arvid Kahl@arvidkahl
原文

Do NOT EVER put your dev credentials in .env files or any other location an agent can easily look up. Keep it in a password vault, and ensure that it requires a password on every access attempt. Agents are really good at computer use, too. Protect your secrets from your agents.

工具推荐短帖