# Security Policy

RuleCrest is a security and compliance training platform - holding our
own code and infrastructure to a lower standard than what we teach would
undermine the product itself. If you've found a security issue, we want
to hear about it.

## Reporting a vulnerability

Use the contact published in [`/.well-known/security.txt`](/.well-known/security.txt)
(RFC 9116) on the deployment you found the issue on. On our hosted service that
contact is the **Report a vulnerability form** on the public site (`/report`), or
email `security@rulecrest.com` (both are on the public Contact page).
The form keeps your report with your IP address and browser details so abuse can be
blocked; the page says so. On a deployment without the public site (for example
on-premise) the contact comes from the `SECURITY_CONTACT` setting, which an
operator must set to a real, monitored mailbox or disclosure-form URL (a
production start-up warns until they do; the built-in
`security@rulecrest.example` is only a placeholder). Report:
- A description of the issue and its potential impact.
- Steps to reproduce it (a minimal example is ideal).
- Any relevant logs, screenshots, or proof-of-concept code.

Please do not open a public GitHub issue for a security report - use the
email address above instead, so a fix can ship before the details are
public.

## What to expect

- **Acknowledgement within 3 business days.**
- We'll investigate and let you know whether it's confirmed, and roughly
  what timeline to expect for a fix, based on severity.
- We'll credit you in the fix's release notes if you'd like (or keep you
  anonymous, your choice) once it's resolved.

## Scope

In scope: this repository's own code (`server/`, `src/`), its
authentication/session/authorization logic, the multi-tenant isolation
model, and the certificate/license signing trust chain (see `AGENTS.md`
§§4-7 for how these work).

Out of scope: an on-premise customer's own deployment once handed off -
see `docs/onprem-runbook.md` - we have no access to it and can't act on
a report about it; social engineering; denial-of-service testing against
any RuleCrest-operated infrastructure without prior written permission.

## Recognition

We don't currently run a paid bug bounty program, but genuine,
responsibly-disclosed findings are credited publicly (with permission)
and taken seriously regardless.
