Security
bunqueue takes security seriously. This document outlines our security practices and how to report vulnerabilities.
Reporting Vulnerabilities
Do not open a public issue for security vulnerabilities.
Please report security issues to: security@bunqueue.dev
Or use GitHub’s private vulnerability reporting:
- Go to the Security tab
- Click “Report a vulnerability”
- Provide details about the issue
We will respond within 48 hours and work with you to understand and resolve the issue.
Security Features
Authentication
# Enable authenticationAUTH_TOKENS=token1,token2,token3 bunqueue start- Token-based authentication for TCP and HTTP
- Tokens stored in environment variables (not in config files)
- Failed auth attempts are logged
Rate Limiting
# Limit requests per IPbunqueue rate-limit set my-queue 100- Per-queue rate limiting
- Per-IP rate limiting on HTTP API
- Configurable limits and windows
Data Protection
- Job data stored in SQLite with file permissions
- No sensitive data in logs (redacted by default)
- S3 backups support encryption at rest
Network Security
# Bind to localhost onlyHOST=127.0.0.1 bunqueue start
# Use behind a reverse proxy# nginx, Caddy, or cloud load balancerBest Practices
Production Deployment
-
Use authentication
Terminal window AUTH_TOKENS=$(openssl rand -hex 32) bunqueue start -
Bind to localhost
Terminal window HOST=127.0.0.1 bunqueue start -
Use a reverse proxy
server {listen 443 ssl;location / {proxy_pass http://127.0.0.1:6790;}} -
Set file permissions
Terminal window chmod 600 ./data/queue.db -
Enable S3 backup encryption
Terminal window S3_BACKUP_ENABLED=1# Use S3 server-side encryption
Job Data
- Never store passwords or API keys in job data
- Use references to secrets stored elsewhere
- Sanitize user input before adding to jobs
// ❌ Badawait queue.add('task', { apiKey: 'secret123' });
// ✅ Goodawait queue.add('task', { secretRef: 'vault:api-key' });Monitoring
- Monitor failed authentication attempts
- Set up alerts for unusual job patterns
- Review logs regularly
Supported Versions
| Version | Supported |
|---|---|
| 1.6.x | ✅ |
| 1.5.x | ✅ |
| < 1.5 | ❌ |
Security Updates
Security updates are released as patch versions and announced via:
- GitHub Security Advisories
- npm security advisories
- Twitter @bunqueue
Always keep bunqueue updated to the latest version.