[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADZ6GNXJYKNQJ6MZBBXDF1":3,"skill-same:01M6ADZ6GNXJYKNQJ6MZBBXDF1":99},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":17,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6ADZ6GNXJYKNQJ6MZBBXDF1","cloud-retention-config","云存储保留策略配置","Configures cloud storage retention policies across AWS S3, Azure Blob Storage, and Google Cloud Storage. Covers lifecycle rules, object lock, legal hold, immutability policies, cross-region replication retention alignment, and compliance mode configuration. Activate for cloud retention, S3 lifecycle, Azure retention, GCP retention policy queries.","跨 AWS S3、Azure Blob Storage 和 Google Cloud Storage 配置云存储保留策略。涵盖生命周期规则、对象锁定、法律保留、不可变性策略、跨区域复制保留对齐以及合规模式配置。适用于云保留、S3 生命周期、Azure 保留、GCP 保留策略查询等场景。","mukul975\u002FPrivacy-Data-Protection-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADNKWX1HF4Q5DKEXT5M774",338,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BT9F3Z67AB1M6CHA8X75WW","云架构师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTCSS28080YZ06CSC7C0SJ","云存储管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44],"config","cloud","cloud retention config","google","google cloud","policy","storage","azure","s3","compliance","privacy","data","aws","gcp","2026-11-10 10:12:30",false,"---\nname: cloud-retention-config\ndescription: >-\n  Configures cloud storage retention policies across AWS S3, Azure Blob Storage, and\n  Google Cloud Storage. Covers lifecycle rules, object lock, legal hold, immutability\n  policies, cross-region replication retention alignment, and compliance mode configuration.\n  Activate for cloud retention, S3 lifecycle, Azure retention, GCP retention policy queries.\nlicense: Apache-2.0\nmetadata:\n  author: mukul975\n  version: \"1.0\"\n  domain: privacy\n  subdomain: data-retention-deletion\n  tags: \"cloud-retention, s3-lifecycle, azure-blob-retention, gcp-retention, object-lock\"\n---\n\n# Cloud Storage Retention Configuration\n\n## Overview\n\nCloud storage platforms provide native retention and lifecycle management features that can enforce data retention schedules at the infrastructure level. Proper configuration ensures that personal data stored in cloud environments is automatically transitioned, archived, or deleted according to retention policies, while legal hold and object lock features prevent premature deletion of data subject to regulatory or litigation requirements. This skill covers configuration for the three major cloud platforms: AWS S3, Microsoft Azure Blob Storage, and Google Cloud Storage.\n\n## Legal Context\n\n### GDPR Article 5(1)(e) — Storage Limitation\n\nCloud storage retention policies are a technical implementation of the storage limitation principle, ensuring data is not retained beyond the period necessary for processing purposes.\n\n### GDPR Article 32 — Security of Processing\n\nRetention configuration must include appropriate security measures, including encryption at rest, access controls, and audit logging for all retention-related operations.\n\n### GDPR Article 25 — Data Protection by Design and by Default\n\nCloud retention policies should be configured as default settings on all storage resources, rather than applied retroactively.\n\n## AWS S3 Lifecycle and Retention Configuration\n\n### S3 Lifecycle Rules\n\nS3 Lifecycle rules automate transitions between storage classes and object expiration:\n\n#### Lifecycle Rule Configuration for Orion Data Vault Corp\n\n| Rule Name | Prefix\u002FTag Filter | Transition | Expiration | Purpose |\n|-----------|-------------------|------------|------------|---------|\n| customer-data-lifecycle | prefix: `customer-data\u002F` | 90 days → S3 Glacier Instant Retrieval; 365 days → S3 Glacier Deep Archive | 2,190 days (6 years) | Customer transaction records — HMRC retention |\n| marketing-data-lifecycle | tag: `data-category=marketing` | 180 days → S3 Intelligent-Tiering | 730 days (2 years) | Marketing contact data — consent-based retention |\n| analytics-data-lifecycle | prefix: `analytics\u002F` | 90 days → S3 Glacier Instant Retrieval | 790 days (26 months) | Website analytics — ICO\u002FCNIL recommended period |\n| cctv-footage-lifecycle | prefix: `cctv\u002F` | None | 30 days | CCTV footage — ICO CCTV Code of Practice |\n| applicant-data-lifecycle | prefix: `recruitment\u002F` | None | 180 days (6 months) | Unsuccessful job applicant data |\n| financial-records-lifecycle | prefix: `finance\u002F` | 365 days → S3 Glacier Deep Archive | 2,190 days (6 years) | Financial and tax records — Companies Act 2006 |\n| employee-records-lifecycle | tag: `data-category=employee` | 730 days → S3 Glacier Deep Archive | Controlled by HR system (employment + 6 years) | Employee HR records |\n\n#### S3 Lifecycle Rule — JSON Configuration Example\n\n```json\n{\n  \"Rules\": [\n    {\n      \"ID\": \"customer-data-lifecycle\",\n      \"Filter\": {\n        \"Prefix\": \"customer-data\u002F\"\n      },\n      \"Status\": \"Enabled\",\n      \"Transitions\": [\n        {\n          \"Days\": 90,\n          \"StorageClass\": \"GLACIER_IR\"\n        },\n        {\n          \"Days\": 365,\n          \"StorageClass\": \"DEEP_ARCHIVE\"\n        }\n      ],\n      \"Expiration\": {\n        \"Days\": 2190\n      },\n      \"NoncurrentVersionTransitions\": [\n        {\n          \"NoncurrentDays\": 30,\n          \"StorageClass\": \"GLACIER_IR\"\n        }\n      ],\n      \"NoncurrentVersionExpiration\": {\n        \"NoncurrentDays\": 2190\n      }\n    }\n  ]\n}\n```\n\n### S3 Object Lock\n\nS3 Object Lock prevents objects from being deleted or overwritten for a fixed retention period or indefinitely. It operates in two modes:\n\n| Mode | Behaviour | Use Case at Orion Data Vault Corp |\n|------|-----------|----------------------------------|\n| **Governance Mode** | Prevents deletion by most users; users with `s3:BypassGovernanceRetention` permission can override | Standard retention enforcement — allows DPO-approved early deletion for valid Art. 17 requests |\n| **Compliance Mode** | Prevents deletion by ALL users, including root account, for the entire retention period | Regulatory records where deletion before expiry is legally prohibited (e.g., AML records under MLR 2017) |\n\n#### Object Lock Configuration\n\n```json\n{\n  \"ObjectLockConfiguration\": {\n    \"ObjectLockEnabled\": \"Enabled\",\n    \"Rule\": {\n      \"DefaultRetention\": {\n        \"Mode\": \"GOVERNANCE\",\n        \"Days\": 2190\n      }\n    }\n  }\n}\n```\n\n**Critical consideration for GDPR erasure**: If using Compliance Mode, data subject erasure requests under Art. 17 cannot be fulfilled until the retention period expires. Use Governance Mode for data categories where erasure requests are possible, and reserve Compliance Mode only for data with mandatory statutory retention that overrides the right to erasure under Art. 17(3)(b).\n\n### S3 Legal Hold\n\nLegal hold is an independent, on\u002Foff flag that prevents object deletion regardless of retention settings:\n\n```\naws s3api put-object-legal-hold \\\n  --bucket orion-data-vault-regulated \\\n  --key customer-data\u002F2024\u002Ftransaction-batch-0142.parquet \\\n  --legal-hold Status=ON\n```\n\nLegal hold must be:\n- Applied immediately upon receipt of a litigation hold notice\n- Tracked in the litigation hold management register (cross-reference: litigation-hold-mgmt skill)\n- Removed only upon written authorization from Legal counsel\n- Auditable — all legal hold changes logged via CloudTrail\n\n## Microsoft Azure Blob Storage Retention\n\n### Immutability Policies\n\nAzure Blob Storage supports immutability policies at the container level:\n\n| Policy Type | Behaviour | Configuration |\n|------------|-----------|---------------|\n| **Time-based retention** | Prevents modification and deletion for a specified interval | Set retention interval in days; can be locked (irreversible) or unlocked |\n| **Legal hold** | Prevents modification and deletion until all legal hold tags are cleared | Apply named legal hold tags; multiple holds can coexist |\n\n#### Time-Based Retention Policy Configuration\n\n```json\n{\n  \"properties\": {\n    \"immutabilityPeriodSinceCreationInDays\": 2190,\n    \"allowProtectedAppendWrites\": true,\n    \"allowProtectedAppendWritesAll\": false\n  }\n}\n```\n\n#### Azure Lifecycle Management Rules\n\n```json\n{\n  \"rules\": [\n    {\n      \"enabled\": true,\n      \"name\": \"customer-data-retention\",\n      \"type\": \"Lifecycle\",\n      \"definition\": {\n        \"filters\": {\n          \"blobTypes\": [\"blockBlob\"],\n          \"prefixMatch\": [\"customer-data\u002F\"]\n        },\n        \"actions\": {\n          \"baseBlob\": {\n            \"tierToCool\": {\n              \"daysAfterModificationGreaterThan\": 90\n            },\n            \"tierToArchive\": {\n              \"daysAfterModificationGreaterThan\": 365\n            },\n            \"delete\": {\n              \"daysAfterModificationGreaterThan\": 2190\n            }\n          },\n          \"snapshot\": {\n            \"delete\": {\n              \"daysAfterCreationGreaterThan\": 2190\n            }\n          }\n        }\n      }\n    },\n    {\n      \"enabled\": true,\n      \"name\": \"analytics-data-retention\",\n      \"type\": \"Lifecycle\",\n      \"definition\": {\n        \"filters\": {\n          \"blobTypes\": [\"blockBlob\"],\n          \"prefixMatch\": [\"analytics\u002F\"]\n        },\n        \"actions\": {\n          \"baseBlob\": {\n            \"tierToCool\": {\n              \"daysAfterModificationGreaterThan\": 90\n            },\n            \"delete\": {\n              \"daysAfterModificationGreaterThan\": 790\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Azure Legal Hold\n\n```\naz storage container legal-hold set \\\n  --account-name oriondatavault \\\n  --container-name regulated-data \\\n  --tags \"litigation-2026-001\" \"regulatory-investigation-2026-003\"\n```\n\n### Azure Versioning and Soft Delete Interaction\n\nWhen configuring retention, account for Azure's soft delete and versioning features:\n\n| Feature | Retention Impact | Recommended Setting |\n|---------|-----------------|-------------------|\n| Blob soft delete | Deleted blobs retained for recovery period | Set to 14 days — ensure actual deletion occurs after soft delete period |\n| Container soft delete | Deleted containers retained for recovery | Set to 14 days |\n| Blob versioning | Previous versions retained | Apply lifecycle rules to versions; ensure expired versions are deleted |\n\n## Google Cloud Storage Retention\n\n### Bucket-Level Retention Policy\n\nGCP applies retention policies at the bucket level. Objects cannot be deleted or overwritten until the retention period expires:\n\n```json\n{\n  \"retentionPolicy\": {\n    \"retentionPeriod\": \"189216000\",\n    \"isLocked\": false\n  }\n}\n```\n\nThe `retentionPeriod` is specified in seconds. Common values:\n\n| Retention Period | Seconds | Use Case |\n|-----------------|---------|----------|\n| 30 days | 2,592,000 | CCTV footage |\n| 6 months | 15,552,000 | Unsuccessful applicant data |\n| 26 months | 68,256,000 | Analytics data |\n| 2 years | 63,072,000 | Marketing data |\n| 6 years | 189,216,000 | Financial\u002Ftax records |\n| 7 years | 220,752,000 | Audit records |\n\n#### Locking a Retention Policy\n\n```\ngcloud storage buckets update gs:\u002F\u002Forion-regulated-finance \\\n  --lock-retention-policy\n```\n\n**Warning**: Locking a retention policy is IRREVERSIBLE. Once locked, the retention period cannot be reduced or removed. The bucket cannot be deleted until every object in it has met its retention period. Only lock policies for data categories with absolute statutory retention requirements that override Art. 17 rights.\n\n### GCP Object Hold\n\n| Hold Type | Behaviour | Use Case |\n|-----------|-----------|----------|\n| **Temporary hold** | Prevents deletion; can be removed at any time | Art. 17 request pauses (assessment period); temporary preservation |\n| **Event-based hold** | Prevents deletion until the hold is released; retention period begins on hold release | Data where retention period starts from a future event (e.g., contract termination) |\n\n```\ngcloud storage objects update gs:\u002F\u002Forion-regulated-data\u002Fcustomer-data\u002Fbatch-0142.parquet \\\n  --temporary-hold\n```\n\n### GCP Lifecycle Rules\n\n```json\n{\n  \"lifecycle\": {\n    \"rule\": [\n      {\n        \"action\": {\n          \"type\": \"SetStorageClass\",\n          \"storageClass\": \"NEARLINE\"\n        },\n        \"condition\": {\n          \"age\": 90,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      },\n      {\n        \"action\": {\n          \"type\": \"SetStorageClass\",\n          \"storageClass\": \"ARCHIVE\"\n        },\n        \"condition\": {\n          \"age\": 365,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      },\n      {\n        \"action\": {\n          \"type\": \"Delete\"\n        },\n        \"condition\": {\n          \"age\": 2190,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      }\n    ]\n  }\n}\n```\n\n## Cross-Region Replication Retention Alignment\n\nWhen data is replicated across regions for availability or disaster recovery, retention policies must be aligned:\n\n### Alignment Requirements\n\n1. **Identical retention periods**: Replicated data in the destination region must have the same retention period as the source.\n2. **Synchronized lifecycle rules**: Lifecycle transitions and expirations must be configured identically on source and destination buckets\u002Fcontainers.\n3. **Legal hold propagation**: Legal holds applied in the source must also be applied in the destination. Configure automated propagation.\n4. **Deletion propagation**: When an object expires or is deleted in the source, the replica must also be deleted. Configure replication to handle delete markers.\n5. **Jurisdictional considerations**: If the destination region is in a different jurisdiction, confirm that the applicable retention requirements in that jurisdiction do not conflict with the source retention period.\n\n### Cross-Region Configuration Checklist\n\n| Check | AWS | Azure | GCP |\n|-------|-----|-------|-----|\n| Lifecycle rules match source | Apply identical S3 lifecycle rules to destination bucket | Apply identical lifecycle management policy to destination container | Apply identical lifecycle rules to destination bucket |\n| Retention\u002Flock settings match | Configure identical Object Lock settings on destination | Apply identical immutability policy to destination | Apply identical retention policy to destination |\n| Delete marker replication | Enable `DeleteMarkerReplication` in replication config | Enable blob change feed and handle deletes | Configure bucket notifications for deletion events |\n| Legal hold synchronization | Use Lambda triggered by CloudTrail to propagate legal holds | Use Event Grid + Azure Function to propagate legal holds | Use Cloud Functions triggered by audit logs to propagate holds |\n| Monitoring | CloudWatch metrics on replication lag | Azure Monitor replication metrics | Cloud Monitoring replication metrics |\n\n## Compliance Monitoring\n\n### Monthly Cloud Retention Audit\n\n1. **Policy drift detection**: Compare active lifecycle rules and retention policies against the approved retention schedule. Flag any discrepancies.\n2. **Coverage verification**: Confirm that all storage buckets\u002Fcontainers holding personal data have applicable retention policies.\n3. **Legal hold inventory**: List all active legal holds across all cloud platforms. Cross-reference with the litigation hold register to identify holds that should have been released.\n4. **Expiration verification**: Sample recently expired objects to confirm they were actually deleted (not just transitioned or soft-deleted).\n5. **Cross-region consistency**: Verify that replicated buckets\u002Fcontainers maintain identical retention configuration.\n\n### Alert Configuration\n\n| Alert | Condition | Action |\n|-------|-----------|--------|\n| Policy removed | Retention policy or lifecycle rule deleted from a regulated bucket | Immediate alert to Cloud Security + DPO |\n| Object lock bypass | `s3:BypassGovernanceRetention` used | Alert to DPO; verify authorized deletion |\n| Legal hold change | Legal hold applied or removed | Log to litigation hold register; alert Legal |\n| Retention policy unlock attempt | Attempt to modify locked retention policy | Alert to Cloud Security (should fail — investigate) |\n| Replication lag > 24h | Cross-region replication behind by more than 24 hours | Alert IT Operations — potential retention gap in DR region |\n","# Cloud Storage Retention Configuration\n\n## Overview\n\nCloud storage platforms provide native retention and lifecycle management features that can enforce data retention schedules at the infrastructure level. Proper configuration ensures that personal data stored in cloud environments is automatically transitioned, archived, or deleted according to retention policies, while legal hold and object lock features prevent premature deletion of data subject to regulatory or litigation requirements. This skill covers configuration for the three major cloud platforms: AWS S3, Microsoft Azure Blob Storage, and Google Cloud Storage.\n\n## Legal Context\n\n### GDPR Article 5(1)(e) — Storage Limitation\n\nCloud storage retention policies are a technical implementation of the storage limitation principle, ensuring data is not retained beyond the period necessary for processing purposes.\n\n### GDPR Article 32 — Security of Processing\n\nRetention configuration must include appropriate security measures, including encryption at rest, access controls, and audit logging for all retention-related operations.\n\n### GDPR Article 25 — Data Protection by Design and by Default\n\nCloud retention policies should be configured as default settings on all storage resources, rather than applied retroactively.\n\n## AWS S3 Lifecycle and Retention Configuration\n\n### S3 Lifecycle Rules\n\nS3 Lifecycle rules automate transitions between storage classes and object expiration:\n\n#### Lifecycle Rule Configuration for Orion Data Vault Corp\n\n| Rule Name | Prefix\u002FTag Filter | Transition | Expiration | Purpose |\n|-----------|-------------------|------------|------------|---------|\n| customer-data-lifecycle | prefix: `customer-data\u002F` | 90 days → S3 Glacier Instant Retrieval; 365 days → S3 Glacier Deep Archive | 2,190 days (6 years) | Customer transaction records — HMRC retention |\n| marketing-data-lifecycle | tag: `data-category=marketing` | 180 days → S3 Intelligent-Tiering | 730 days (2 years) | Marketing contact data — consent-based retention |\n| analytics-data-lifecycle | prefix: `analytics\u002F` | 90 days → S3 Glacier Instant Retrieval | 790 days (26 months) | Website analytics — ICO\u002FCNIL recommended period |\n| cctv-footage-lifecycle | prefix: `cctv\u002F` | None | 30 days | CCTV footage — ICO CCTV Code of Practice |\n| applicant-data-lifecycle | prefix: `recruitment\u002F` | None | 180 days (6 months) | Unsuccessful job applicant data |\n| financial-records-lifecycle | prefix: `finance\u002F` | 365 days → S3 Glacier Deep Archive | 2,190 days (6 years) | Financial and tax records — Companies Act 2006 |\n| employee-records-lifecycle | tag: `data-category=employee` | 730 days → S3 Glacier Deep Archive | Controlled by HR system (employment + 6 years) | Employee HR records |\n\n#### S3 Lifecycle Rule — JSON Configuration Example\n\n```json\n{\n  \"Rules\": [\n    {\n      \"ID\": \"customer-data-lifecycle\",\n      \"Filter\": {\n        \"Prefix\": \"customer-data\u002F\"\n      },\n      \"Status\": \"Enabled\",\n      \"Transitions\": [\n        {\n          \"Days\": 90,\n          \"StorageClass\": \"GLACIER_IR\"\n        },\n        {\n          \"Days\": 365,\n          \"StorageClass\": \"DEEP_ARCHIVE\"\n        }\n      ],\n      \"Expiration\": {\n        \"Days\": 2190\n      },\n      \"NoncurrentVersionTransitions\": [\n        {\n          \"NoncurrentDays\": 30,\n          \"StorageClass\": \"GLACIER_IR\"\n        }\n      ],\n      \"NoncurrentVersionExpiration\": {\n        \"NoncurrentDays\": 2190\n      }\n    }\n  ]\n}\n```\n\n### S3 Object Lock\n\nS3 Object Lock prevents objects from being deleted or overwritten for a fixed retention period or indefinitely. It operates in two modes:\n\n| Mode | Behaviour | Use Case at Orion Data Vault Corp |\n|------|-----------|----------------------------------|\n| **Governance Mode** | Prevents deletion by most users; users with `s3:BypassGovernanceRetention` permission can override | Standard retention enforcement — allows DPO-approved early deletion for valid Art. 17 requests |\n| **Compliance Mode** | Prevents deletion by ALL users, including root account, for the entire retention period | Regulatory records where deletion before expiry is legally prohibited (e.g., AML records under MLR 2017) |\n\n#### Object Lock Configuration\n\n```json\n{\n  \"ObjectLockConfiguration\": {\n    \"ObjectLockEnabled\": \"Enabled\",\n    \"Rule\": {\n      \"DefaultRetention\": {\n        \"Mode\": \"GOVERNANCE\",\n        \"Days\": 2190\n      }\n    }\n  }\n}\n```\n\n**Critical consideration for GDPR erasure**: If using Compliance Mode, data subject erasure requests under Art. 17 cannot be fulfilled until the retention period expires. Use Governance Mode for data categories where erasure requests are possible, and reserve Compliance Mode only for data with mandatory statutory retention that overrides the right to erasure under Art. 17(3)(b).\n\n### S3 Legal Hold\n\nLegal hold is an independent, on\u002Foff flag that prevents object deletion regardless of retention settings:\n\n```\naws s3api put-object-legal-hold \\\n  --bucket orion-data-vault-regulated \\\n  --key customer-data\u002F2024\u002Ftransaction-batch-0142.parquet \\\n  --legal-hold Status=ON\n```\n\nLegal hold must be:\n- Applied immediately upon receipt of a litigation hold notice\n- Tracked in the litigation hold management register (cross-reference: litigation-hold-mgmt skill)\n- Removed only upon written authorization from Legal counsel\n- Auditable — all legal hold changes logged via CloudTrail\n\n## Microsoft Azure Blob Storage Retention\n\n### Immutability Policies\n\nAzure Blob Storage supports immutability policies at the container level:\n\n| Policy Type | Behaviour | Configuration |\n|------------|-----------|---------------|\n| **Time-based retention** | Prevents modification and deletion for a specified interval | Set retention interval in days; can be locked (irreversible) or unlocked |\n| **Legal hold** | Prevents modification and deletion until all legal hold tags are cleared | Apply named legal hold tags; multiple holds can coexist |\n\n#### Time-Based Retention Policy Configuration\n\n```json\n{\n  \"properties\": {\n    \"immutabilityPeriodSinceCreationInDays\": 2190,\n    \"allowProtectedAppendWrites\": true,\n    \"allowProtectedAppendWritesAll\": false\n  }\n}\n```\n\n#### Azure Lifecycle Management Rules\n\n```json\n{\n  \"rules\": [\n    {\n      \"enabled\": true,\n      \"name\": \"customer-data-retention\",\n      \"type\": \"Lifecycle\",\n      \"definition\": {\n        \"filters\": {\n          \"blobTypes\": [\"blockBlob\"],\n          \"prefixMatch\": [\"customer-data\u002F\"]\n        },\n        \"actions\": {\n          \"baseBlob\": {\n            \"tierToCool\": {\n              \"daysAfterModificationGreaterThan\": 90\n            },\n            \"tierToArchive\": {\n              \"daysAfterModificationGreaterThan\": 365\n            },\n            \"delete\": {\n              \"daysAfterModificationGreaterThan\": 2190\n            }\n          },\n          \"snapshot\": {\n            \"delete\": {\n              \"daysAfterCreationGreaterThan\": 2190\n            }\n          }\n        }\n      }\n    },\n    {\n      \"enabled\": true,\n      \"name\": \"analytics-data-retention\",\n      \"type\": \"Lifecycle\",\n      \"definition\": {\n        \"filters\": {\n          \"blobTypes\": [\"blockBlob\"],\n          \"prefixMatch\": [\"analytics\u002F\"]\n        },\n        \"actions\": {\n          \"baseBlob\": {\n            \"tierToCool\": {\n              \"daysAfterModificationGreaterThan\": 90\n            },\n            \"delete\": {\n              \"daysAfterModificationGreaterThan\": 790\n            }\n          }\n        }\n      }\n    }\n  ]\n}\n```\n\n#### Azure Legal Hold\n\n```\naz storage container legal-hold set \\\n  --account-name oriondatavault \\\n  --container-name regulated-data \\\n  --tags \"litigation-2026-001\" \"regulatory-investigation-2026-003\"\n```\n\n### Azure Versioning and Soft Delete Interaction\n\nWhen configuring retention, account for Azure's soft delete and versioning features:\n\n| Feature | Retention Impact | Recommended Setting |\n|---------|-----------------|-------------------|\n| Blob soft delete | Deleted blobs retained for recovery period | Set to 14 days — ensure actual deletion occurs after soft delete period |\n| Container soft delete | Deleted containers retained for recovery | Set to 14 days |\n| Blob versioning | Previous versions retained | Apply lifecycle rules to versions; ensure expired versions are deleted |\n\n## Google Cloud Storage Retention\n\n### Bucket-Level Retention Policy\n\nGCP applies retention policies at the bucket level. Objects cannot be deleted or overwritten until the retention period expires:\n\n```json\n{\n  \"retentionPolicy\": {\n    \"retentionPeriod\": \"189216000\",\n    \"isLocked\": false\n  }\n}\n```\n\nThe `retentionPeriod` is specified in seconds. Common values:\n\n| Retention Period | Seconds | Use Case |\n|-----------------|---------|----------|\n| 30 days | 2,592,000 | CCTV footage |\n| 6 months | 15,552,000 | Unsuccessful applicant data |\n| 26 months | 68,256,000 | Analytics data |\n| 2 years | 63,072,000 | Marketing data |\n| 6 years | 189,216,000 | Financial\u002Ftax records |\n| 7 years | 220,752,000 | Audit records |\n\n#### Locking a Retention Policy\n\n```\ngcloud storage buckets update gs:\u002F\u002Forion-regulated-finance \\\n  --lock-retention-policy\n```\n\n**Warning**: Locking a retention policy is IRREVERSIBLE. Once locked, the retention period cannot be reduced or removed. The bucket cannot be deleted until every object in it has met its retention period. Only lock policies for data categories with absolute statutory retention requirements that override Art. 17 rights.\n\n### GCP Object Hold\n\n| Hold Type | Behaviour | Use Case |\n|-----------|-----------|----------|\n| **Temporary hold** | Prevents deletion; can be removed at any time | Art. 17 request pauses (assessment period); temporary preservation |\n| **Event-based hold** | Prevents deletion until the hold is released; retention period begins on hold release | Data where retention period starts from a future event (e.g., contract termination) |\n\n```\ngcloud storage objects update gs:\u002F\u002Forion-regulated-data\u002Fcustomer-data\u002Fbatch-0142.parquet \\\n  --temporary-hold\n```\n\n### GCP Lifecycle Rules\n\n```json\n{\n  \"lifecycle\": {\n    \"rule\": [\n      {\n        \"action\": {\n          \"type\": \"SetStorageClass\",\n          \"storageClass\": \"NEARLINE\"\n        },\n        \"condition\": {\n          \"age\": 90,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      },\n      {\n        \"action\": {\n          \"type\": \"SetStorageClass\",\n          \"storageClass\": \"ARCHIVE\"\n        },\n        \"condition\": {\n          \"age\": 365,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      },\n      {\n        \"action\": {\n          \"type\": \"Delete\"\n        },\n        \"condition\": {\n          \"age\": 2190,\n          \"matchesPrefix\": [\"customer-data\u002F\"]\n        }\n      }\n    ]\n  }\n}\n```\n\n## Cross-Region Replication Retention Alignment\n\nWhen data is replicated across regions for availability or disaster recovery, retention policies must be aligned:\n\n### Alignment Requirements\n\n1. **Identical retention periods**: Replicated data in the destination region must have the same retention period as the source.\n2. **Synchronized lifecycle rules**: Lifecycle transitions and expirations must be configured identically on source and destination buckets\u002Fcontainers.\n3. **Legal hold propagation**: Legal holds applied in the source must also be applied in the destination. Configure automated propagation.\n4. **Deletion propagation**: When an object expires or is deleted in the source, the replica must also be deleted. Configure replication to handle delete markers.\n5. **Jurisdictional considerations**: If the destination region is in a different jurisdiction, confirm that the applicable retention requirements in that jurisdiction do not conflict with the source retention period.\n\n### Cross-Region Configuration Checklist\n\n| Check | AWS | Azure | GCP |\n|-------|-----|-------|-----|\n| Lifecycle rules match source | Apply identical S3 lifecycle rules to destination bucket | Apply identical lifecycle management policy to destination container | Apply identical lifecycle rules to destination bucket |\n| Retention\u002Flock settings match | Configure identical Object Lock settings on destination | Apply identical immutability policy to destination | Apply identical retention policy to destination |\n| Delete marker replication | Enable `DeleteMarkerReplication` in replication config | Enable blob change feed and handle deletes | Configure bucket notifications for deletion events |\n| Legal hold synchronization | Use Lambda triggered by CloudTrail to propagate legal holds | Use Event Grid + Azure Function to propagate legal holds | Use Cloud Functions triggered by audit logs to propagate holds |\n| Monitoring | CloudWatch metrics on replication lag | Azure Monitor replication metrics | Cloud Monitoring replication metrics |\n\n## Compliance Monitoring\n\n### Monthly Cloud Retention Audit\n\n1. **Policy drift detection**: Compare active lifecycle rules and retention policies against the approved retention schedule. Flag any discrepancies.\n2. **Coverage verification**: Confirm that all storage buckets\u002Fcontainers holding personal data have applicable retention policies.\n3. **Legal hold inventory**: List all active legal holds across all cloud platforms. Cross-reference with the litigation hold register to identify holds that should have been released.\n4. **Expiration verification**: Sample recently expired objects to confirm they were actually deleted (not just transitioned or soft-deleted).\n5. **Cross-region consistency**: Verify that replicated buckets\u002Fcontainers maintain identical retention configuration.\n\n### Alert Configuration\n\n| Alert | Condition | Action |\n|-------|-----------|--------|\n| Policy removed | Retention policy or lifecycle rule deleted from a regulated bucket | Immediate alert to Cloud Security + DPO |\n| Object lock bypass | `s3:BypassGovernanceRetention` used | Alert to DPO; verify authorized deletion |\n| Legal hold change | Legal hold applied or removed | Log to litigation hold register; alert Legal |\n| Retention policy unlock attempt | Attempt to modify locked retention policy | Alert to Cloud Security (should fail — investigate) |\n| Replication lag > 24h | Cross-region replication behind by more than 24 hours | Alert IT Operations — potential retention gap in DR region |\n",{"name":5,"license":16,"metadata":50,"description":7},{"tags":51,"author":10,"domain":41,"version":52,"subdomain":53},"cloud-retention, s3-lifecycle, azure-blob-retention, gcp-retention, object-lock","1.0","data-retention-deletion","main","9b2ef9eae161c00a17241d42a388571321b33e9f","plugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config",68,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-03-17 04:06:52",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cloud-retention-config",{"tool":69,"command":70},"bunx","bunx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cloud-retention-config",{"tool":72,"command":73},"pnpm","pnpm dlx skills add mukul975\u002FPrivacy-Data-Protection-Skills --skill cloud-retention-config","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002FSKILL.md",true,[77,83,89,93],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"assets\u002Ftemplate.md","ASSET","资产文件",1809,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002Fassets\u002Ftemplate.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fstandards.md","REFERENCE","参考文档",2728,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002Freferences\u002Fstandards.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fworkflows.md",3481,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002Freferences\u002Fworkflows.md",{"path":94,"resourceType":95,"resourceTypeDesc":96,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fprocess.py","SCRIPT","脚本",7679,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdata-retention-skills\u002Fskills\u002Fcloud-retention-config\u002Fscripts\u002Fprocess.py",[100,121,142,160,182,198],{"skillNo":101,"name":102,"nameZh":103,"description":104,"descriptionZh":105,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":114,"publishedAt":45},"01M6AG6K8R3XW10ENWH2FH18RH","workplace-email-privacy","职场邮件监控合规","Implements email and internet monitoring compliance in the workplace per Barbulescu v Romania (ECHR Grand Chamber), EDPB guidance, and national labour law. Covers acceptable use policies, legitimate expectation of privacy, proportionality testing, and content vs metadata monitoring. Keywords: email monitoring, Barbulescu, workplace privacy, internet monitoring, acceptable use policy, ECHR, proportionality.","依据 Barbulescu 诉罗马尼亚案（欧洲人权法院大法庭）、EDPB 指引及各国劳动法，实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词：邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fworkplace-email-privacy\u002FSKILL.md",[108,111],{"categoryNo":109,"categoryName":110,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZ8629M5XJGKJA00EMEKY5","人力资源与劳动法咨询",{"categoryNo":112,"categoryName":113,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BZ862SE2RVA3NWBPE38BDA","人力资源专员",[115,116,41,40,117,42,36,118,119,120],"email","workplace email privacy","content","testing","monitoring","metadata",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":135,"publishedAt":45},"01M6AG6FRCBJY7D061BJZMNV49","whistleblower-data","举报人数据保护合规","Implements data protection compliance for whistleblowing systems under EU Directive 2019\u002F1937 and GDPR. Covers anonymous reporting channels, identity protection for whistleblowers and accused persons, retention limits, access restrictions, and retaliation prevention. Addresses national transpositions and DPA guidance. Keywords: whistleblower, Directive 2019\u002F1937, anonymous reporting, identity protection, retaliation, retention, reporting channel.","依据欧盟指令 2019\u002F1937 和 GDPR，为举报（吹哨）系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构（DPA）指引。关键词：举报人、指令 2019\u002F1937、匿名举报、身份保护、报复、保存期限、举报渠道。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fwhistleblower-data\u002FSKILL.md",[129,132],{"categoryNo":130,"categoryName":131,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C8829FDNTDYQRD7JSR70R9","数据保护法合规",{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C8X73GN95MVD9ZBEFQ388G","隐私合规专员",[42,136,137,138,40,139,140,41,141],"whistleblower data","identity","reporting","data protection","gdpr","prevention",{"skillNo":143,"name":144,"nameZh":145,"description":146,"descriptionZh":147,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":154,"publishedAt":45},"01M6AG6CJP0PW3X65HC7VP9SR9","vendor-termination-data","供应商终止数据返还与删除","Vendor termination data return and deletion procedures per GDPR Article 28(3)(g). Covers data extraction formats, deletion certification requirements, transition planning, residual data handling, and post-termination verification.","依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-termination-data\u002FSKILL.md",[150,153],{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C86Y048YZK87F0K9M849KD","GDPR合规管理",{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},[42,155,156,157,158,140,41,159],"vendor termination data","planning","verification","extraction","certification",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":172,"publishedAt":45},"01M6AG69E277DXZB2NF6KV17ZA","vendor-risk-scoring","供应商隐私风险评分","Vendor privacy risk tiering methodology for processor management. Covers scoring factors including data volume, sensitivity, transfer locations, certifications, breach history, and control maturity with weighted risk calculation and tier assignment.","面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素，通过加权风险计算进行风险分级与等级划分。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-risk-scoring\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0H4NZYRXY1BY7X3G295NB","供应商准入与绩效管理",{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},[173,174,175,176,177,178,179,180,41,42,181],"vendor risk scoring","risk","risk scoring","methodology","risk-scoring","assessment","transfer","certifications","processor",{"skillNo":183,"name":184,"nameZh":185,"description":186,"descriptionZh":187,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":192,"publishedAt":45},"01M6AG6655ABFKT2BBWHCP4PAT","vendor-privacy-due-diligence","供应商隐私尽职调查","Pre-contract vendor privacy due diligence per GDPR Article 28(1). Covers risk questionnaires, technical controls assessment, certification review, data flow analysis, and documented sufficiency decisions for processor engagement.","依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-due-diligence\u002FSKILL.md",[190,191],{"categoryNo":169,"categoryName":170,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},[41,193,140,194,178,195,196,42,181,174,159,197],"vendor privacy due diligence","review","onboarding","flow","analysis",{"skillNo":199,"name":200,"nameZh":201,"description":202,"descriptionZh":203,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":204,"categories":205,"keywords":208,"publishedAt":45},"01M6AG62C3VD8SYNGH4N7RHZTE","vendor-privacy-audit","供应商隐私合规审计","On-site and remote vendor audit procedures per GDPR Article 28(3)(h). Covers audit planning, evidence collection methodologies, finding classification, remediation tracking, and audit report generation for processor compliance verification.","依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FPrivacy-Data-Protection-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fprivacy\u002Fvendor-privacy-audit\u002FSKILL.md",[206,207],{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},[209,210,41,211,157,212,40,140,213,181,214,215,216,156],"vendor privacy audit","audit","report","audit report","remediation","collection","remediation-tracking","classification"]