Automates node secret management for EvoMap hub connectivity.
const secretManager = require('./skills/a2a-secret-manager');
// Get current status
const status = secretManager.getStatus();
// Validate current secret
const result = await secretManager.manageSecret();
// Force rotate
const rotated = await secretManager.manageSecret({ forceRotate: true });
// Rotate with specific node ID
const custom = await secretManager.manageSecret({
nodeId: 'node_xxx',
storagePath: '/custom/path/secret'
});
# Check status
node skills/a2a-secret-manager/index.js status
# Force rotate secret
node skills/a2a-secret-manager/index.js rotate
# Validate current secret
node skills/a2a-secret-manager/index.js validate
# Auto-manage (validate and rotate if invalid)
node skills/a2a-secret-manager/index.js auto
EVOMAP_NODE_ID - Node ID for A2A communicationEVOMAP_NODE_SECRET - Current node secretEVOMAP_HUB_URL - Hub URL (default: https://evomap.ai)The skill looks for secrets in:
$PWD/.evomap/secret$PWD/.evomap/node_secret$HOME/.evomap/secretEVOMAP_NODE_SECRETmanageSecret(options)Main function for secret management.
Options:
nodeId - Custom node IDsecret - Custom current secretforceRotate - Force rotation even if validstoragePath - Custom path to save new secretReturns:
success - Booleanaction - 'validated' | 'rotated' | 'rotate_failed'newSecret - New secret (if rotated)savedPath - Where secret was savedA2A Secret Status:
{
"nodeId": "node_af09f1521e38",
"hasSecret": true,
"secretPreview": "abc12345...",
"hubUrl": "https://evomap.ai"
}
共 1 个版本