infrastructure-standards

michaellperry's avatarfrom michaellperry

Infrastructure standards for Docker, scripts, middleware, and authentication in multi-tenant deployments.

0stars🔀0forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill provides comprehensive infrastructure standards for multi-tenant deployments, focusing on Docker containerization, cross-platform scripting, and secure middleware integration. It streamlines the setup of local and CI environments while ensuring robust authentication, tenant isolation, and consistent deployment workflows.

Use Cases

  • Standardizing Docker Environments: Bootstrapping or optimizing Docker and Docker Compose configurations using multi-stage builds, pinned images, and health checks to ensure stability across local and CI/CD pipelines.
  • Cross-Platform Scripting: Developing and maintaining idempotent Bash and PowerShell scripts for database migrations and system tasks, ensuring feature parity and reliability across different operating systems.
  • Multi-Tenant Security Implementation: Configuring secure middleware pipelines, including JWT validation, tenant resolution, and explicit authorization policies to protect sensitive data in complex multi-tenant architectures.
  • Infrastructure Auditing: Validating middleware order, security headers, and container runtime permissions before production releases to meet enterprise-grade security and performance standards.
nameinfrastructure-standards
descriptionInfrastructure standards for Docker, scripts, middleware, and authentication in multi-tenant deployments.

Infrastructure Standards

Use when containerizing API/Web/DB services, keeping scripts aligned across platforms, or configuring security/auth for GloboTicket deployments.

When to use

  • Bootstrapping or adjusting Docker/compose environments (local or CI)
  • Adding or updating scripts under scripts/bash or scripts/powershell
  • Implementing security/tenant middleware or JWT/authorization policies
  • Auditing middleware order before releases

Core principles

  • Pin images, add health checks, and prefer multi-stage builds with non-root runtime
  • Keep bash and PowerShell feature parity; make scripts idempotent, especially migrations
  • Resolve tenant after authentication; enforce security headers and correct pipeline order
  • Validate JWTs with explicit tenant/role policies and custom permission requirements

Resources

Default locations

  • Compose and env files under docker/, .env in repository root
  • Scripts in scripts/bash and scripts/powershell
  • Middleware in src/GloboTicket.API/Middleware, auth configuration in Program.cs
  • Database initialization scripts in docker/init-db

Validation checklist

  • Services build and pass health checks with pinned images
  • Scripts succeed in bash and PowerShell with identical behaviors
  • Middleware order matches pattern; tenant resolution enforced on protected endpoints
  • JWT validation returns JSON errors; policies enforce tenant and role requirements