Skip to content

Security: generator-labs/python-sdk

Security

SECURITY.md

Security Policy

Supported Versions

We release patches for security vulnerabilities for the following versions:

Version Supported
2.0.x
< 2.0

Reporting a Vulnerability

If you discover a security vulnerability within the Generator Labs Python SDK, please send an email to security@generatorlabs.com. All security vulnerabilities will be promptly addressed.

Please do not report security vulnerabilities through public GitHub issues.

What to Include

When reporting a vulnerability, please include:

  • Description of the vulnerability
  • Steps to reproduce the issue
  • Potential impact
  • Suggested fix (if any)

Response Timeline

  • Initial Response: Within 48 hours
  • Status Update: Within 5 business days
  • Fix Timeline: Varies by severity (Critical: < 7 days, High: < 14 days, Medium: < 30 days)

Security Best Practices

When using this SDK:

  1. Never commit credentials - Use environment variables or secure configuration management
  2. Keep dependencies updated - Regularly update to the latest version
  3. Use HTTPS only - The SDK enforces HTTPS for API calls
  4. Validate input - Sanitize user input before passing to API methods
  5. Monitor rate limits - Implement proper error handling for 429 responses
  6. Secure credential storage - Use secure vaults or environment variables for API credentials

Security Scanning

This SDK uses:

  • mypy strict mode - Static type checking for type safety
  • CodeQL - Automated security vulnerability scanning
  • Dependabot - Automated dependency updates and vulnerability alerts
  • pip audit - Security audits of dependencies

Run security checks locally:

pip install pip-audit
pip-audit                 # Check for known vulnerabilities
mypy generatorlabs --strict  # Run type checking

Known Security Considerations

  • API credentials (account SID and auth token) are transmitted using HTTP Basic Authentication over HTTPS
  • The SDK validates credential format but does not validate credential strength
  • Retry logic includes exponential backoff to prevent accidental DoS
  • Session objects maintain connection pooling for performance

There aren’t any published security advisories