Članci s tagom #gdpr
-
GDPR-compliant monitoring: what EU founders need to know
US-hosted monitoring tools collect your customers' IPs, your cron outputs, your incident payloads. If you sell to EU customers, you need to think about this. Here's what matters and what to actually do.
-
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.
-
Soft delete in PHP: why it matters for GDPR and how to implement it correctly
Model soft delete: opt-in $softDelete = true adds automatic WHERE deleted_at IS NULL to query(), withTrashed() / onlyTrashed() for admin bypass, trash(deletedBy) vs delete(), GdprRetentionJob atomic transaction (DELETE + auditLogger in one commit), GDPR_RETENTION sentinel, 2-year audit log cleanup.
-
Field-level encryption in PHP: OIB at-rest with AES-256-GCM and key rotation
FieldEncryptor: AES-256-GCM with 12-byte IV + 16-byte auth tag, base64(iv+tag+ciphertext) format, fail-closed encrypt() throws on missing key (ENCRYPTION_FAIL_SILENT escape hatch), legacy plaintext passthrough on decrypt, ENCRYPTION_KEY_PREVIOUS rotation fallback, explicit controller encryption (not ORM-transparent).
-
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.
-
Per-tenant AI usage tracking in PHP: attributing every LLM token to its tenant
Two tracking systems: ai_usage_daily (day-level aggregates for budget monitoring, composite PK on date+tenant+provider+model) and limai_token_usage (per-call rows with execution_id for agent log correlation). tenant_id is the required first parameter in every write path — silent attribution bugs aren't possible.
-
Sensitive data masking in PHP logs: OIB, IBAN, credit card, email auto-redacted
Shinobi Apps framework Logger: maskSensitiveData() applied once to context before any handler receives it. Two-pass: (1) key-based — SENSITIVE_KEYS list (password/token/secret/api_key/credit_card/ssn/pin/cvv/authorization) → '***MASKED***'. (2) value-based — regex patterns: credit card (13-19 digit groups → ****-****-****-last4), JWT (eyJ.*.* → prefix***JWT_MASKED***), Bearer token (Bearer .{20,} → prefix***MASKED***), hex hash (32+ hex chars → first8***MASKED***). Control-char sanitization on log message string.