Security
A factual summary of the controls present in the repository and the security work that remains with each self-hosting operator.
Shared responsibility
Kuayle supplies application code and a reference Docker Compose deployment. Instance operators control the host, DNS, network rules, secrets, backups, monitoring and update schedule. Review the source and configuration against your security requirements before production use.
- Kuayle: application code, migrations and reference configuration
- Operator: host hardening, firewall, DNS, secrets and access logs
- Operator: database, upload and certificate backups
- Operator: testing and applying updates
Authentication
Kuayle hashes passwords with bcrypt. Users can add passkeys (WebAuthn) and sign in with a fingerprint, face, screen lock or security key instead; passkeys need HTTPS and use FRONTEND_URL as the relying party. Authentication uses signed access and refresh tokens; refresh-token hashes and expiry times are stored in PostgreSQL. Set a unique JWT_SECRET of at least 32 characters before starting the backend. Set DISABLE_REGISTRATION=true to require a valid invite link for new accounts.
- Access and refresh tokens signed with JWT_SECRET
- Passwords hashed with bcrypt before storage
- Passkeys with required user verification; removing one ends its sessions
- Expiring access and refresh tokens
- Role-based access control: Owner, Admin, Member, Guest
- Optional invite-only registration
Authorization boundaries
Private teams restrict issues, projects, cycles, statuses, comments, attachments and real-time events to team members, while owners and admins keep access. Removing a membership takes effect on the next request. Personal access tokens are stored as hashes; their scopes act as a ceiling on the owner’s role, and they can be limited to workspaces, given an expiry and revoked.
- Private-team checks apply to API, attachments and WebSocket events
- Private-team issues are never posted to GitHub pull requests
- Token permissions are the intersection of scopes and role
- Copies already published or downloaded cannot be recalled
Transport security
The reference deployment exposes Caddy on ports 80 and 443. Caddy obtains and renews TLS certificates when DOMAIN points to the server and the host is reachable. PostgreSQL, Redis and the application containers remain on the internal Compose network unless you alter the configuration.
- Caddy reverse proxy with automatic Let's Encrypt TLS
- Public ingress through Caddy on ports 80 and 443
- PostgreSQL and Redis have no published host ports in the reference Compose file
- TLS depends on correct DNS and network configuration
Stored data and credentials
Application records are stored in PostgreSQL. Uploads use either a Docker volume or an S3-compatible backend. Per-workspace GitHub App credentials are encrypted with AES-256-GCM using a key derived from the configured secret. Disk-level encryption and backup encryption are operator decisions.
- PostgreSQL for application records and token hashes
- Local volume or S3-compatible storage for uploads
- AES-256-GCM for stored GitHub App credentials
- No built-in backup scheduler: back up the database, uploads and Caddy state externally
Reporting vulnerabilities
If you discover a security vulnerability in Kuayle, please report it responsibly. Do not open a public issue. Send the affected version, reproduction steps, impact, and any suggested mitigation to [email protected].
- Report to: [email protected]
- Do not disclose publicly until a fix is available
- Allow time to investigate and prepare a fix before public disclosure
- Include only the minimum sensitive data needed to reproduce the issue
Updates and dependency checks
The repository runs backend tests, frontend checks, image smoke tests and security scanning in GitHub Actions. The self-hosting update script fetches the current branch, rebuilds the backend and frontend containers, stops the backend while database migrations run and then starts the new version.
- CI configuration is public under .github/workflows
- Update flow rebuilds images, stops old writers and applies migrations
- Review release changes and back up data before updating
- No published uptime or patch-response SLA