Secrets Config logo

Secrets Config

Community
zhaoxuya520
secrets-config

密钥与配置管理,覆盖 HashiCorp Vault / AWS Secrets Manager / K8s Secrets。12-Factor App 环境变量、配置中心、密钥轮换、零信任访问。

Overview

Publisherzhaoxuya520
RepositoryAI-Fullstack-Delivery-Workflow
Skill namesecrets-config
Stars
56
Forks
18
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhaoxuya520 on GitHub. Read the source before you install it.

Installation

Install the Secrets Config AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/secrets-config
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow.git /tmp/AI-Fullstack-Delivery-Workflow
mkdir -p .claude/skills
cp -r /tmp/AI-Fullstack-Delivery-Workflow/workflows/devops-engineer/skills/secrets-config .claude/skills/secrets-config
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Secrets Config in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Secrets Config on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Secrets Config is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

密钥与配置管理(Secrets & Configuration)

参考来源:HashiCorp Vault 文档、AWS Secrets Manager 文档、12-Factor App、NIST 密钥管理指南、External Secrets Operator 文档。

适用场景

  • 应用密钥管理(数据库密码 / API Key / Token)
  • 配置中心设计(多环境配置分发)
  • 密钥轮换策略
  • CI/CD 中的 secrets 注入
  • Kubernetes Secrets 管理
  • 证书生命周期管理
  • 合规审计(谁在何时访问了什么)

核心原则

text
1. 零硬编码
   代码中不出现任何密钥
   .env 文件不入 Git
   配置与代码分离

2. 最小权限
   每个服务只能访问自己的 secrets
   按环境隔离
   短期凭证优于长期凭证

3. 加密存储
   静态加密(at rest)
   传输加密(in transit)
   密钥加密密钥(KEK)分离

4. 自动轮换
   定期轮换(90 天内)
   轮换不中断服务
   旧密钥有过渡期

5. 审计追踪
   所有访问有日志
   异常访问告警
   定期审计权限

6. 12-Factor 配置
   环境变量注入
   不同环境不同值
   应用不关心来源

7. 灾备可恢复
   secrets 有备份
   恢复流程已演练
   不依赖单点

工作流程

text
1. 密钥分类
   - 基础设施密钥(云 API Key / SSH Key)
   - 应用密钥(DB 密码 / JWT Secret / API Token)
   - 证书(TLS / mTLS / 签名证书)
   - 加密密钥(AES / RSA)

2. 选择存储方案
   - HashiCorp Vault(自建 / 多云)
   - AWS Secrets Manager(AWS 原生)
   - GCP Secret Manager(GCP 原生)
   - Azure Key Vault(Azure 原生)
   - K8s External Secrets Operator(K8s 集成)

3. 设计访问策略
   - 按服务 / 环境划分路径
   - RBAC / Policy 定义
   - 短期 Token(Vault lease)

4. 注入方式
   - 环境变量(12-Factor)
   - 文件挂载(K8s Volume)
   - SDK 直接读取(Vault Agent)
   - Init Container 预加载

5. 轮换策略
   - 自动轮换(Secrets Manager rotation)
   - 双密钥过渡(新旧并存)
   - 应用热加载(不重启)

6. CI/CD 集成
   - GitHub Secrets / GitLab CI Variables
   - Vault 动态凭证(CI 专用短期 Token)
   - OIDC 联合认证(无长期密钥)

7. 监控与审计
   - 访问日志
   - 异常检测(非工作时间 / 异常 IP)
   - 过期告警
   - 定期权限审计

方案对比

方案适用场景优势劣势
Vault多云 / 自建功能全、动态凭证运维复杂
AWS Secrets ManagerAWS 原生自动轮换、托管锁定 AWS
K8s SecretsK8s 内部原生集成默认 base64 非加密
External SecretsK8s + 外部源同步外部到 K8s额外组件
SOPSGit 加密版本控制友好手动管理
dotenv本地开发简单不适合生产

配置层次

text
优先级(高 → 低):
1. 环境变量(运行时注入)
2. 密钥管理服务(Vault / Secrets Manager)
3. ConfigMap / 配置文件
4. 应用默认值

规则:
- 密钥 → 必须从密钥管理服务获取
- 环境差异配置 → 环境变量 / ConfigMap
- 通用配置 → 应用默认值
- 本地开发 → .env(.gitignore)

质量自检

text
□ 代码中无硬编码密钥(grep -r "password\|secret\|api_key")
□ .env / .env.* 在 .gitignore 中
□ 生产密钥存储在密钥管理服务中
□ 每个服务独立的访问策略
□ 密钥有轮换计划(<= 90 天)
□ 轮换不中断服务(双密钥过渡)
□ CI/CD 使用短期凭证(OIDC / 动态 Token)
□ 访问日志已启用
□ 过期 / 即将过期密钥有告警
□ K8s Secrets 启用 encryption at rest
□ 灾备恢复流程已文档化
□ 新员工 / 离职有密钥权限变更流程
□ 定期审计(季度)

常见坑

  1. 密钥硬编码——泄露到 Git 历史,无法彻底清除
  2. .env 提交到 Git——所有人可见
  3. K8s Secret 当安全——默认只是 base64 编码
  4. 不轮换——泄露后长期有效
  5. 共享密钥——多服务用同一个,无法追踪
  6. CI 用长期 Token——泄露影响面大
  7. 不审计——不知道谁访问了什么
  8. 轮换中断服务——没有双密钥过渡期
  9. 密钥无备份——Vault 挂了全部不可用
  10. 环境变量日志泄露——错误日志打印 env
  11. 不区分环境——dev 密钥能访问 prod
  12. 离职不回收——前员工仍有访问权

配套模板

  • templates/secrets-checklist.md — 密钥管理检查清单与轮换计划模板

与其他 skill 的协作

text
上游:
  infrastructure-as-code → Vault / KMS 基础设施
  ci-cd-pipeline → CI secrets 需求

下游:
  containerization → 运行时 secrets 注入
  kubernetes-orchestration → K8s Secrets / External Secrets
  networking-gateway → SSL 证书管理
  monitoring-alerting → 密钥过期告警

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Secrets Config AI skill do?

密钥与配置管理,覆盖 HashiCorp Vault / AWS Secrets Manager / K8s Secrets。12-Factor App 环境变量、配置中心、密钥轮换、零信任访问。

Why use Secrets Config on TypingMind?

Because you install it once and use it with any model. Secrets Config is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Secrets Config in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhaoxuya520/AI-Fullstack-Delivery-Workflow/tree/master/workflows/devops-engineer/skills/secrets-config. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Secrets Config?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Secrets Config?

As many as you like. As long as a model supports skills, you can use Secrets Config with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Secrets Config AI skill free?

It is published on GitHub by zhaoxuya520. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇