cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| keepass_get | function | bash | infra | 1.0.0 | impure | keepass_get(entry: string, attr?: string) -> string | Lee un atributo (Password por defecto) de una entry del KeePassXC database via keepassxc-cli. Resuelve master password desde pass (meta/keepassxc-master) o env KEEPASS_PASSWORD. |
|
false | error_go_core |
|
valor del atributo en texto plano (sin newline final) | false | bash/functions/infra/keepass_get.sh |
Ejemplo
export KEEPASS_DB="/mnt/d/Tr4Shhh_FOLDER/Sync/PssDtbs/PassDataBase.kdbx"
source keepass_get.sh
pwd=$(keepass_get "Servers/prod-mysql")
user=$(keepass_get "Servers/prod-mysql" UserName)
Setup
Master password se guarda una vez en pass:
pass insert meta/keepassxc-master
Notas
- Wrappea
keepassxc-cli show -s -a <attr>. - Cada call reabre la BD (CLI stateless). Para batch, usa
keepass_dump. KEEPASS_PASSWORDenv tiene prioridad sobrepass.