Skip to content

feat(server): add configurable data retention policies with scheduled cleanup #95

@martsokha

Description

@martsokha

Context

The server performs soft deletes but does not enforce configurable retention policies with scheduled cleanup. The runtime's compliance requirements call for automatic deletion at expiry.

Requirements

  • Per-workspace configurable retention periods for:
    • Original (pre-redaction) content
    • Redacted output (independent schedule from originals)
    • Audit records (longer retention, e.g., 7 years HIPAA, 6 years SOX)
  • Zero-retention mode: originals discarded immediately after processing completes
  • Scheduled background task that identifies expired resources and permanently removes them
  • Audit records are never deleted before their configured retention period expires
  • Retention policy changes are themselves recorded in the audit trail

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    featrequest for or implementation of a new featurepostgresnvisy-postgres: ORM, models, queries, migrationsservernvisy-server: API handlers, middleware, auth

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions