Security Settings
BugPin's security settings control how the application handles incoming requests, user sessions, and domain access. All global settings are configured in the Admin Console under Security, with no server restarts required. HTTPS enforcement, rate limiting, session duration, and invitation expiration are on the General tab, the two-factor policy on the Two-Factor tab, and the password policy on the Password Policy tab. This page covers HTTPS enforcement, rate limiting, session duration, invitation expiration, the two-factor authentication policy, the password policy, and domain whitelisting.
HTTPS Enforcement
When enabled, HTTPS enforcement provides two protections:
- HTTP to HTTPS Redirect: Requests arriving via HTTP are automatically redirected to HTTPS
- HSTS Header: The
Strict-Transport-Securityheader is added to responses, instructing browsers to always use HTTPS
Requirements
HTTPS enforcement requires a properly configured TLS-terminating reverse proxy that:
- Terminates TLS/SSL connections
- Sets the
x-forwarded-protoheader to indicate the original protocol
Without a properly configured proxy, enabling this setting will not provide HTTPS protection.
Configuration
- Navigate to Security and open the General tab
- Toggle Enforce HTTPS to enabled
- Click Save Changes
Before enabling HTTPS enforcement, ensure your reverse proxy is correctly configured. See the Hardening Guide for detailed proxy configuration instructions.
Rate Limiting
Rate limiting helps prevent abuse of the widget submission endpoint and of the login form.
Configuration
- Requests per Minute per IP: The maximum number of widget submissions (
POST /api/widget/submit) allowed per minute (range: 1-1000, default: 10). The limit is counted per client address and project, so one visitor reaching the limit does not block other reporters
The value applies to the whole instance. Each client address has its own count for each project.
How It Works
- Widget submissions are counted per client address and project, using the configurable limit above
- Login attempts are limited to 5 per minute per client address. This limit is fixed
- The other sign-in endpoints (second step with a code or a passkey, passkey sign-in) are limited to 10 requests per minute per client address. Each endpoint is counted separately, so mistyped two-factor codes don't use up the password attempts
- Failed second steps are also counted per account: after 10 within 15 minutes, the second step is blocked for that account for 15 minutes (see Two-Factor Authentication and Passkeys)
- IPv6 clients are grouped by their
/64network, so a client can't escape a limit by switching addresses within its own network - Client addresses come from the connection. Behind a reverse proxy, BugPin reads the address from
x-forwarded-foronly when it trusts the proxy (see Client IP Addresses and TRUST_PROXY) - When a limit is exceeded, the API returns a
429 Too Many Requestsresponse - The
Retry-Afterheader indicates when the client can retry - Rate-limited endpoints include these headers in their responses:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Requests remaining in the current windowX-RateLimit-Reset: Seconds until the rate limit resets
Session Duration
Controls how long user sessions remain valid before requiring re-authentication.
Configuration
- Session Duration (Days): Number of days before a session expires (range: 1-365, default: 7)
Shorter durations are more secure but require more frequent logins. Consider your security requirements and user convenience when setting this value.
Invitation Expiration
Controls how long invitation links remain valid for new users.
Configuration
- Invitation Expiration (Days): Number of days before an invitation link expires (range: 1-30, default: 7)
Shorter durations are more secure. Expired invitations can be resent by an administrator.
Two-Factor Authentication Policy
Decides who must protect their account with an authenticator app or a passkey in addition to the password.
Configuration
Under Security → Two-Factor:
- Require for: Off (default), Admins only, or All users
Users covered by the policy who have no method yet must set one up right after signing in. See Two-Factor Authentication and Passkeys for the setup and for resetting a locked-out user.
Password Policy
Strength rules for new passwords. They apply when users change their password, accept an invitation, or are created or reset by an administrator. Existing passwords keep working until they are changed.
Configuration
Under Security → Password Policy:
- Minimum length: Number of characters (range: 8-128, default: 8)
- Must contain: Any combination of Uppercase letter, Lowercase letter, Number, and Special character (default: none)
Password forms in the Admin Console show the active rules as a checklist while the user types. A new password must also differ from the current one.
Domain Whitelisting
Each project can be configured to only accept bug reports from specific domains.
Configuration
- Navigate to Projects
- Select the project and click Settings
- On the Whitelists tab, add allowed domains
When configured, only requests from the specified domains (and their subdomains) will be accepted.
Leave the domain whitelist empty to accept reports from any domain. This is useful during development but should be restricted in production.