Files
scaffold/tools/ansible-vault.json
T
ZencacheandClaude Opus 4.6 bd9a01e743 v2.7.1: hardening pass — BOM stripping, QApp guard, deepcopy, flag strip
Four targeted fixes from a full deep code audit with Copilot:

- Strip leading UTF-8 BOM in load_tool before JSON parsing
- Guard _make_arrow_icons against missing QApplication
- normalize_tool returns a deep copy; all call sites updated
- Strip trailing whitespace in _check_duplicate_flags

Also: move Ansible schemas from tools/Ansible/ to tools/ for picker
visibility, update README with documentation quality guidance and
Security section.

All 5 test suites pass: 1,034/1,034 assertions, 0 failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 09:47:27 -04:00

801 lines
22 KiB
JSON

{
"_format": "scaffold_schema",
"tool": "Ansible Vault",
"binary": "ansible-vault",
"description": "Encrypt and decrypt Ansible data files.",
"elevated": null,
"subcommands": [
{
"name": "create",
"description": "Create a new encrypted file; opens in $EDITOR, encrypts on save",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "Path to the new file to create",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"group_vars/all/vault.yml",
"secrets.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "encrypt",
"description": "Encrypt an existing plaintext YAML file",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File(s)",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "One or more files to encrypt",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"secrets.yml",
"group_vars/all/vault.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "decrypt",
"description": "Permanently decrypt a vault-encrypted file back to plaintext",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File(s)",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "One or more encrypted files to decrypt",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"secrets.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": true
}
]
},
{
"name": "edit",
"description": "Decrypt a file to a temp file, open in $EDITOR, re-encrypt on save",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "Encrypted file to edit",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"group_vars/all/vault.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "view",
"description": "Display the contents of an encrypted file without editing it",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "Encrypted file to view",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"secrets.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "encrypt_string",
"description": "Encrypt a string for inline use in YAML variable files",
"arguments": [
{
"name": "Variable Name",
"flag": "--name",
"short_flag": "-n",
"type": "string",
"description": "Specify the variable name for the encrypted output (repeatable for multiple values)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"db_password",
"api_key",
"vault_secret_token"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The vault identity to use (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "String to Encrypt",
"flag": "STRING",
"short_flag": null,
"type": "string",
"description": "The plaintext string value to encrypt",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "rekey",
"description": "Re-encrypt vault files with a new password",
"arguments": [
{
"name": "Vault ID",
"flag": "--vault-id",
"short_flag": null,
"type": "string",
"description": "The current vault identity (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"dev@prompt",
"prod@/path/to/password_file"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "New Vault ID",
"flag": "--new-vault-id",
"short_flag": null,
"type": "string",
"description": "The new vault identity for the rekeyed files (format: label@source)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": [
"prod_v2@prompt",
"newkey@/path/to/new_password"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "New Vault Password File",
"flag": "--new-vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the new vault password for rekeying",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Ask Vault Password",
"flag": "--ask-vault-pass",
"short_flag": "-J",
"type": "boolean",
"description": "Prompt for vault password interactively",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "Vault Password File",
"flag": "--vault-password-file",
"short_flag": null,
"type": "file",
"description": "File containing the current vault password",
"required": false,
"default": null,
"choices": null,
"group": "vault_auth",
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
},
{
"name": "File(s)",
"flag": "FILE",
"short_flag": null,
"type": "string",
"description": "One or more encrypted files to rekey",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": [
"secrets.yml",
"group_vars/all/vault.yml"
],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}
],
"_coverage": "full",
"arguments": [
{
"name": "Verbose",
"flag": "--verbose",
"short_flag": "-v",
"type": "boolean",
"description": "Increase output verbosity (up to -vvvvvv)",
"required": false,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": true,
"separator": "none",
"positional": false,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}