Skip to content

GDPR — BatleHub controls ​

This page maps the articles of the General Data Protection Regulation (Reg. 2016/679) that touch a package proxy to the controls BatleHub implements. The operator is the controller of the personal data an instance holds; BatleHub is the tool it processes that data with.

A mapping, not a compliance statement

Software cannot be GDPR-compliant; a processing activity can. "Implemented" means the control exists in the code, at the place named in the Evidence column. Whether it is enabled, and whether your retention periods and lawful bases are the right ones, is a decision for you and your DPO. See Compliance.

Scope: the BatleHub server and its database. A copy of the audit stream shipped to a SIEM is a separate copy that you control: pseudonymisation and erasure in the database do not reach it (SIEM integration).


The personal data BatleHub stores ​

WhereWhatWhy
access_eventsuser_id, ip_address, user_agent, detailthe audit trail: who read, published, blocked or signed in, from where
user_tokensowner, token name, last_used_at, last_used_ippersonal access tokens; the address feeds token_new_source
user_blocksuser_id, blocked_by, reasonan admin's decision to refuse a user
ip_blocks, ip_violation_countersclient IP addressesautomatic and manual IP blocking
published_by, package ownership grantsthe publisher's and owner's user idwho published a version and who administers a package

Token values are never stored (only a hash), and no audit row or stream line carries a token, a hash, an OIDC code or a password.


Art. 5 — Principles ​

ArticleControlStatusEvidence
5(1)(c) – Data minimisationThe audit row holds an id, an address and a user agent, never request bodies or credentialsImplementedcrates/core/src/entities/access_log.rs
5(1)(e) – Storage limitationTwo retention classes: access rows (Download, ViewMetadata) and security rows (every other action, auth events included), each expired by the lifecycle jobImplemented[audit] access_retention_days, [audit] security_retention_days
5(1)(e) – Storage limitationAccess-class rows lose precision after a set age: IP truncated to /24 (IPv4) or /48 (IPv6), user agent droppedImplemented[audit] pseudonymise_after_days
5(1)(e) – Choosing the periodsRetention periods that fit your purposes and legal obligationsManual processyour record of processing
5(1)(f) – IntegrityClosed windows of the trail are hash-chained and signed; rewriting a row without the key is detectedImplemented[audit] seal_interval_secs, [audit] seal_signing_key, batlehub-cli audit verify
5(2) – AccountabilityEach lifecycle run, export and erasure is itself a security-class audit event (audit_lifecycle_run, gdpr_export, gdpr_erase)ImplementedGET /api/v1/admin/audit-log?action=gdpr_erase

Art. 6 — Lawful basis ​

ArticleControlStatusEvidence
6(1)(f) – Legitimate interestSecurity-class rows keep their full IP for their whole retention, because the source of a sign-in, grant or purge is the evidence; the shorter access-class retention keeps the two proportionateManual processdocument the basis in your record of processing
6(1)(c) – Legal obligationWhere a law obliges you to keep a record longer, set security_retention_days to itManual process[audit] security_retention_days

Art. 15–21 — Data-subject rights ​

ArticleControlStatusEvidence
15 – Right of accessExport every row about one subject, including the publication and ownership rows erasure keeps; recorded as gdpr_exportImplementedbatlehub-cli gdpr export --user <id>, GET /api/v1/admin/gdpr/export?user_id=<id> (verb audit:read)
17 – Right to erasureReplaces the subject's id with erased:<hmac> in access_events — as the actor, and where an admin's grant or export row names them as its subject — token rows and block rows; rows of one subject stay linkable to each other and to nobodyImplementedbatlehub-cli gdpr erase --user <id>, POST /api/v1/admin/gdpr/erase (verb gdpr:erase), [audit] erasure_key
17(3) – ExemptionsPublication and ownership rows are retained under legitimate interest: "who published this" stays answerable for every consumer of the packageDocumentedRFC 0036 §4.2
17 – Erasure against an open decisionRefused for a subject with an open quarantine or block decision unless forcedImplementedbatlehub-cli gdpr erase --user <id> --ignore-open-decisions
17 – Who may erasegdpr:erase is its own verb; audit:purge does not imply itImplementedAccess control § verbs
12 – Answering within a monthReceiving, verifying and answering the requestManual processIncident response § PII handling
21 – Right to objectWeighing an objection against your legitimate interestManual process—

Erasure needs erasure_key, an HMAC secret. Keep it outside the database — an environment variable or a secret store — or the pseudonym is reversible by whoever reads the database.

Art. 25 — Data protection by design and by default ​

ArticleControlStatusEvidence
25(1) – By designPseudonymisation and expiry run only on sealed, closed windows, and each run is chained into the seal recordImplemented[audit], audit_seals table
25(2) – By defaultNo [audit] table keeps the old behaviour (nothing expires) and logs a warning at start; the console lists itImplementedGET /api/v1/admin/config/warnings
25(2) – By defaultSetting the [audit] table, so the default warning does not stand in productionManual processyour configuration

Art. 28, 30, 32–34 — Processors, records, security, breaches ​

ArticleControlStatusEvidence
28 – ProcessorsA SIEM, a hosting provider or a log pipeline that receives the stream is your processorManual processSIEM integration
30 – Record of processingThe inventory above is the input; the record is yoursManual processthis page
32 – Access controlGrants and verbs per registry, OIDC sign-in, hashed and expiring tokensImplementedAccess control, crates/adapters/src/db/auth/user_tokens.rs
32 – Encryption in transitTLS terminated at the ingressManual processProduction hardening
32 – Encryption at restPostgres and object-storage encryptionManual processyour database and bucket settings
32 – Resilience and restoreBackup and restore runbooksDocumentedDisaster recovery
33 – Breach notification (72 h)Detecting the breach and notifying the supervisory authorityManual processIncident response, the audit stream
33(5) – Documenting a breachThe audit log export and a verified chain for the incident windowImplementedbatlehub-cli audit export, batlehub-cli audit verify --from <start> --to <end>

Art. 44 — Transfers ​

ArticleControlStatusEvidence
44 – Transfers to third countriesEvery outbound request the server makes, and what it carriesDocumentedWhat leaves this instance
44 – Where the instance and its SIEM runChoosing the regionManual process—

Gaps ​

GapPlan
A copy already shipped to a SIEM is not pseudonymised or erasedThe collector's own retention governs it; set it to match [audit]

Released under the Apache 2.0 License. Made with care and too much coffee.