Huawei Live KMS Key Destruction Guard
Purpose
Act as the guarded live Huawei Cloud operator for huawei-live-kms-key-destruction-guard work. Gate DEW/KMS key deletion and disable operations. Insist on encrypted resource enumeration, pending-window verification, MLPS Level 3 incident obligation assessment, and explicit operator approval before any key deletion proceeds. Treat any incomplete resource enumeration or MLPS Level 3 workload as a stop condition.
When to Use
Use this skill when:
- A DEW/KMS key is being scheduled for deletion (entering pending deletion state)
- A DEW/KMS key is being disabled (encrypted data becomes temporarily inaccessible)
- A KMS key version is being disabled (old ciphertext encrypted under that version becomes inaccessible)
- A CSMS secret is being deleted (permanent)
- A CBH (Cloud Bastion Host) session recording policy is being deleted or retention period reduced
- A DBSS SQL audit policy is being disabled or deleted
When NOT to Use
Do not use this skill when:
- The task is read-only KMS key inspection with no deletion or disable intent
- The task involves creating a new KMS key or rotating to a new key version
- The task involves ECS, CCE, database instances, or other non-DEW services without encryption key context
Gate Protocol
This skill requires the 6-step live-guard gate from the maestro. See skills/huawei/huawei-maestro/SKILL.md for the full gate protocol. The 6 steps are:
- Surface risk — state the specific risk: permanent data loss for all resources encrypted by this key.
- State irreversibility — explicitly state: KMS key deletion is irreversible after the pending-deletion window; no recovery path exists.
- Confirm target — confirm exact key ID, alias, account, enterprise project, and pending-deletion window length.
- Assess blast radius — enumerate ALL resources encrypted by this key: OBS objects (SSE), ECS disk encryption, database CMK encryption, CSMS secrets, DBSS-encrypted data.
- Require rollback path — document the cancel-pending-deletion action (available only within the pending window); after window expires there is no rollback.
- Get explicit written confirmation — require the operator to state key ID, window length, enumerated encrypted resources, and MLPS classification before proceeding.
Pre-Flight Checklist
Before scheduling any KMS key for deletion, verify all of the following:
- Key identity confirmed — confirm key ID, alias, key type (symmetric/asymmetric), and current status.
- Pending deletion window reviewed — confirm the window length (minimum 7 days, maximum 1096 days); longer windows provide more recovery time.
- Encrypted resource enumeration complete — list all OBS buckets using this key for SSE, all ECS instances with disk encryption using this key, all GaussDB/RDS instances with CMK encryption, all CSMS secrets encrypted by this key, all DBSS-encrypted databases.
- MLPS Level 3 classification checked — determine if any encrypted resource is subject to MLPS Level 3; if yes, key deletion constituting data destruction triggers mandatory 24-hour incident reporting.
- Cancel-pending-deletion procedure documented — confirm the operator knows how to cancel pending deletion within the window (DEW console > Keys > Cancel Pending Deletion).
- Approval documented — obtain explicit written operator approval including key ID, window, and MLPS obligation acknowledgment.
Required Confirmation
The operator must explicitly state all of the following before key deletion is scheduled:
- "I confirm the target key is
<KEY_ID> (<KEY_ALIAS>) in account <ACCOUNT_ID>, enterprise project <ENTERPRISE_PROJECT>."
- "I confirm the pending deletion window is
<DAYS> days and I understand the key is permanently destroyed after this window."
- "I have enumerated all resources encrypted by this key:
<LIST_ENCRYPTED_RESOURCES>."
- "I confirm all enumerated resources have been migrated to a new key or decommissioned."
- "I confirm this key
[IS / IS NOT] subject to MLPS Level 3 classification."
- "I approve scheduling this key for deletion."
For MLPS Level 3 classified keys, additionally require:
- "I confirm that this key deletion constitutes data destruction and I will file the mandatory incident report within 24 hours."
Rollback Procedure
- Within pending-deletion window (reversible): DEW console > Keys > select key > Cancel Pending Deletion — key returns to Enabled or Disabled state.
- After window expires (irreversible): no recovery path. All data encrypted by this key is permanently inaccessible.
- Document the cancel-pending-deletion deadline prominently in the change ticket.
Post-Action Verification
- Confirm key status shows
Pending Deletion with the correct deletion date.
- Verify the pending-deletion window matches the approved window length.
- Test access to a sample encrypted resource to confirm it is still accessible within the window.
- If MLPS Level 3 data destruction: initiate incident report process within 24 hours.
Response Shape
- Key identity confirmed
- Pending deletion window and expiry date
- Encrypted resource enumeration
- MLPS Level 3 classification
- Blast radius summary
- Rollback window deadline
- Approval status
- Executed action
- Post-action verification
1---
2name: huawei-live-kms-key-destruction-guard
3description: Gate DEW/KMS key deletion and disable operations — all CSMS secrets and DBSS-encrypted database data become permanently unrecoverable once the key deletion window passes.
4allowed-tools: Read Grep Glob
5metadata:
6 source: https://skillmd.com/skills/aibot88/huawei-live-kms-key-destruction-guard
7 author: "github: Raishin"
8 version: "0.1.0"
9 updated: "2026-05-08"
10 category: security
11---
12
13# Huawei Live KMS Key Destruction Guard
14
15## Purpose
16
17Act as the guarded live Huawei Cloud operator for huawei-live-kms-key-destruction-guard work. Gate DEW/KMS key deletion and disable operations. Insist on encrypted resource enumeration, pending-window verification, MLPS Level 3 incident obligation assessment, and explicit operator approval before any key deletion proceeds. Treat any incomplete resource enumeration or MLPS Level 3 workload as a stop condition.
18
19## When to Use
20
21Use this skill when:
22
23- A DEW/KMS key is being scheduled for deletion (entering pending deletion state)
24- A DEW/KMS key is being disabled (encrypted data becomes temporarily inaccessible)
25- A KMS key version is being disabled (old ciphertext encrypted under that version becomes inaccessible)
26- A CSMS secret is being deleted (permanent)
27- A CBH (Cloud Bastion Host) session recording policy is being deleted or retention period reduced
28- A DBSS SQL audit policy is being disabled or deleted
29
30## When NOT to Use
31
32Do not use this skill when:
33
34- The task is read-only KMS key inspection with no deletion or disable intent
35- The task involves creating a new KMS key or rotating to a new key version
36- The task involves ECS, CCE, database instances, or other non-DEW services without encryption key context
37
38## Gate Protocol
39
40This skill requires the 6-step live-guard gate from the maestro. See `skills/huawei/huawei-maestro/SKILL.md` for the full gate protocol. The 6 steps are:
41
421. **Surface risk** — state the specific risk: permanent data loss for all resources encrypted by this key.
432. **State irreversibility** — explicitly state: KMS key deletion is irreversible after the pending-deletion window; no recovery path exists.
443. **Confirm target** — confirm exact key ID, alias, account, enterprise project, and pending-deletion window length.
454. **Assess blast radius** — enumerate ALL resources encrypted by this key: OBS objects (SSE), ECS disk encryption, database CMK encryption, CSMS secrets, DBSS-encrypted data.
465. **Require rollback path** — document the cancel-pending-deletion action (available only within the pending window); after window expires there is no rollback.
476. **Get explicit written confirmation** — require the operator to state key ID, window length, enumerated encrypted resources, and MLPS classification before proceeding.
48
49## Pre-Flight Checklist
50
51Before scheduling any KMS key for deletion, verify all of the following:
52
531. **Key identity confirmed** — confirm key ID, alias, key type (symmetric/asymmetric), and current status.
542. **Pending deletion window reviewed** — confirm the window length (minimum 7 days, maximum 1096 days); longer windows provide more recovery time.
553. **Encrypted resource enumeration complete** — list all OBS buckets using this key for SSE, all ECS instances with disk encryption using this key, all GaussDB/RDS instances with CMK encryption, all CSMS secrets encrypted by this key, all DBSS-encrypted databases.
564. **MLPS Level 3 classification checked** — determine if any encrypted resource is subject to MLPS Level 3; if yes, key deletion constituting data destruction triggers mandatory 24-hour incident reporting.
575. **Cancel-pending-deletion procedure documented** — confirm the operator knows how to cancel pending deletion within the window (DEW console > Keys > Cancel Pending Deletion).
586. **Approval documented** — obtain explicit written operator approval including key ID, window, and MLPS obligation acknowledgment.
59
60## Required Confirmation
61
62The operator must explicitly state all of the following before key deletion is scheduled:
63
64- "I confirm the target key is `<KEY_ID>` (`<KEY_ALIAS>`) in account `<ACCOUNT_ID>`, enterprise project `<ENTERPRISE_PROJECT>`."
65- "I confirm the pending deletion window is `<DAYS>` days and I understand the key is permanently destroyed after this window."
66- "I have enumerated all resources encrypted by this key: `<LIST_ENCRYPTED_RESOURCES>`."
67- "I confirm all enumerated resources have been migrated to a new key or decommissioned."
68- "I confirm this key `[IS / IS NOT]` subject to MLPS Level 3 classification."
69- "I approve scheduling this key for deletion."
70
71For MLPS Level 3 classified keys, additionally require:
72- "I confirm that this key deletion constitutes data destruction and I will file the mandatory incident report within 24 hours."
73
74## Rollback Procedure
75
76- **Within pending-deletion window** (reversible): DEW console > Keys > select key > Cancel Pending Deletion — key returns to Enabled or Disabled state.
77- **After window expires** (irreversible): no recovery path. All data encrypted by this key is permanently inaccessible.
78- Document the cancel-pending-deletion deadline prominently in the change ticket.
79
80## Post-Action Verification
81
821. Confirm key status shows `Pending Deletion` with the correct deletion date.
832. Verify the pending-deletion window matches the approved window length.
843. Test access to a sample encrypted resource to confirm it is still accessible within the window.
854. If MLPS Level 3 data destruction: initiate incident report process within 24 hours.
86
87## Response Shape
88
891. Key identity confirmed
902. Pending deletion window and expiry date
913. Encrypted resource enumeration
924. MLPS Level 3 classification
935. Blast radius summary
946. Rollback window deadline
957. Approval status
968. Executed action
979. Post-action verification