Overview
Ley 1581 de 2012 (Habeas Data Law) regulates the protection of personal data in Colombia. Educational institutions process sensitive information about minors, making strict compliance essential.Key Requirements
The law establishes specific obligations for educational institutions:1. Informed Consent
For minors (students under 18):- Parent or legal guardian must provide explicit consent
- Consent must be informed, prior, and freely given
- Purpose of data processing must be clearly stated
- Cannot be bundled with other consents
- Direct consent from the data subject
- Same standards of clarity and freedom
2. Data Processing Principles
- Legality: Only process data lawfully
- Purpose: Collect data for explicit, legitimate purposes
- Freedom: Consent must be voluntary
- Veracity: Data must be accurate and updated
- Transparency: Inform data subjects how their data is used
- Security: Implement technical and administrative safeguards
- Confidentiality: Restrict access to authorized personnel
3. Data Subject Rights
- Access: Request a copy of their data
- Rectification: Correct inaccurate data
- Deletion: Request removal of data (with limitations)
- Revocation: Withdraw consent (if legally permissible)
- Complaint: File complaints with SIC
How Athena Implements Habeas Data
Consent Capture
Athena captures and stores Habeas Data consent as part of the enrollment process.Database Schema
Consent documents are stored inenrollment_documents:
Consent Metadata Structure
Timestamp and IP: Recording the exact time and IP address of consent provides legal evidence that consent was given. This is especially important if consent is ever challenged.
Consent Workflow
- Guardian Access: During enrollment, guardian accesses the student’s profile
- Policy Presentation: Athena displays the institution’s data treatment policy
- Digital Acceptance: Guardian checks the consent box
- Metadata Capture: System records timestamp, IP, user agent
- Document Generation: Signed consent form is generated and stored in R2
- Database Record: Consent entry created in
enrollment_documents
Customizable Consent Text
Each institution configures their own Habeas Data text in Configuración → Seguridad y Habeas Data:De conformidad con la Ley 1581 de 2012 (Protección de datos personales), el acudiente autoriza a la Institución Educativa [NOMBRE] para el tratamiento de los datos personales del menor de edad, con fines exclusivamente académicos, administrativos y de contacto oficial. Los datos serán utilizados para:Se garantiza el derecho de acceso, rectificación y supresión de la información según los términos establecidos en la ley.
- Gestión académica y evaluación del estudiante
- Comunicaciones institucionales
- Cumplimiento de obligaciones legales (SIMAT, reportes oficiales)
- Atención de emergencias médicas
Audit Trail
Ley 1581 requires demonstrable accountability. Athena implements audit logging for compliance.Audit Log Schema
What Gets Audited
High-priority actions:- Student personal data access (READ)
- Student data modification (UPDATE)
- Guardian information changes (UPDATE)
- Enrollment document uploads (CREATE)
- Data exports (SIMAT, reports) (READ)
- User access to sensitive pages (READ)
MVP Status: The audit_log table is defined and critical operations are logged. Full automated audit middleware for all data access is planned for Phase 5. Institutions should implement manual logging procedures for compliance until then.
Data Subject Rights Implementation
Right to Access
How Athena Supports This:- Guardians can view their student’s complete profile
- Students (with account) can view their own data
- Export feature provides machine-readable data copy
- Guardian requests data copy via email to institution
- Secretary generates export from student profile
- PDF report sent to guardian within legal timeframe (10 business days)
Right to Rectification
How Athena Supports This:- Guardians can request corrections through the platform
- Secretary role has permissions to update student data
- Changes are logged in audit trail
- Guardian identifies incorrect data
- Submits correction request (in-app or email)
- Secretary validates and updates record
- System logs the modification
- Guardian receives confirmation
Right to Deletion
How Athena Supports This:- Soft deletion via
is_activeflag - Hard deletion available (with restrictions)
- Audit log preserved even after deletion
- Cannot delete data required for legal compliance (SIMAT, tax records)
- Academic records must be retained per MEN regulations
- Deletion possible after student graduation + retention period
Right to Revocation
How Athena Supports This:- Guardians can revoke consent through formal request
- System flags enrollment for consent review
- Institution evaluates legal basis for continued processing
- Revocation may conflict with legal obligations (e.g., SIMAT reporting)
- Institution may need to process data under legal basis other than consent
- Document alternative legal basis clearly
Security Measures
Access Control
Role-based permissions restrict data access:Data Encryption
Current Implementation:- TLS 1.3 for data in transit (HTTPS)
- PostgreSQL server-side encryption at rest (Supabase default)
- Cloudflare R2 encryption for uploaded documents
- Field-level encryption for document numbers using
pg_crypto - Encrypted backups with separate key management
Multi-tenant Isolation
Strict tenant separation prevents cross-school data leaks:Compliance Dashboard
Monitoring Consent Status
The enrollment dashboard shows Habeas Data compliance:- Green badge: Consent captured and validated
- Yellow badge: Consent pending upload
- Red badge: No consent on file
Institutional Compliance Report
Generate compliance reports showing:- Total enrollments with valid consent
- Pending consent count
- Consent capture rate by period
- Audit log access summary
Best Practices
Annual Policy Review
Review and update your Habeas Data policy annually:
- Verify legal compliance with current law
- Update consent text version number
- Re-obtain consent if policy changes materially
- Train staff on new procedures
Document Everything
Maintain records of:
- Signed consent forms (digital and physical)
- Policy version history
- Staff training on data protection
- Data breach response plans and incidents
- SIC communications if any
Minimize Data Collection
Only collect data necessary for:
- Academic management
- Legal compliance
- Health and safety
- Excessive personal details
- Sensitive data without clear justification
- Data “just in case” it’s needed later
Secure Third-party Sharing
If sharing data with third parties (e.g., transport, cafeteria):
- Obtain explicit consent for sharing
- Execute data processing agreements
- Verify their security measures
- Limit data to what’s strictly necessary
Staff Training
All staff with data access should receive training on:-
Legal Framework
- Ley 1581/2012 key provisions
- Institutional responsibilities
- Penalties for non-compliance
-
Operational Procedures
- How to capture consent in Athena
- Data access protocols
- Incident reporting
-
Security Practices
- Strong password requirements
- Prohibition on sharing credentials
- Secure document handling
- Physical security of devices
Training Records: Document staff training on data protection. This demonstrates due diligence in case of regulatory audit.
Incident Response
Data Breach Protocol
If personal data is compromised:-
Immediate Actions
- Contain the breach (revoke access, secure systems)
- Document the incident (what, when, how many records)
- Notify institution’s legal counsel
-
Regulatory Notification
- Evaluate if breach meets SIC reporting threshold
- Prepare breach notification within legal timeframe
- Notify SIC if required (usually within 15 days)
-
Data Subject Notification
- Notify affected guardians/students if high risk
- Explain nature of breach and data involved
- Describe remediation steps taken
-
Remediation
- Address security vulnerabilities
- Implement additional safeguards
- Review and update security policies
- Train staff on lessons learned
Regulatory References
- Ley 1581 de 2012: Personal data protection law
- Decreto 1377 de 2013: Regulations for Ley 1581
- Ley 1266 de 2008: Habeas Data (financial data)
- SIC Circular Externa 002 de 2015: Data processing guidelines
Useful Resources
- SIC Official Site: https://www.sic.gov.co/
- SIC Data Protection Guidelines: [Search “Protección de Datos Personales” on SIC]
- Colombian Data Protection Authority (SIC) complaint system
Next Steps
SIMAT Integration
Ensure consent before SIMAT data export
Enrollment Process
Learn complete enrollment workflow