seal-ssh-key
Seal an existing SSH private key or generate and seal a new ed25519 pair using its full path. Store the random passphrase under a managed secret ref to protect credentials.
Instructions
dbabrain common.cli seal-ssh-key: One SSH private key to seal (or generate and seal) by its full path, and the ref for its passphrase.
Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line.
Request fields (pass them as request):
key_file (required): The key's FULL path - this command reads no configuration (rules R09).
passphrase_ref (required): The secret ref its random passphrase is stored under; one already holding another value is refused.
generate: Make a new ed25519 pair at key_file (and its .pub) instead of sealing one; never over a file.
comment: The .pub's comment when generating (default: the file's name).
also_plaintext: Also write the ref into secrets/secret_text.json, which deploy regenerates the store from (a master).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "seal-ssh-key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |