zero-trust-architecture by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill zero-trust-architecture基于"永不信任,始终验证"的原则,实施全面的零信任安全架构,核心包括以身份为中心的安全、微分段和持续验证。
最小工作示例:
// zero-trust-gateway.js
const jwt = require("jsonwebtoken");
const axios = require("axios");
class ZeroTrustGateway {
constructor() {
this.identityProvider = process.env.IDENTITY_PROVIDER_URL;
this.deviceRegistry = new Map();
this.sessionContext = new Map();
}
/**
* 验证身份 - 你是谁?
*/
async verifyIdentity(token) {
try {
// 验证 JWT 令牌
const decoded = jwt.verify(token, process.env.JWT_PUBLIC_KEY, {
algorithms: ["RS256"],
});
// 检查令牌是否已被撤销
const revoked = await this.checkTokenRevocation(decoded.jti);
if (revoked) {
throw new Error("Token has been revoked");
// ... (完整实现请参阅参考指南)
目录下的详细实现:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/| 指南 | 内容 |
|---|---|
| 零信任网关 | 零信任网关 |
| 服务网格 - 微分段 | 服务网格 - 微分段 |
| Python 零信任策略引擎 | Python 零信任策略引擎 |
每周安装数
108
代码仓库
GitHub 星标数
116
首次出现
2026年1月21日
安全审计
安装于
gemini-cli91
opencode91
codex87
cursor82
claude-code82
github-copilot74
Implement comprehensive Zero Trust security architecture based on "never trust, always verify" principle with identity-centric security, microsegmentation, and continuous verification.
Minimal working example:
// zero-trust-gateway.js
const jwt = require("jsonwebtoken");
const axios = require("axios");
class ZeroTrustGateway {
constructor() {
this.identityProvider = process.env.IDENTITY_PROVIDER_URL;
this.deviceRegistry = new Map();
this.sessionContext = new Map();
}
/**
* Verify identity - Who are you?
*/
async verifyIdentity(token) {
try {
// Verify JWT token
const decoded = jwt.verify(token, process.env.JWT_PUBLIC_KEY, {
algorithms: ["RS256"],
});
// Check token hasn't been revoked
const revoked = await this.checkTokenRevocation(decoded.jti);
if (revoked) {
throw new Error("Token has been revoked");
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Zero Trust Gateway | Zero Trust Gateway |
| Service Mesh - Microsegmentation | Service Mesh - Microsegmentation |
| Python Zero Trust Policy Engine | Python Zero Trust Policy Engine |
Weekly Installs
108
Repository
GitHub Stars
116
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli91
opencode91
codex87
cursor82
claude-code82
github-copilot74
Supabase Postgres 最佳实践指南 - 8大类别性能优化规则与SQL示例
70,900 周安装
Nansen CLI 钱包管理工具:安全创建、发送加密货币,支持 EVM 和 Solana 链
124 周安装
Google Cloud Platform专家指南:GCP服务、云原生架构与gcloud CLI实战教程
124 周安装
DeepSeek API 使用指南:聊天、推理与代码生成,OpenAI 经济替代方案
124 周安装
AI文本人性化工具 - 消除AI写作痕迹,让内容更自然真实 | Humanize
124 周安装
Bash防御性编程模式:生产级Shell脚本错误处理与安全最佳实践指南
124 周安装
比特币底部判断模型:6大链上指标精准抄底,避免接飞刀
124 周安装