[Seguridad] Consolidar scripts de bóveda en scripts/seguridad/ + documentar mecanismo candado.rb en ADN

This commit is contained in:
Ricardo Monla
2026-02-27 19:12:26 -03:00
parent 2631cb36a3
commit 7b1d676fbe
6 changed files with 84 additions and 16 deletions
@@ -7,7 +7,7 @@
require 'json'
require 'fileutils'
TOKEN_FILE = File.expand_path('../.agent_token', __dir__)
TOKEN_FILE = File.expand_path('../../.agent_token', __dir__)
DEFAULT_DURATION_MINS = 5
# 1. Validación de Identidad (Proof of User Presence)
@@ -66,7 +66,7 @@ if __FILE__ == $0
end
# Buscar el archivo .master.key en el root del proyecto
key_path = File.join(File.expand_path('..', __dir__), '.master.key')
key_path = File.join(File.expand_path('../..', __dir__), '.master.key')
unless File.exist?(key_path)
require 'securerandom'