Vigiar
1
0
Derivar
Você já tinha feito uma derivação do repositório cursor-plugin, anteriormente
0
cursor-plugin/rules/protect-api-key.mdc
2026-11-28 15:28:04 +02:00

10 linhas
750 B
Text

---
description: Keep the Interweb Mozambique API key out of code, logs, chat and git.
alwaysApply: true
---
- The Interweb Mozambique API key lives in the `INTERWEB_API_KEY` environment variable. Read it from there in code and in shell commands (`$INTERWEB_API_KEY`).
- Never print, echo or log the key, never paste it into the chat, and never write it into tracked files. To check it, run `test -n "$INTERWEB_API_KEY" && echo set || echo missing`.
- If a project needs a `.env` file, make sure `.env` is in `.gitignore` before writing to it.
- Never put the key in code that runs in a browser or a mobile app: calls to the API must come from a server.
- The API address is fixed: `https://api.interweb.co.mz`. Do not ask the user for another one.