Skip to content

Security: questionjie-max/mixcode

Security

SECURITY.md

Security / 安全

MixCode 是一个会调用外部模型 provider 的早期原型。请把 prompt、输出和 API key 都当作敏感信息处理。

MixCode is an early prototype that calls external model providers. Treat prompts, outputs, and API keys as sensitive.

不要提交密钥 / Do Not Commit Secrets

不要提交:

Never commit:

  • API keys
  • .env files
  • Local config files
  • Database files
  • Private prompts or logs
  • Personal file paths

建议把真实配置保存在本地,例如:

Use local configuration such as:

~/.mixcode/mixcode.json

文档示例只能使用明显占位符。

Documentation examples should use obvious placeholders only.

sk-ant-...
sk-...

发布前检查 / Before Publishing

提交前先运行一次密钥扫描:

Run a secret scan before committing:

rg --hidden "sk-|sk-ant-|apiKey|Authorization|Bearer|/Users/|password|secret|token" .

请人工检查扫描结果。有些命中可能只是文档占位符或源码字段名。

Review any matches manually. Some matches may be harmless documentation placeholders or source code field names.

报告安全问题 / Reporting Security Issues

如果发现密钥泄露或安全漏洞,请不要直接开公开 issue。

Please do not open public issues for leaked secrets or vulnerabilities.

如果这个项目后续进入更成熟阶段,会在这里补充私密安全联系方式。

If this project grows beyond the early experiment stage, a private security contact will be added here.

There aren't any published security advisories