Skip to content

compliance

GDPR, CCPA, HIPAA, SOC 2, and PCI compliance: DSARs, consent, and audit logging. Pro plugin.

Requires: Business license tier or higher. nself license set nself_pro_...

Terminal window
nself license set nself_pro_xxxxx...
nself plugin install compliance

Adds a compliance management layer covering GDPR, CCPA, HIPAA, SOC 2, and PCI-DSS requirements. Manages consent records, processes Data Subject Access Requests (DSARs) including data export and right-to-erasure, maintains an immutable compliance audit log, and generates compliance reports. Provides a consent API for cookie banners and privacy settings UIs.

Env VarDefaultDescription
COMPLIANCE_PORT3211Compliance service port
COMPLIANCE_REGULATIONSgdpr,ccpaActive regulations
COMPLIANCE_DSAR_RESPONSE_DAYS30DSAR response deadline in days
COMPLIANCE_DATA_RETENTION_DAYS2555Default data retention (7 years)
COMPLIANCE_PII_DETECTIONtrueDetect PII in requests
PortPurpose
3211Compliance REST API

17 tables added to your Postgres database:

  • np_compliance_consent_records: user consent decisions
  • np_compliance_consent_versions: consent version history
  • np_compliance_dsar_requests: DSAR request queue
  • np_compliance_data_exports: exported user data packages
  • np_compliance_erasure_requests: right-to-erasure requests
  • np_compliance_audit_log: immutable compliance events
  • np_compliance_retention_policies: data retention rules
  • And 10 more for regulations, reports, violations, etc.
RouteTarget
/compliance/Compliance management API
/compliance/consentConsent collection endpoint
/compliance/dsarDSAR submission endpoint