Why this matters
LGPD imposes stricter requirements for children's data.
If data subject is a child/adolescent, require age verification and parental/legal guardian consent prior to processing; deny processing otherwise and do not store the payload.
LGPD imposes stricter requirements for children's data.
Side-by-side examples engineers can pattern-match during review.
post("/profile/child"){ call.receive<ChildProfile>().let(save) }install(Plugins){ intercept(ApplicationCallPipeline.Plugins){ val p = call.receive<ChildProfile>(); if(p.age < 13 && !p.parentConsent) return@intercept call.respond(HttpStatusCode.Forbidden); save(p) } }if(profile.age < 13 && !profile.parentConsent) return Forbiddensave(profile) // no consent checkFrom the same buckets as this rule.
Before handling sensitive personal data (e.g., health, biometric), verify a valid consent record and attach its ID to the processing context. Provide a path to revoke consent and stop further processing.