Članci s tagom #compliance
-
NIS2 incident response in PHP: hash-chained timeline, CERT.hr submission, and multi-regulator dossiers
NIS2response: 10 tables, 27 services, hash-chained timeline (SHA256(prev||payload)), weekly tamper-proof root hash to Telegram+email, CERT.hr 3-stage submission with double confirm, 4-regulator dossier (CERT.hr/AZOP/Porezna/HNB), CrossTenantCampaignDetector, STIX 2.1 export, tabletop exercise mode, Art. 23 deadline cascade (24h→72h→1mo).
-
FRIA in PHP: implementing the EU AI Act Fundamental Rights Impact Assessment
AiActFriaWizardController: 6-step FRIA (step 0=DPIA auto-prefill via FriaDpiaBridge, steps 1-6=deployer type/rights/groups/severity/mitigation/monitoring+submit), 12 fundamental rights from EU Charter, 13 affected groups, review_due_date annual cycle, GDPR DPIA cross-link via gdpr_dpia_id, compliance score auto-recomputed on submit.
-
EU AI Act Article 5 runtime safeguards in PHP: blocking prohibited AI practices at the HTTP layer
ProhibitedSafeguardGate: two-tier check (risk_category=prohibited OR runtime_blocked=1), fail-open on missing DB (no DoS of legit traffic), evidence write to aiact_logs_evidence + aiact.prohibited_attempt event + ProhibitedSystemBlocked exception (HTTP 403). AIACT_PROHIBITED_SAFEGUARD_ENABLED env switch. Name lookup tenant-scoped via currentCompanyId().
-
PHP AST scanning with PhpToken: auto-discovering AI systems in your codebase
AiSystemAstScanner: two detection signals (extends AgentDefinition, implements ToolInterface + AI service in ctor), str_contains pre-filter (~100x cheaper than tokenization), PhpToken::tokenize() namespace+use-alias resolution, per-tenant moduli filter, AI_SERVICE_FQNS whitelist with 6 service classes, per-file try/catch.
-
EU AI Act compliance in PHP: a built-in registry with codebase auto-discovery
AIactRegistry: two-tier AI system auto-discovery (hardcoded curated + AST sweep via PhpToken), Art. 4 literacy tracking, Art. 5 runtime prohibited-practices safeguard at HTTP priority 28, Art. 27 FRIA wizard, Art. 71 EU database export, Art. 72 post-market monitoring, Art. 73 serious incident reporting with NIS2 cross-link. No separate compliance SaaS needed.
-
GDPR compliance in PHP SaaS: manifest-driven audit log, DSAR, and anonymization
GdprManifest auto-scanned from *_gdpr.php files at bootstrap stage 5, GdprRegistry singleton, AuditLogger (logCreate/Update/Delete/View), DsarService cross-manifest search, DataAnonymizer with 6 rules (scramble/fake_email/fake_oib/fake_date/static/null), FieldEncryptor AES-256-GCM for sensitive_fields, gdpr_requests DSAR evidence table.