KOwl64

API credentials hygiene

运维安全v1.0.0
作者:KOwl64更新于 2026-05-11api-credentials-hygiene@clawhub_kowl64/api-credentials-hygiene
安全扫描权限检查

据 AlphaMoat 统计,截至 2026-09,API credentials hygiene 累计下载 3,556 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 3,080 位,在「运维安全」分类(264 个)中排名第 195 位。

累计安装
116
累计下载
3,556
星标
2
全站排名
#3,080
全站前 61% · 「运维安全」前 74%
平台累计安装累计下载星标评论
ClawHub ↗1163,4922-
SkillHub ↗1163,5562—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该技能涵盖凭据清单、开发与生产环境隔离、最小权限、轮换流程和审计记录,也可生成仅含占位符的环境模板。它提供技术文档而非法律合规意见;不要提交真实密钥或私钥。

资料发布于 2026-10-29

可以用来做什么

  • 梳理集成服务的凭据存放和使用方式

什么时候用

  • 准备部署并需要规划密钥隔离、轮换或审计时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

总结制定凭据管理方案要记录的事项,并提醒我仅提供脱敏配置。

月度数据趋势

累计下载3,556
2,3382,9923,6462026-03 · 累计下载 2,4282026-05 · 累计下载 2,9452026-06 · 累计下载 3,0882026-07 · 累计下载 3,3072026-08 · 累计下载 3,3952026-09 · 累计下载 3,55626-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,556—2
2026-083,395+2.7%2
2026-073,307+7.1%2
2026-063,088+4.9%2
2026-052,945—2
2026-032,428—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.6 KB · ClawHub v1.0.0
---
name: api-credentials-hygiene
description: Audits and hardens API credential handling (env vars, separation, rotation plan, least privilege, auditability). Use when integrating services or preparing production deployments where secrets must be managed safely.
---

# API credentials hygiene: env vars, rotation, least privilege, auditability

## PURPOSE
Audits and hardens API credential handling (env vars, separation, rotation plan, least privilege, auditability).
展开全部(共 91 行)
## WHEN TO USE
- TRIGGERS:
  - Harden the credentials setup for this integration and move secrets into env vars.
  - Design a key rotation plan for these APIs with minimal downtime.
  - Audit this service for least-privilege access and document what each key can do.
  - Create an environment variable map and a secure .env template for this project.
  - Set up credential separation for dev versus prod with clear audit trails.
- DO NOT USE WHEN…
  - You want to obtain keys without authorization or bypass security controls.
  - You need legal/compliance sign-off (this outputs technical documentation, not legal advice).

## INPUTS
- REQUIRED:
  - List of integrations/APIs and where credentials are currently stored/used.
  - Deployment context (local dev, server, container, n8n, etc.).
- OPTIONAL:
  - Current config files/redacted snippets (.env, compose, systemd, n8n creds list).
  - Org rules (rotation intervals, secret manager preference).
- EXAMPLES:
  - “Keys are hard-coded in a Node script and an n8n HTTP Request node.”
  - “We have dev and prod n8n instances and need separation.”

## OUTPUTS
- Credential map (service → env vars → scopes/permissions → owner → rotation cadence).
- Rotation runbook (steps + rollback).
- Least-privilege checklist and audit log plan.
- Optional: `.env` template (placeholders only).
Success = no secrets committed or embedded, permissions minimized, rotation steps documented, and auditability defined.


## WORKFLOW
1. Inventory credentials:
   - where stored, where used, and who owns them.
2. Define separation:
   - dev vs prod; human vs service accounts; per-integration boundaries.
3. Move secrets to env vars / secret manager references:
   - create an env var map and update config plan (no raw keys in code/workflows).
4. Least privilege:
   - for each API, enumerate required actions and reduce scopes/roles accordingly.
5. Rotation plan:
   - dual-key overlap if supported; steps to rotate with minimal downtime; rollback.
6. Auditability:
   - define what events are logged (auth failures, token refresh, key use where available).
7. STOP AND ASK THE USER if:
   - required operations are unknown,
   - secret injection method is unclear,
   - rotation cadence/owners are unspecified.


## OUTPUT FORMAT
Credential map template:

```text
CREDENTIAL MAP
- Integration: <name>
  - Env vars:
    - <VAR_NAME>: <purpose> (secret/non-secret)
  - Permissions/scopes: <list>
  - Used by: <service/workflow>
  - Storage: <secret manager/env var>
  - Rotation: <cadence> | <owner> | <procedure>
  - Audit: <what is logged and where>
```

If providing a template, output `assets/dotenv-template.example` with placeholders only.


## SAFETY & EDGE CASES
- Never output real secrets, tokens, or private keys. Use placeholders.
- Read-only by default; propose changes as a plan unless explicitly asked to modify files.
- Avoid over-broad scopes/roles unless justified by a documented requirement.


## EXAMPLES
- Input: “n8n HTTP nodes contain API keys.”  
  Output: Env var map + plan to move to n8n credentials/env vars + rotation runbook.

- Input: “Need dev vs prod separation.”  
  Output: Two env maps + naming scheme + access boundary checklist.

「运维安全」分类下的热门技能

KOwl64 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。