ErrorsPersonal data · rule
data.privacy_person_required
A data request has no signed-in person to act for, or no address to find them by.
Area 15, Personal data; not declinable; the next step is usually the human's.
Why Jadpo refuses it
A data request exports or erases one person's own records, chosen by who is
signed in or by their email address. If principal { } declares no user, or
that user isn't an entity marked person: true, Jadpo can't say whose
records a request is about. A request by email also needs an Email field to
find the person by: the one magic_link: names, or else the user's own
subject:.
Jadpo won't choose for you, since it decides who can ask for what.
What it looks like
app.jadpo:
application { privacy: { self_service: {} }}
error privacy: needs a user who is a person
--> app.jadpo:2:5
|2 | privacy: { | ^^^^^^^ no user to act for
- reason
- A data request acts on one person's own records, by who is signed in or by their email address, so
principal { }must declare who auseris, on an entity markedperson: true. - next
- Declare
principal { user: { subject: <entity>.<field> } }on the entity markedperson: true(human) - rule
- data.
privacy_ person_ required - help
- https://jadpo.
dev/docs/errors/data. privacy_ person_ required
(human) at the end of the next: line tells your coding agent to stop and
ask you which fix you want, because the choice is yours to make: it decides
who a request acts for.
How to fix it
If your app has people who sign in, declare who a user is, on the entity
that is a person, so a request can find them by their address:
use accounts/entities { User }application { display_name: "Notes" connections: { mail: { driver: Driver.smtp host: config.smtp_host } vault: { driver: Driver.disk path: "/var/lib/notes/vault" } } email: { connection: mail from: config.mail_sender } privacy: { erasure_log: { store: vault } exports: { store: vault } path: "/privacy" }}principal { user: { subject: User.email }}
A data request also needs somewhere to keep exports, an erasure log, an origin and a way to tell the person; each says so when it is missing.
Related
Markdown for agents: /docs/errors/data.privacy_person_required.md.Built from Jadpo's main branch at commit 9080dc3.