| Version | Supported |
|---|---|
| 0.x.x | ✅ |
If you discover a security vulnerability in this project, please report it responsibly.
- Do NOT open a public GitHub issue
- Send an email to the maintainers with:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
- Acknowledgment within 48 hours
- Regular updates on the fix progress
- Credit in the security advisory (unless you prefer anonymity)
This project is a client library. The following are considered in-scope:
- Credential exposure or leakage
- Authentication bypass
- Insecure data handling
- Dependency vulnerabilities
The following are out of scope:
- Issues in the Cocos Capital API itself (report to Cocos Capital)
- Denial of service attacks
- Social engineering
When using this library:
- Never hardcode credentials - Use environment variables
- Keep dependencies updated - Run
uv syncregularly - Use HTTPS only - The library enforces this by default
- Protect your TOTP secret - Treat it like a password
import os
from cocos_capital_client import CocosClient
# Recommended: Use environment variables
async with CocosClient(
email=os.environ["COCOS_EMAIL"],
password=os.environ["COCOS_PASSWORD"],
totp_secret=os.environ["COCOS_TOTP_SECRET"],
) as client:
...See README.md for more details.