semi implemented and features implemented save checkpoint

This commit is contained in:
master
2026-02-08 18:00:49 +02:00
parent 04360dff63
commit 1bf6bbf395
20895 changed files with 716795 additions and 64 deletions

View File

@@ -0,0 +1,27 @@
# KMS Key Export/Import CLI
## Module
Cli
## Status
IMPLEMENTED
## Description
File-backed signing key management via export/import with passphrase protection, version selection, and force-overwrite options for portable key bundles.
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/CryptoCommandGroup.cs` -- `CryptoCommandGroup` for crypto operations
- **Command Handlers**: `src/Cli/StellaOps.Cli/Commands/CommandHandlers.Crypto.cs` -- crypto handlers
- **Crypto Profile Validator**: `src/Cli/StellaOps.Cli/Services/CryptoProfileValidator.cs` -- crypto profile validation
- **Tests**: `src/Cli/__Tests/StellaOps.Cli.Tests/CryptoCommandTests.cs`
- **Commands**:
- `stella crypto export --key <key-id> --output <path> --passphrase <pass>` -- export signing key with passphrase protection. Options: `--version <ver>`, `--force`
- `stella crypto import --file <path> --passphrase <pass>` -- import signing key from file
## E2E Test Plan
- [ ] Run `stella crypto export --key <id> --output ./key.enc --passphrase "secret"` and verify encrypted key exported
- [ ] Run `stella crypto import --file ./key.enc --passphrase "secret"` and verify key imported
- [ ] Verify wrong passphrase fails import with clear error
- [ ] Run with `--version 2` and verify specific version exported
- [ ] Run with `--force` and verify overwrite of existing file
- [ ] Verify imported key can be used for signing operations