aj-geddes avatar

Zero Trust Architecture

This implements the core building blocks of Zero Trust security: identity verification with JWT tokens, device registry tracking, continuous session monitoring, and policy-based access control. You'd reach for this when building cloud-native apps or microservices where perimeter security isn't enough, like multi-cloud deployments or remote workforce scenarios. The included gateway example and Python policy engine give you working starter code for the "never trust, always verify" model. The microsegmentation guide is especially useful if you're working with service mesh patterns. It's comprehensive but assumes you're ready to wire up your own identity provider and actually enforce these policies, this isn't a drop-in solution.

skills.sh installs
487
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill zero-trust-architecture --agent claude-code

Installs into .claude/skills of the current project.

Files

Zero Trust Architecture

Table of Contents

Overview

Implement comprehensive Zero Trust security architecture based on "never trust, always verify" principle with identity-centric security, microsegmentation, and continuous verification.

When to Use

  • Cloud-native applications
  • Microservices architecture
  • Remote workforce security
  • API security
  • Multi-cloud deployments
  • Legacy modernization
  • Compliance requirements

Quick Start

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"],
      });

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Security, DevOps & CI/CD, Code Review & Quality, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258

Recommended

More Security
1aj-geddes avatarincident-response-planaj-geddes/useful-ai-promptsCreate and execute incident response procedures for security breaches, data leaks, and cyber attacks. Use when handling security incidents, creating response pl484skills.sh installs
2alirezarezvani avatarship-gatealirezarezvani/claude-skillsPre-production audit that scans a codebase for security, database, deployment, code quality, AI/LLM, dependency, frontend, and observability issues. Intercepts 483skills.sh installs
3parcadei avatarreleaseparcadei/continuous-claude-v3Release preparation workflow - security audit → E2E tests → review → changelog → docs483skills.sh installs
4manutej avatarapi-gateway-patternsmanutej/luxor-claude-marketplaceComprehensive API gateway patterns skill covering Kong, routing, rate limiting, authentication, load balancing, traffic management, and production gateway archi482skills.sh installs
5prowler-cloud avatardjango-drfprowler-cloud/prowlerDjango REST Framework patterns. Trigger: When implementing generic DRF APIs (ViewSets, serializers, routers, permissions, filtersets). For Prowler API specifics482skills.sh installs
6aj-geddes avatardependency-managementaj-geddes/useful-ai-promptsManage project dependencies across languages including npm install, package versioning, dependency conflicts, security scanning, and lock files. Use when dealin481skills.sh installs