From 78c5a03f177d6f1d2a40add6b716b3c7a1433f53 Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Sat, 15 Mar 2025 19:21:08 -0500 Subject: [PATCH] [IMPROVED] Cambiar sufijo de archivos a .totp.yaml en qr_secret.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Modificar sufijo de archivos de .sops.yaml a .totp.yaml para mejor contextualización - Actualizar mensajes de éxito para reflejar el nuevo formato de nombre de archivo - Mantener el mismo mecanismo de encriptación con SOPS 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/qr_secret.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/qr_secret.sh b/bin/qr_secret.sh index 368c254..a9d5bbb 100755 --- a/bin/qr_secret.sh +++ b/bin/qr_secret.sh @@ -179,7 +179,7 @@ extract_secret() { save_encrypted_secret() { local name="$1" local secret="$2" - local output_file="${DEVELOPER_DIR}/${name}.sops.yaml" + local output_file="${DEVELOPER_DIR}/${name}.totp.yaml" # Crear archivo YAML temporal con el secreto local temp_file=$(mktemp) @@ -235,7 +235,7 @@ main() { # Guardar secreto encriptado save_encrypted_secret "$output_name" "$secret" if [ $? -eq 0 ]; then - dialog_error_box "Éxito" "Secreto guardado correctamente en ${DEVELOPER_DIR}/${output_name}.sops.yaml" + dialog_error_box "Éxito" "Secreto guardado correctamente en ${DEVELOPER_DIR}/${output_name}.totp.yaml" else dialog_error_box "Error" "No se pudo guardar el secreto encriptado." clear