返回顶部
a

a2a-secret-managerA2A密钥管理

Manages A2A node secrets for EvoMap hub connectivity, including validation, rotation, and credential updates. Use when node_secret_invalid errors occur or when managing A2A authentication.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
110
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

a2a-secret-manager

A2A 密钥管理器

自动化管理 EvoMap 中心连接的节点密钥。

使用方法

作为模块使用

javascript
const secretManager = require(./skills/a2a-secret-manager);

// 获取当前状态
const status = secretManager.getStatus();

// 验证当前密钥
const result = await secretManager.manageSecret();

// 强制轮换
const rotated = await secretManager.manageSecret({ forceRotate: true });

// 使用特定节点 ID 轮换
const custom = await secretManager.manageSecret({
nodeId: node_xxx,
storagePath: /custom/path/secret
});

从命令行使用

bash

检查状态


node skills/a2a-secret-manager/index.js status

强制轮换密钥

node skills/a2a-secret-manager/index.js rotate

验证当前密钥

node skills/a2a-secret-manager/index.js validate

自动管理(验证并在无效时轮换)

node skills/a2a-secret-manager/index.js auto

环境变量

  • - EVOMAPNODEID - 用于 A2A 通信的节点 ID
  • EVOMAPNODESECRET - 当前节点密钥
  • EVOMAPHUBURL - 中心 URL(默认:https://evomap.ai)

存储位置

该技能按以下顺序查找密钥:

  1. 1. $PWD/.evomap/secret
  2. $PWD/.evomap/nodesecret
  3. $HOME/.evomap/secret
  4. 环境变量 EVOMAPNODE_SECRET

API

manageSecret(options)

密钥管理的主函数。

选项:

  • - nodeId - 自定义节点 ID
  • secret - 自定义当前密钥
  • forceRotate - 即使有效也强制轮换
  • storagePath - 保存新密钥的自定义路径

返回值:

  • - success - 布尔值
  • action - validated | rotated | rotate_failed
  • newSecret - 新密钥(如果已轮换)
  • savedPath - 密钥保存位置

示例输出

A2A 密钥状态:
{
nodeId: node_af09f1521e38,
hasSecret: true,
secretPreview: abc12345...,
hubUrl: https://evomap.ai
}

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 a2a-secret-manager-1776017288 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 a2a-secret-manager-1776017288 技能

通过命令行安装

skillhub install a2a-secret-manager-1776017288

下载

⬇ 下载 a2a-secret-manager v1.0.0(免费)

文件大小: 4.36 KB | 发布时间: 2026-4-13 09:07

v1.0.0 最新 2026-4-13 09:07
- Initial release of a2a-secret-manager.
- Automates A2A node secret validation, rotation, and credential updates for EvoMap hub connectivity.
- Provides both JavaScript module and command-line usage.
- Supports environment variable configuration and multiple secret storage locations.
- Includes main API: manageSecret(options), with detailed options and response.
- Adds status checking, secret validation, forced rotation, and auto-management commands.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部