تخطَّ إلى المحتوى

SOC 2 Readiness

هذا المحتوى غير متوفر بلغتك بعد.

The compliance plugin produces a SOC 2 Type 1 evidence pack for tenants who serve enterprise clients. The pack gives a third-party auditor everything they need to start an attestation without manual data collection.

Requires: Enterprise license, NSELF_COMPLIANCE_SOC2=true

The exported ZIP covers all five Trust Service Criteria:

FileTSCContents
CC6-user-provisioning-log.csvCC6Access grant and revocation events
CC6-access-review.csvCC6Quarterly access review records
CC7-change-management.csvCC7Config, plugin, schema, user changes
CC9-vendor-list.csvCC9Vendor registry with risk tiers
A1-availability-metrics.csvA1Service health events by day
policies/*.mdAll TSCsFive rendered policy documents
manifest.sha256SHA-256 hash of every file
Terminal window
nself compliance soc2 evidence --from 2026-01-01 --to 2026-06-30

Or via the API:

Terminal window
curl -X POST https://api.your-instance.com/api/v1/compliance/soc2/evidence \
-H "X-Nself-License-Tier: business" \
-H "Content-Type: application/json" \
-d '{"from":"2026-01-01","to":"2026-06-30"}' \
--output soc2-evidence.zip

Verify integrity:

Terminal window
unzip soc2-evidence.zip manifest.sha256
sha256sum -c manifest.sha256

Schedule and complete quarterly access reviews:

Terminal window
# Open a review
curl -X POST .../api/v1/compliance/access-reviews \
-d '{"period_start":"2026-01-01","period_end":"2026-03-31"}'
# Close it with findings
curl -X PATCH .../api/v1/compliance/access-reviews/:id \
-d '{"status":"complete","findings":{"accounts_reviewed":42,"access_removed":3}}'

Record every infrastructure change before it is applied:

Terminal window
curl -X POST .../api/v1/compliance/change-log \
-d '{
"change_type": "schema",
"description": "Added np_change_log index for tenant_id",
"ticket_ref": "NSELF-456",
"approved_by": "<admin-uuid>"
}'

Change types: config plugin user schema

Five policy templates are rendered and included in every evidence pack. Customize them before submitting to your auditor:

  • Access Control Policy (CC6)
  • Change Management Policy (CC7)
  • Incident Response Policy (CC7, A1)
  • Vendor Management Policy (CC9)
  • Business Continuity Policy (A1)
VariableRequiredEffect
nselfYesEnables SOC 2 dashboard
nselfYesEnables evidence download
nselfEnterpriseContinuous monitoring
nselfNoMinIO bucket for pack storage
nselfNoPresigned URL TTL (seconds, default 86400)
TablePurpose
np_change_logChange management records (CC7)
np_access_reviewsAccess review records (CC6)
np_vendor_registryVendor inventory (CC9)

Tables are created automatically when the compliance plugin starts.

RoleAccess
compliance:readView controls, reviews, change log
compliance:exportGenerate and download evidence packs
compliance:adminManage vendor registry, approve reviews

All endpoints return 401 without an Enterprise license.