Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

key-rotation-planner关键轮换计划

Agent Skill

key-rotation-planner 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

874

周安装

35

GitHub Stars

公开资料未说明

下载量

283
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:key-rotation-planner(关键轮换计划)
来源仓库:https://github.com/charlie-morrison/key-rotation-planner
安装命令:
openclaw skills install key-rotation-planner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install key-rotation-planner

简介

规划和管理 API 密钥、加密凭证的轮换周期与紧急更新计划。

  • 适用于企业安全合规要求下的密钥生命周期自动化管控。
  • 评估各密钥风险等级并生成优先级排序的更换时间表。key-rotation-planner 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需手动录入初始密钥清单,系统仅提供建议而非自动替换。
  • 结果为策略文档输出,实际轮换需配合运维流程执行落地。

SKILL.md

name
key-rotation-planner
description
Plan and track cryptographic key rotations for API keys, encryption keys, signing keys, and service credentials. Inventory all keys, assess rotation urgency, generate rotation runbooks, and verify post-rotation health.

Key Rotation Planner

Manage cryptographic key rotations without breaking production. Inventory all keys and credentials, assess rotation urgency based on age, exposure risk, and compliance requirements, generate step-by-step rotation runbooks, and verify nothing breaks after rotation.

Use when: "rotate keys", "key rotation plan", "API key rotation", "credential rotation", "how old are our keys", "key management audit", "secret hygiene", or before compliance audits requiring key rotation evidence.

Commands

1. inventory — Catalog All Keys and Credentials

Step 1: Discover Keys in Code and Config

# Find hardcoded secrets (should be 0)
rg -i "(api_key|apikey|secret_key|access_key|private_key|token)\s*[=:]\s*['\"][a-zA-Z0-9+/=_-]{16,}" \
  --type-not binary -g '!node_modules' -g '!vendor' -g '!*.test.*' -g '!*.example*' 2>/dev/null

# Find environment variable references for secrets
rg -i "(API_KEY|SECRET|TOKEN|PASSWORD|PRIVATE_KEY|ACCESS_KEY|CLIENT_SECRET)" \
  --type-not binary -g '!node_modules' -g '!vendor' 2>/dev/null | \
  grep -v "test\|example\|mock\|fake\|dummy" | head -30

# Check secrets manager
aws secretsmanager list-secrets 2>/dev/null | python3 -c "
import json, sys
secrets = json.load(sys.stdin)['SecretList']
for s in secrets:
    last_rotated = s.get('LastRotatedDate', 'NEVER')
    last_changed = s.get('LastChangedDate', 'Unknown')
    print(f'{s[\"Name\"]}: last_rotated={last_rotated}, last_changed={last_changed}')
"

# Vault secrets
vault secrets list 2>/dev/null
vault list secret/ 2>/dev/null

Step 2: Assess Rotation Urgency

For each key/credential:

FactorScoreCriteria
Age🔴 5Never rotated or > 1 year
Age🟡 36-12 months
Age🟢 1< 6 months
Exposure🔴 5In code/git history
Exposure🟡 3In env file on server
Exposure🟢 1In secrets manager
Scope🔴 5Admin/root access
Scope🟡 3Write access
Scope🟢 1Read-only
Compliance🔴 5Required by PCI/SOC2
Compliance🟢 1No compliance requirement

Priority = sum of scores. Rotate highest priority first.

Step 3: Generate Inventory Report

# Key and Credential Inventory

## Summary
- Total keys/credentials: 34
- Overdue for rotation: 12 (🔴)
- Due soon (30 days): 5 (🟡)
- Healthy: 17 (🟢)

## Critical (rotate immediately)
| Key | Type | Age | Last Rotated | Location | Priority |
|-----|------|-----|-------------|----------|----------|
| STRIPE_SECRET_KEY | API key | 14 months | Never | .env (server) | 18/20 🔴 |
| DB_PASSWORD (prod) | Password | 11 months | 2025-05-15 | Vault | 15/20 🔴 |
| JWT_SIGNING_KEY | Signing key | 8 months | 2025-08-01 | env var | 14/20 🔴 |

## Rotation Schedule
| Key | Next Rotation | Responsible | Runbook |
|-----|--------------|-------------|---------|
| STRIPE_SECRET_KEY | ASAP | @payments-team | See below |
| DB_PASSWORD | May 2026 | @infra | DB password rotation runbook |

2. rotate — Generate Rotation Runbook

For each key type, generate a step-by-step rotation runbook:

API Key Rotation (zero-downtime):

  1. Generate new key in provider dashboard
  2. Add new key to secrets manager alongside old key
  3. Deploy application update to use new key
  4. Verify new key works (test API call)
  5. Wait for old key to drain from all instances
  6. Revoke old key in provider dashboard
  7. Remove old key from secrets manager
  8. Update inventory with rotation date

Database Password Rotation:

  1. Generate new password
  2. Create temp user with new password in database
  3. Update secrets manager with new password
  4. Rolling restart of application instances
  5. Verify connections using new password
  6. Drop old user / change password on existing user
  7. Update inventory

JWT Signing Key Rotation (asymmetric):

  1. Generate new key pair
  2. Add new public key to JWKS endpoint (both keys listed)
  3. Switch signing to new private key
  4. Wait for all old tokens to expire (max TTL)
  5. Remove old public key from JWKS endpoint
  6. Archive old key pair

3. verify — Post-Rotation Health Check

After rotation, verify:

  • Application starts without errors
  • API calls succeed with new key
  • No auth failures in logs
  • Old key is actually revoked (test that it fails)
  • Monitoring shows normal error rates
  • No services still using old key (grep for old key hash)

4. schedule — Set Up Rotation Reminders

Generate calendar events or ticketing system reminders:

  • API keys: every 90 days
  • Database passwords: every 180 days
  • Signing keys: every 365 days
  • SSL certificates: 30 days before expiry
  • SSH keys: every 365 days

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.25%
按下载量换算230

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills