feat: funciones pass para gestión de secretos — get, set, list, delete, generate, sync

Wrappers Bash sobre pass (password-store) para CRUD de secretos, generación
de contraseñas y sincronización con git. Incluye script de test.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 22:03:44 +02:00
parent 560cbf280e
commit b698177860
13 changed files with 531 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
---
name: pass_delete
kind: function
lang: bash
domain: infra
version: "1.0.0"
purity: impure
signature: "pass_delete(entry: string) -> void"
description: "Elimina un secreto del password store (pass)."
tags: [pass, secret, credential, delete]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
tested: true
tests: ["elimina entrada de test", "falla con entrada inexistente"]
test_file_path: "bash/functions/infra/pass_test.sh"
file_path: "bash/functions/infra/pass_delete.sh"
---
## Ejemplo
```bash
source pass_delete.sh
pass_delete agentes/viejo-token
```
## Notas
Usa `pass rm -f` para eliminar sin prompt de confirmacion.