Spaces:
Paused
Paused
|
Download SECURITY.md from bxm0121/session-link-gen: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/spaces/bxm0121/session-link-gen/resolve/main/SECURITY.md
- Command line
-
hf download hf://spaces/bxm0121/session-link-gen/SECURITY.md
-
curl -L -o SECURITY.md https://huggingface.co/spaces/bxm0121/session-link-gen/resolve/main/SECURITY.md
1.18 kB
| # Security | |
| ## 已修复 | |
| - 同一 Checkout ID 的 approve 从最高 100 并发、3000 次降为单线程、最多 3 次;`blocked/expired/auth_error` 立即结束。 | |
| - approve 复用 Checkout 的同一个代理 SID/IP,不再切换到 Provider 代理。 | |
| - 任务日志只保存脱敏字段,不保存代理口令、Access Token、CDK 或完整支付 URL。 | |
| - 内存任务只保存运行元数据,不保存原始 Token、CDK 和代理配置。 | |
| - CDK 任务查询、暂停、停止必须携带与任务所有者匹配的 `X-CDK`。 | |
| - “最近结果”接口仅管理员可访问。 | |
| - Cookie 的 `Secure` 属性可通过 `OPENAI_PAY_COOKIE_SECURE=1` 开启。 | |
| ## 部署要求 | |
| 1. 生产环境必须在 Nginx/Caddy 后启用 HTTPS,并将 Uvicorn 仅监听 `127.0.0.1`。 | |
| 2. 管理密码、API Key、代理凭据只放在权限为 `0600` 的环境文件中,不提交 Git。 | |
| 3. SSH 使用密钥登录并启用 fail2ban;不要保留 root 密码公网登录。 | |
| 4. 定期轮换曾经出现在 HTTP/HAR、旧 systemd drop-in 或日志中的凭据。 | |
| 安全问题请连同复现步骤、日志时间和版本提交给仓库维护者,不要附带真实 Token 或代理密码。 | |