Open lesson

Mission: return the keys without closing the case

Command palette

This mission workspace keeps code and notes in this browser tab. Export them before closing it. Running code is practice, not an automatic grade for the mission.

Brief

Close the transfer with verified export, reviewed rights, rotated secret, retention, and documented final state.

Noor returns the handover notebook. Imani needs P0/42 traces to remain readable; Mara wants the old supplier key retired. Voss wants immediate deletion of old files. Propose an order protecting both service and investigation. The fictional scene is urgent; the exercise has no timer.

Your mission

  1. Describe the export pack and how to confirm it can be read.
  2. Order creation, test, and revocation of the service key.
  3. Separate held evidence from copies eligible for authorized deletion.
  4. Write final state and remaining uncertainty.

How to check your work

  • S100/S101, CDC, P0/42 log, report with IDs and digests.
  • New key tested before withdrawing old; no plaintext secret.
  • Approved evidence retention; later deletion logged.
  • Noor owns service; replay's human origin still open.

Course example

steps=[
 "export_verified_evidence","record_retention_hold",
 "grant_Noor_role","rotate_service_key_on_copy",
 "verify_new_key","revoke_old_key","review_old_personal_access",
 "schedule_authorized_deletion",
]
def before(a,b): return steps.index(a)<steps.index(b)
print("export_before_rotation",before("export_verified_evidence","rotate_service_key_on_copy"))
print("verify_before_revoke",before("verify_new_key","revoke_old_key"))
print("hold_before_deletion",before("record_retention_hold","schedule_authorized_deletion"))
print("real_secret_values",False)
print("final_owner","Noor")

Code

Use Tab to leave the editor. Ctrl+Enter runs the source. The lines beginning with # are task reminders. Python ignores them. Write your code beneath them.

Python console

Loading laboratory…

Explore Python or SQL here; this is not an operating-system shell.

This is a disposable browser experiment. The code run here is not recorded as a completed mission.

Each command starts a fresh disposable worker: it runs a captured copy of your current source, then your command with the lesson fixtures. Changes are discarded afterward. Commands never save source or award XP. Ctrl+Enter executes the command.

Virtual workspace files

Source and declarative assets are readable here without JavaScript. Python input files are created at runtime; SQL setup initializes the disposable database.

source.py

Current editor source. Inspection shows your current edits.

# Describe the export pack and how to confirm it can be read.
# Order creation, test, and revocation of the service key.
# Separate held evidence from copies eligible for authorized deletion.
# Write final state and remaining uncertainty.

exemple.py

Declarative lesson asset; this is not a file created in the Python filesystem.

steps=[
 "export_verified_evidence","record_retention_hold",
 "grant_Noor_role","rotate_service_key_on_copy",
 "verify_new_key","revoke_old_key","review_old_personal_access",
 "schedule_authorized_deletion",
]
def before(a,b): return steps.index(a)<steps.index(b)
print("export_before_rotation",before("export_verified_evidence","rotate_service_key_on_copy"))
print("verify_before_revoke",before("verify_new_key","revoke_old_key"))
print("hold_before_deletion",before("record_retention_hold","schedule_authorized_deletion"))
print("real_secret_values",False)
print("final_owner","Noor")