360 Secure SkillHub
360 安全技能中心

secrets-manager

该 Skill 通过 Node 命令行把机密以 AES-256-GCM 加密保存在本地私有目录,支持写入、存在性检查、明文读取到消费者、列表与状态、过期与临近过期审计、轮换和删除;替换或删除前需用户批准。

分类:安全
jlacroix82
jlacroix82
热度 72.20
最近更新 2026-12-02 07:50:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jlacroix82/secrets-manager
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
secrets-manager
description
Store and retrieve local AES-256-GCM encrypted secrets through explicit input and output channels. Audit stored metadata without decrypting values.
version
1.1.20
metadata
{"openclaw":{"requires":{"bins":["node"]},"envVars":[{"name":"SECRETS_DIR","required":false,"description":"Alternate private store directory."},{"name":"SECRETS_MASTER_KEY","required":false,"description":"Legacy externally managed encryption key."}]}}

Secrets Manager

Use node {baseDir}/secrets-manager.js with the options below. The default store is memory/secrets in the workspace. --dir <directory> or SECRETS_DIR selects a dedicated private directory. POSIX files and directories are owner-only; on Windows use a directory with a restrictive ACL. Never use a shared or synced directory for the master key.

Options Effect
--store <name> --stdin Read the exact bytes as UTF-8 from an approved producer or pipe. Never put a literal credential in a command, prompt, or shell history.
--get <name> Check whether a value is available without displaying it.
--get <name> --raw --confirm-expose Write plaintext only to an approved consumer that accepts stdin. Do not capture the output in agent logs.
--list, --status Display store metadata.
--audit [--expired|--stale] Report expiration metadata. --stale shows entries approaching expiration.
--rotate <name> or --rotate --all Replace stored values with random values; this does not rotate the encryption key or update credentials on an external service. Get user approval before replacing values.
--delete <name> Delete an entry. Get user approval first.
--cleanup-tmp Remove recognized legacy injection files recorded in this store.

The store can use the existing .master-key or the legacy SECRETS_MASTER_KEY environment setting. Prefer the private key file over a broadly inherited environment variable. The programmatic getSecret() returns plaintext to its caller. Version 1.1.20 removes shell-template injection and temp-script creation, enables the directory override and audit filters, and removes secret fragments from ordinary output.