1. Transport encryption, strict headers, and storage protection
All platform traffic is encrypted in transit over HTTPS/TLS with Strict-Transport-Security (HSTS), X-Content-Type-Options, Referrer-Policy, and anti-clickjacking headers on administrative consoles. Database volumes and file storage buckets are encrypted at rest by the managed PostgreSQL / Supabase infrastructure. Privileged server keys (SUPABASE_SERVICE_ROLE_KEY) remain strictly server-side and never reach client browsers.
2. Multi-tenant PostgreSQL Row Level Security and hierarchical isolation
Every operational and canonical table carries explicit territorial scoping keys (parish_id, diocese_id, deanery_id, ecclesiastical_province_id, country_code) enforced directly in PostgreSQL through Row Level Security (RLS) policies. Every administrative Server Action validates inputs with strict Zod schemas and independently verifies session identity and descending territorial jurisdiction across the seven governance tiers and four parish offices.
Uploaded parish images and PDF notices are verified server-side by binary magic-byte inspection (WebP, JPEG, PNG, PDF), capped at 5 MB, and stored under isolated hierarchical paths per diocese and parish.
3. Canonical integrity and sealing of sacramental acts (Can. 535 §4)
Sacramental entries (baptisms, first communions, confirmations, marriages, deaths) generate a SHA-256 verification hash allowing public authenticity verification of official extracts (/api/verify/[hash]) without exposing confidential register contents. Once sealed by the Pastor (is_locked = true), a PostgreSQL database trigger prevents unauthorized alteration or deletion of the sealed entry; subsequent canonical changes are recorded strictly through marginal notations (Can. 535 §2).
4. Controlled delegation and administrative audit trail
Self-registration into parish or diocesan back-offices is disabled. Only an authorized Pastor (Can. 532) or a superior ecclesiastical governor within the relevant territorial jurisdiction may grant or revoke access. Sensitive operations (onboarding approvals, access delegations and revocations, sacramental registrations and sealing, profile updates, sovereign node registrations) are logged in an internal audit trail (audit_logs).
5. Online sovereign extraction and HMAC-SHA256 federation
A parish, diocese, ecclesiastical province, or country can be exported in a read-only REPEATABLE READ transaction without locking or interrupting the shared SaaS database, accompanied by its standalone Docker deployment package. Autonomous sovereign instances choosing to stay discoverable in the global Parokia directory synchronize strictly public metadata authenticated with HMAC-SHA256 signatures.
6. Backups and responsible security disclosure
Automated PostgreSQL backups are maintained by the database host and may be complemented at any time by sovereign exports archived locally by each diocese. If you identify a potential vulnerability or access anomaly, please notify our security contact directly at glosings0n.dev@gmail.com so that we may investigate and remediate it promptly.
