When an application or infrastructure reaches the end of its lifecycle, IT teams often remove it from service permanently: this is decommissioning. Beyond simply stopping services, this operation raises a crucial question: which data must be archived to justify compliance with legal, regulatory, or contractual requirements several years down the line? The answer involves a careful balance between retention obligations (GDPR, LPM, PCI-DSS…), auditability requirements (access logs, configurations, decisions), and operational constraints (storage costs, security, governance). The article describes the challenges, the data to retain, and a framework for managing it after decommissioning.

1. Context: Why decommissioning is becoming an audit challenge

Organisations are modernising their IT systems at a steady pace (cloud migration, adoption of micro-services, data centre rationalisation). Each project inevitably leads to the decommissioning of a legacy platform. However, compliance requirements do not vanish when a system is shut down:

  • Legal Obligations – GDPR mandates a minimum retention period for personal data necessary for the purposes for which they were collected (Article 5-1 c). In France, the LPM law (Loi de programmation militaire) requires certain security traces to be retained for 10 years.
  • Contractual Requirements – SLA clauses or PCI-DSS requirements mandate the retention of transaction logs for at least one year.
  • Legal Risk – In the event of a dispute, the absence of archived evidence (e.g. access logs, governance decisions) can lead to financial penalties or loss of customer trust.

Consequently, decommissioning is no longer a simple technical operation: it is a critical control point for legal resilience and continuous auditability.

2. Regulatory Framework and Applicable Standards

DomainReferenceMinimum Retention Period*
Personal Data (GDPR)Art. 5-1 c, Recital 78Variable depending on purpose; often 2–7 years (e.g. billing)
Access traces and security logs (ANSSI – “Journalisation” Guide)ANSSI‑GS‑RC‑00112 months (minimum), 24 months recommended
PCI‑DSS compliance evidencePCI‑DSS v4.0, Req 10.71 year (logs) + 3 years (archives)
Traces related to defence or critical infrastructure (LPM)LPM Art. 9‑210 years
Retention of accounting documentsCode du commerce, Art. L123-2210 years
Internal audits and incident reportsISO 27001, A.12.73–5 years depending on internal policy

\*The durations indicated are the legal or sectoral minimums; internal policy may be more stringent.

These requirements often overlap: a single log file can satisfy multiple frameworks, provided it is correctly classified, integrated into a retention solution, and protected against tampering.

3. Typology of data to be archived after decommissioning

3.1 Operational data

CategoryConcrete exampleReason for archiving
Access logsHTTP, SSH, VPN logsProve who accessed what and when – essential for forensic investigations.
Security event logsSyslog, IDS/IPS alertsDemonstrate incident detection and response during the operational period.
Configuration traces (CMDB)*.conf files, infrastructure as code (IaC) scriptsReconstruct the system state at a given date – useful for compliance or change audits.
Test and validation reportsPerformance results, load reportsJustify that the system met functional requirements prior to its decommissioning.
Tickets and incidentsServiceNow tickets, JIRA, incident ticketsDemonstrate the traceability of issues encountered and the resolutions applied.
  • Service Level Agreements (SLA) associated with the system.
  • Data Processing Agreements (DPA) signed with sub-processors.
  • Governance decisions (e.g., steering committee, budget approvals).
  • Internal or external audit reports conducted during the model's lifecycle.

3.3 Backup and recovery data

Even if the system is decommissioned, backups containing historical data may be required to:

  • Respond to a subject access request (GDPR Art. 15).
  • Reconstruct the state of an incident under investigation.
  • Provide evidence of business continuity during a resilience audit.

3.4 Meta-information and indexing

A detailed archive catalogue (acting as a metadata “data lake”) facilitates future retrieval:

MetadataExample
Unique system identifier (UUID)sys-2021-CRM-001
Operational period2015‑01 → 2022‑06
Type of archived datalogs, config, contracts
Sensitivity levelpublic / internal / confidential
Legal retention period7 years (GDPR)

4. Technical architecture of a post-decommissioning archiving solution

4.1 Guiding principles

  • Immutability – Archives must be read-only and protected against any unauthorised modification (e.g. WORM — Write Once Read Many).
  • Verifiable integrity – Use of cryptographic hashes (SHA-256) and digital signatures to guarantee non-alteration.
  • Storage security – Encryption at rest (AES-256) and in transit (TLS 1.3).
  • Lifecycle management – Automated policies for retention, cold storage, and subsequent purging upon expiration.
  • Controlled accessibility – Access control based on the principle of least privilege (RBAC/ABAC), with logging of archive access.

4.2 Typical diagram

Technical diagram accompanying the article
Read the diagram notation
flowchart LR
    A[Sources à archiver] --> B{Pré‑traitement}
    B --> C[Normalisation & métadonnées]
    C --> D[Hachage + Signature]
    D --> E["Chiffrement (AES‑256)"]
    E --> F["Stockage WORM Cloud (ex. AWS Glacier Deep Archive, Azure Immutable Blob)"]
    F --> G["Catalogue Méta‑données (ElasticSearch / OpenSearch)"]
    G --> H[Portail d’accès contrôlé]
    H --> I[Audit & Reporting]

Cloud solutions offer native 'immutable' options (e.g. Amazon S3 Object Lock, Azure Immutable Blob Storage) which simplify compliance.

4.3 Common technological choices

RequirementOpen-source optionSaaS option
Immutable storageMinIO with WORM mode + Ceph RADOSGWAmazon S3 Object Lock, Azure Immutable Blob, Google Cloud Archive
Indexing and searchOpenSearch, Elastic Stack (with ILM)AWS OpenSearch Service, Azure Cognitive Search
Lifecycle managementApache NiFi + Python scriptsCloud native lifecycle policies (e.g. S3 Lifecycle, Azure Blob lifecycle)
Integrity verificationHashiCorp Vault for signaturesAWS Macie (anomaly detection)

The choice depends on the desired level of sovereignty, archive volume, and team maturity.

5. Operational decommissioning process with audit retention

  • Planning
  • Identify stakeholders (CIO, CISO, DPO, legal).
  • Catalogue applicable legal and contractual requirements.
  • Artefact inventory
  • Run an automated scan (e.g., PowerShell/CLI scripts) to list logs, databases, configurations, and contractual documents.
  • Validate completeness with business teams.
  • Classification & metadata
  • Apply the metadata schema presented in §4.2.
  • Assign a sensitivity level (public / internal / confidential).
  • Pre-processing and securing
  • Normalise formats (e.g., JSON for logs, YAML for IaC).
  • Generate SHA-256 hash + PGP signature.
  • Encrypt the stream to the archiving destination.
  • Immutable storage and indexing
  • Deposit artefacts into a WORM bucket configured with an appropriate retention policy.
  • Populate the metadata catalogue (e.g., OpenSearch).
  • Post-deployment integrity verification
  • Compare hashes calculated before and after transfer.
  • Document results in an archiving report.
  • Communication & training
  • Inform teams of archive availability (portal, access procedure).
  • Train data governance officers on how to consult the archives.
  • Periodic internal audit
  • Verify annually that retention policies are adhered to and that archive access remains compliant.

This process can be managed by an orchestration tool (e.g., Ansible, Terraform) to ensure the reproducibility and traceability of the decommissioning.

6. Cost-benefit analysis

ItemEstimated cost (over 5 years)Primary benefit
Cloud WORM storage (e.g., 10 TB at €0.00099/GB/month)~ ≈ €600Regulatory compliance, reduction of legal risk
Encryption & Key Management (KMS)≈ €300Protection against sensitive data leaks
Implementation of a catalogue (OpenSearch)€2,000 (SaaS licence or hosting)Fast search, time savings during audits
Process automation (scripts + CI/CD)€5,000 (initial development)Reduction of human error, standardisation
Training & governance€1,500Organisational adoption, improved access control

Return on investment is primarily measured in terms of penalty prevention (GDPR fines reaching up to 4% of annual turnover) and reputational protection, which is difficult to quantify but critical for companies operating in highly regulated sectors.

7. Key points of vigilance

Major risks

RiskCausePotential impactMitigation
Loss of integrity (corruption of the archive file)Hardware failure, transfer errorsInability to prove compliance → sanctionsUse hashing + signatures, verify upon every load
Unauthorised access to sensitive archivesPoor IAM management, compromised keysConfidentiality breach, data leakImplement the principle of least privilege, MFA, regular key rotation
Non-compliance with legal retention periodsMisconfigured retention policyPremature purging or excessive storage (cost)Automate lifecycle policies, annual audits
Archive format obsolescenceUse of undocumented proprietary formatsInability to read archives over the long termChoose open formats (JSON, CSV, Parquet), maintain technical documentation

Questions to consider before decommissioning

  • What are the legal retention periods applicable to the various artefacts?
  • Does the system already have a usable metadata catalogue?
  • What are the long-term storage costs and what cold archiving options are available?
  • Who will be responsible for the archive lifecycle (CIO, DPO, CISO)?

8. Use case: decommissioning of a legacy CRM platform

Context

A large financial services company migrated its internal CRM (on-premise version, Java EE, Oracle database) to a SaaS solution in 2022. The migration project generated:

  • 3 TB of application logs (access + audit).
  • 1 TB of daily backups of the customer database (personal data).
  • 250 GB of IaC infrastructure scripts (Ansible) and web.xml files.

Steps completed

PhaseActionResult
InventoryScan via elasticdump + PowerShell script to list Oracle databases.4,200 artefacts identified and classified by type.
ClassificationAssignment of GDPR labels (sensitivity 'confidential') and LPM (security logs).Cataloguing in OpenSearch, index crm-2022.
Pre-processingConversion of logs to JSON format, gzip compression, SHA-256 generation.Size reduced to 1.8 TB, hashes stored in a metadata table.
Encryption & StorageUse of AWS S3 Object Lock (Governance mode) + KMS.Immutable data for 10 years (LPM requirement).
Verificationaws s3api head-object script comparing source/destination hashes.100% verification success, audit report archived.
Documentation & trainingDrafting of the “CRM Archive Access” manual and a 2-hour session for the legal department.Operational procedure validated by the DPO.

Assessment

  • Compliance ensured with GDPR (customer data retention for 7 years).
  • Estimated annual storage cost of €1,200, significantly lower than the potential cost of a non-compliance fine.
  • Internal audit response time: < 30 minutes to extract requested logs, thanks to the OpenSearch catalogue.

9. Decision and Governance: How to choose the right archiving strategy

CriterionOption A – Full Archiving (all)Option B – Selective Archiving (logs + contracts)
CostHigh (large storage volume)Moderate (60% reduction in volume)
Legal CoverageMaximum, minimises risks of omissionSufficient if selection complies with legal requirements
Operational ComplexityHeavier metadata managementSimplified process, fewer classification steps
Recovery timePotentially long (searching through a large volume)Fast due to a restricted dataset
RecommendationIdeal for highly regulated sectors (finance, healthcare) where every trace may be required.Suitable for SMEs/mid-caps with budget constraints and limited requirements (e.g., security logs only).

The decision must be made in consultation between the CIO, DPO, CISO and the project steering committee, based on an impact/cost matrix.

10. Operational conclusion

Decommissioning does not mark the end of an organisation's responsibility: it triggers a retention cycle that must be orchestrated like any other critical IT function. By identifying essential data categories (logs, configurations, contracts, backups), classifying them according to standardised metadata and