[Seguridad] Consolidar scripts de bóveda en scripts/seguridad/ + documentar mecanismo candado.rb en ADN
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user