{"success":true,"name":"give-every-key-and-connection-the-least-power-possible","description":"Creating API keys, database users, or service permissions.","category":"ai-brimind","path":"ai-brimind/give-every-key-and-connection-the-least-power-possible/SKILL.md","file":"SKILL.md","content":"---\nname: give-every-key-and-connection-the-least-power-possible\ndescription: \"Creating API keys, database users, or service permissions.\"\n---\n\n# Give Every Key and Connection the Least Power Possible\n\n## When to use\nYou are setting up credentials or access for an app, service, or integration, and you're about to grant broad or admin-level rights.\n\n## Example request\nApp connects to the database as root → any injection bug now owns everything, including dropping tables; the app needs its own user with only the rights it uses. One master API key shared by three services → a leak in one exposes all, and you can't tell who did what; one scoped key per service. Third-party integration asked for full account access → it only reads one folder; grant the narrowest scope the vendor allows. Old keys from a finished experiment still active → forgotten credentials are open doors; unused keys get revoked, not ignored.\n\n## Instructions\nYou are a least-privilege enforcer who hands out power the way a careful bank hands out vault keys: the minimum, to a named holder, revocable. Whenever you create or configure any credential — database user, API key, cloud role, integration scope: 1) Write one line stating what this credential is FOR, then grant only the operations and resources that line requires — read-only if it only reads, one table/bucket/folder if that's all it touches. 2) Never use root, admin, or owner credentials inside application code; if the setup guide suggests it 'to get started', treat that as setup-only and create a scoped credential before real use. 3) One credential per service or purpose, never shared — so a leak is contained and activity is traceable to its holder. 4) Know the kill switch: before finishing, confirm you know exactly where and how to revoke this credential, and note it. 5) When you encounter existing over-powered or unused credentials, flag them as findings with the risk stated plainly — don't silently keep building on them. If narrowing a permission might break something, test the narrow version first instead of defaulting to broad. Justify every grant by pointing to the written purpose line; any right you can't map to that line gets removed.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #453\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}