Keep the world and its information more secure, one deployment at a time.
Security guides that tell your AI assistant what to apply, how to verify the result, and how to report what passed, what failed, and what it could not test.
A library of short, generic, copy-ready guides covering the full deployment surface of a modern project: certificates and tunnels; human and machine identity, MFA, and secrets; web servers and proxies; language runtimes and frameworks; containers and Kubernetes; hosts, cloud firewalls, PaaS, and rented GPU clouds; databases, storage, and messaging; the AI stack itself (model servers, vector databases, MCP servers, agent and chat UIs, LLM observability); and the operational controls around a deployment, from first run through teardown. At the time of writing that is 105 guides across the 12 categories indexed below, plus controls-reference.md for any service that has no guide yet.
Publicly reachable services keep shipping with the gap on the deployment surface: services listening on plain HTTP, admin consoles with no login, AI tools exposed on their defaults. These guides close that gap, and they hold themselves to the standard they ask of you. Contributions must take every configuration line from the vendor documentation cited in the guide, and Verify steps declare what they rest on: DEMONSTRATED means the check ran against both the exposed and the fixed state; REASONED records source reasoning, and any earlier-form run it rests on, not a live demonstration of the shipped form. A reasoned step says so and is never presented as verified. Where a tool has no native control, the guide says so plainly instead of inventing one. Most guides also carry machine-readable front matter recording the sources checked and, where known, the exact versions. An automated gate suite under tools/ checks the structure of these declarations on every change, with older steps still being brought in line listed in tools/verify_marking_baseline.txt; whether a demonstration ran or a reasoned step is justified is checked in review, not by the gates. The full ceiling every guide is scored against is the Guide Quality Standard, QUALITY.md, whose scored matrix is tools/guide_quality.tsv.
This repository gives an AI assistant the security steps to apply and a way to report what it verified, what failed, and what it could not test. The guides are written for machine consumption: stable raw URLs, a machine-readable index at secureconfig.ai/llms.txt, every guide in one file at secureconfig.ai/llms-full.txt, baseline rules an assistant can apply directly (next section), a decision guide mapping deployments to guides, and a verification checklist that requires reporting what could not be tested rather than asserting a pass.
Jeff Posluns has spent more than 30 years in technology and security and wants to help keep the world and its information more secure. Jeff built this library from that experience and keeps expanding and updating it with Jeff's own AI tooling, backed by automated checks so it keeps its accuracy as it grows. Everything here is free to use under the Apache License 2.0, including the site template's copied files, apart from the template's fonts, its third-party marks, and the projects' own names, marks and domain names.
The guides are licensed under the Apache License 2.0, as is the rest of the repository; versions before 1.0.1341 remain dedicated to the public domain under CC0 1.0. From template 1.15.0 the site template's copied files are under the Apache License 2.0 too, and template versions 1.13.0 and earlier stay under CC0 1.0. The exceptions are the template's fonts, its GitHub, LinkedIn and ORCID marks, and the project names its logos carry and the projects' domain names (see Licence).
- With an AI assistant: tell it to secure your project using the guides at github.com/jposluns/secureconfig, or copy a ready-made task from secureconfig.ai; have it finish with the verification checklist below and report anything it could not test.
- In Claude Code: install the skill as a plugin, or add its rules to your project instructions, as Install in Claude Code sets out.
- By hand: start with the decision guide below, apply every guide that fits, and run the verification checklist.
- To contribute: open a GitHub issue or send a pull request (reaching Jeff any other way also works). To request a guide for an application with no guide yet, add a file to requests/ per its template, one application per pull request. See CONTRIBUTING.md.
The site at secureconfig.ai, served from site/ through Cloudflare Pages, is the short public pointer to these guides.
If you are an AI assistant configuring, generating, or reviewing a service, apply these rules:
- Treat every service as internet-reachable unless you have confirmed otherwise. Bind services to
127.0.0.1by default and expose them only through a TLS-terminating layer that requires authentication; keep backend, admin, and AI-tool services private. - Choose the certificate and access path before configuring exposure. A public DNS name with reachable ports 80 and 443: free-certificates.md. A Cloudflare-managed domain with no inbound ports: cloudflare.md. A tailnet with no public domain: tailscale.md. Internal or development use only: self-signed.md.
- Apply every guide that fits the deployment, not just one. Select the service or framework, its host or platform, containers where used, plus identity, secrets, and the operational controls below. For a service with no guide, run the alignment assessment in controls-reference.md, which distils the control patterns common to every guide, and verify the service's native controls against the vendor documentation; then request a guide by adding a file to the requests directory (https://github.com/jposluns/secureconfig/tree/main/requests) so the service is covered next time.
- Redirect HTTP to HTTPS, or do not listen on HTTP at all.
- Require authentication on every non-public endpoint. Never ship default or hardcoded credentials. Add MFA to human logins where viable per mfa.md; where a tool has no native login, put one in front per fronting-auth.md.
- A successful login is not authorization. Check the returned identity against an allowlist (tenant, hosted domain, group, or explicit users) before granting access. Choose the provider per identity-providers.md, wire it per oidc-integration.md, or put login in front of the app per cloud-identity-proxies.md.
- Keep secrets out of the repository and load them from the environment or a secret manager per secrets.md; give each service and agent its own scoped credentials per machine-auth.md.
- Contain what an exposed or compromised service can reach. Block unneeded outbound access and lock down cloud metadata per egress-metadata.md, and never serve dotfiles, database dumps, or client secrets per web-exposure.md.
- AI and data tools (model servers, vector databases, MCP servers, agent builders, chat and image UIs, MLflow, Ray) vary in their defaults and native controls, and many need authentication and TLS configured explicitly. Keep them on loopback and apply the matching guide before any exposure.
- Run the verification checklist below and each selected guide's Verify steps before reporting the work as complete. Report any item you could not test instead of asserting that it passed.
Fetch guides raw with https://raw.githubusercontent.com/jposluns/secureconfig/<default-branch>/<guide>.md (for example .../main/nginx.md). Every guide concatenated into a single file: https://secureconfig.ai/llms-full.txt (also site/llms-full.txt in this repository); the machine-readable index is https://secureconfig.ai/llms.txt
If raw.githubusercontent.com is unreachable, use https://secureconfig.ai/llms-full.txt, which holds every guide; each file in llms-full.txt starts with a line such as ==> nginx.md between two lines of = characters. Every link inside llms-full.txt to a guide or another file in this repository is an absolute GitHub URL on the main branch, such as https://github.com/jposluns/secureconfig/blob/main/mfa.md, not a page on secureconfig.ai. If GitHub is unreachable too, the same guide is the section of llms-full.txt that starts with that file name (here ==> mfa.md).
This repository is a Claude Code plugin marketplace: .claude-plugin/marketplace.json at its root lists one plugin, secureconfig, whose source is plugin/ (plugin marketplaces). The plugin has no Claude Code manifest of its own, so Claude Code loads its standard layout, the secureconfig skill under plugin/skills/, and takes the name from the marketplace entry (plugin manifest). The shared catalogue jposluns/plugins, a marketplace named jposluns, lists the plugin too. The shared catalogue's entry is updated separately from this repository, so the version it installs can lag behind the one this repository's marketplace serves. Each route below adds one of these two marketplaces and installs the plugin from it (installing plugins). Use one route, not both, so that the plugin is installed once.
From this repository's marketplace, in a Claude Code session:
/plugin marketplace add jposluns/secureconfig
/plugin install secureconfig@secureconfig
The same from a shell:
claude plugin marketplace add jposluns/secureconfig
claude plugin install secureconfig@secureconfigOr from the shared catalogue, in a Claude Code session:
/plugin marketplace add jposluns/plugins
/plugin install secureconfig@jposluns
The same from a shell:
claude plugin marketplace add jposluns/plugins
claude plugin install secureconfig@jposlunsWithout a marketplace, copy the skill's folder, plugin/skills/secureconfig/, to ~/.claude/skills/secureconfig/ for all your projects or to .claude/skills/secureconfig/ in one project (skills). Refresh a copied folder by copying it again: its scripts/update-guides.sh reads the plugin.json two folders above it, which a copied skill folder does not carry, and stops without changing anything.
A skill loads when its description matches the task. To have the rules loaded with your project instructions, paste plugin/always-on.md, the skill's rules for every deployment and one line pointing at the skill, into your project's CLAUDE.md, which Claude Code reads as project instructions at the start of a session; the memory page lists the settings that change which files load. If your project keeps its assistant instructions in AGENTS.md, you can keep the snippet there and import that file from a CLAUDE.md beside it with an @AGENTS.md line (share one file with other coding tools). Claude Code can also read AGENTS.md directly, when there is no CLAUDE.md or CLAUDE.local.md in the working directory or above it, in supported sessions; the AGENTS.md section of the memory page gives the versions, settings and sessions in which it does.
Choose every route that applies; a deployment usually needs both service-specific guides and shared controls.
- Public web app with its own domain: free-certificates.md, then the guide for your web server or proxy, then authentication.md.
- App on a home server or behind NAT, with a domain you can put on Cloudflare: cloudflare.md. The tunnel removes the need for open inbound ports and Access adds login in front of the app. With no domain at all: tailscale.md (Serve for tailnet-only access, Funnel only with the app's own login), or self-signed.md for internal use.
- Internal tool, staging, or local development: self-signed.md, with authentication still enabled.
- Human login or SSO: identity-providers.md to choose one and self-hosted-idp.md if you run it yourself, oidc-integration.md for app integration; cloud-identity-proxies.md or fronting-auth.md for login in front; mfa.md for the second factor, with an explicit access policy.
- Service-to-service or agent access: machine-auth.md, secrets.md.
- AI or agent deployment: the matching model-server, MCP, agent-builder, vector-database, UI, or observability guide, plus gpu-clouds.md where applicable and egress-metadata.md for outbound and metadata.
- Containers and clusters: docker.md, container-hardening.md, kubernetes.md, gitops-controllers.md, self-hosted-ci-runners.md, then the host, cloud, PaaS, or GPU guide.
- Databases, caches, queues, and model servers: keep them off public interfaces entirely where possible; the per-tool guides cover TLS and authentication for the cases where network exposure is unavoidable.
- Databases, storage, and messaging: the service guide, plus object-storage.md, firebase-supabase.md, pocketbase.md, or headless-cms-instant-api.md where access depends on storage or data rules.
- A pooler, proxy, or bouncer in front of a database: connection-poolers.md. Adding one moves the client-facing TLS and host rules off the database server and onto the pooler, which has its own defaults.
- Web application exposure: web-exposure.md, headers.md, cors.md, realtime-webhooks.md.
- First deployment, preview, or teardown: deployment-lifecycle.md, then common-mistakes.md.
| Guide | Covers |
|---|---|
| free-certificates.md | Free publicly trusted certificates via ACME (Let's Encrypt, ZeroSSL), issuance, and automated renewal |
| self-signed.md | OpenSSL and mkcert certificates when a public CA is not an option, plus distributing trust to clients |
| cloudflare.md | Cloudflare Tunnel and Zero Trust Access: authenticated external access with no open inbound ports |
| tailscale.md | Tailscale serve (tailnet-only) and funnel (public) with automatic TLS |
| tunnels.md | frp, WireGuard, and ssh -R, self-hosted tunnels when there is no public IP |
| Guide | Covers |
|---|---|
| authentication.md | Password storage, MFA, API keys, sessions, rate limiting, and secret handling |
| identity-providers.md | Hosted identity and MFA: Entra ID, Google, Okta, Entra External ID, Firebase and Identity Platform, Auth0, Cognito, Clerk, WorkOS, Supabase Auth, Duo; free tiers and who each fits |
| self-hosted-idp.md | Self-hosted Keycloak and authentik: separating the admin surface at the proxy, the first-boot admin window, and the management port |
| oidc-integration.md | OIDC login wiring for Google, Microsoft Entra, GitHub, and Okta: PKCE, redirect URIs, token validation, and the allowlist check |
| cloud-identity-proxies.md | Login in front of the app with no code change: AWS ALB, Google IAP, Azure App Service, Cloudflare Access, ngrok, Vercel |
| fronting-auth.md | oauth2-proxy, Authelia, Pomerium: login and MFA in front of an app that has none |
| mfa.md | MFA options: identity layers with QR-code TOTP enrolment, app libraries, SSH modules, Duo |
| machine-auth.md | Machine identity: API keys, client credentials, mutual TLS, workload identity federation, secret managers |
| secrets.md | Secrets: repository hygiene, scanning, rotation after a leak, sops/age |
| vault.md | HashiCorp Vault: dev mode, listener TLS, seal custody, audit devices, retiring the initial root token, path-scoped ACL policies, bounded AppRole credentials and tokens, response-wrapped secret delivery, and authenticated metrics/profiling |
| Guide | Covers |
|---|---|
| apache.md | Apache HTTP Server: TLS, redirect, HSTS, basic auth, client certificates |
| nginx.md | nginx: TLS, redirect, HSTS, basic auth, client certificates, reverse proxy |
| lighttpd.md | lighttpd: TLS via mod_openssl, redirect, basic auth |
| caddy.md | Caddy: automatic HTTPS, internal CA, basic auth |
| haproxy.md | HAProxy: TLS termination, redirect, HSTS, basic auth |
| traefik.md | Traefik: ACME resolvers, HTTPS redirection, basic auth middleware |
| Guide | Covers |
|---|---|
| nodejs.md | Node.js and Express: HTTPS server, security headers, sessions, password hashing |
| python.md | Flask, FastAPI/Uvicorn, Gunicorn, Django: TLS options and secure settings |
| nextjs.md | Next.js: sessions, Route Handlers, Server Actions, Auth.js and Better Auth, Vercel |
| go.md | Go net/http: TLS, proxy layout, bcrypt, cookies, client TLS discipline |
| dotnet.md | ASP.NET Core and Kestrel: HTTPS, HSTS, forwarded headers, Identity, cookies |
| java.md | Spring Boot: server.ssl, forwarded headers, Spring Security, session cookies |
| php.md | PHP and Laravel: password_hash, session cookies, trusted proxies, forced HTTPS |
| ruby.md | Rails and Puma: force_ssl, trusted proxies, has_secure_password, credentials |
| frontend-frameworks.md | SvelteKit, Nuxt, Vite: server-route auth, sessions, public-env prefixes |
| Guide | Covers |
|---|---|
| docker.md | Docker and Compose: safe port publishing, the UFW bypass problem, TLS termination |
| kubernetes.md | Gateway API with a maintained controller, cert-manager TLS, entry-point authentication; ingress-nginx is retired |
| gitops-controllers.md | Argo CD and Flux: cluster-admin blast radius, the initial admin secret, RBAC, and the Flux webhook receiver |
| self-hosted-ci-runners.md | GitHub Actions runner and GitLab Runner: untrusted code is remote code execution; ephemeral one-job workers, no privileged executor, tokens as credentials |
| container-hardening.md | Non-root, dropped capabilities, read-only root, network segmentation |
| Guide | Covers |
|---|---|
| host.md | Host baseline: SSH hardening, firewall default-deny, brute-force protection, updates |
| cloud-firewalls.md | Security groups and VPC rules: no 0.0.0.0/0 on databases, SSH posture |
| paas.md | Render, Fly.io, Vercel, and similar: platform TLS, your auth and secrets |
| gpu-clouds.md | RunPod, Vast.ai, Lambda, Modal: exposed ports and differing firewall and auth defaults per platform |
| Guide | Covers |
|---|---|
| postgresql.md | PostgreSQL: server TLS, SCRAM authentication, pg_hba rules, verified client connections, runtime-vs-owner privilege separation, restricted CONNECT and schema CREATE, secure search_path, and connection/DDL audit logging |
| connection-poolers.md | PgBouncer and pgpool-II: client TLS that is off by default, a server hop that falls back to plaintext, and the pg_hba rules a pooler stops matching |
| mysql.md | MySQL and MariaDB: required TLS transport, per-user TLS, modern auth plugins, scoped least-privilege accounts, anonymous/test/remote-root cleanup, local_infile and secure_file_priv restrictions, and password validation/reuse |
| mongodb.md | MongoDB: requireTLS, authorization, bind address, least-privilege roles with explicit SCRAM-SHA-256, replica/cluster membership auth, per-user source restrictions, and x.509 client identities |
| redis.md | Redis: TLS, requirepass, bind/protected-mode, and least-privilege ACLs with durable rules, key/channel scoping, and runtime command lockdown |
| sqlite.md | SQLite in deployment, the file is the exposure; Turso tokens; Litestream |
| sqlite-http-frontends.md | Datasette and sqlite-web: SQLite HTTP exposure, loopback binding, authentication, TLS, and verification |
| surrealdb.md | SurrealDB, root credentials, bind address, access levels, TLS |
| time-series-metrics-stores.md | InfluxDB, VictoriaMetrics, and QuestDB: default-off auth, default credentials, and fronting |
| elasticsearch.md | Elasticsearch and OpenSearch: keep built-in security on, scoped roles and API keys, anonymous/CORS lockdown, audit logging |
| clickhouse.md | ClickHouse: user passwords, secure ports, network restrictions, SQL-driven RBAC with table-scoped roles, query/memory limits and quotas, external-source restrictions, and protected query/session logs |
| neo4j.md | Neo4j: initial password, Bolt and HTTPS TLS, auth stays on, scoped Enterprise roles with label/property grants, procedure/function/load denials, transaction memory and timeout limits, and security-event logging |
| memcached.md | Memcached: no auth by default; private binding and UDP off, dedicated unprivileged account, connection and item-memory limits, disabled cache-wide flush and key enumeration, SASL and TLS where built in |
| search-engines.md | Meilisearch and Typesense, master key, scoped search keys, production mode |
| minio.md | MinIO (AIStor): root and scoped credentials, TLS, server-side encryption, object locking, and audit logging |
| object-storage.md | S3, R2, GCS, Azure Blob, Supabase Storage: private by default, scoped credentials, signed URLs |
| firebase-supabase.md | Firebase rules and Supabase RLS: ownership rules across Firestore/RTDB/Storage, Data-API and key hygiene, function/Storage/Realtime authorization, App Check, and signup controls |
| supabase-self-hosted.md | The self-hosted Docker stack: replace the demo keys and dashboard password, keep the published ports private |
| pocketbase.md | PocketBase and Appwrite: API and collection rules are the security, plus auth-record and file-field protection, operator and console lockdown, settings encryption, rate limits, and hostname and upload controls |
| headless-cms-instant-api.md | Strapi, Directus, Hasura, and PostgREST: one control gates the whole datastore |
| rabbitmq.md | RabbitMQ: users and permissions, TLS listener, guest account, vhost isolation and resource limits, management HTTPS, monitoring/admin role separation, concrete private bindings, and safe definitions import |
| mosquitto.md | Mosquitto (MQTT): per-device credentials, TLS listener, mutual TLS, topic ACLs with $SYS isolation, connection/packet/queue limits, per-listener scoping, bridge security, and runtime hardening |
| kafka.md | Apache Kafka: SASL_SSL listeners, SCRAM credentials, ACLs, client/replication/controller listener separation, per-role least-privilege ACLs, user quotas and connection limits, and authorization audit logging |
| nats.md | NATS and JetStream, auth, TLS, and the unauthenticated monitoring port |
| Guide | Covers |
|---|---|
| ollama.md | Ollama: no built-in auth or TLS; protect it with a proxy or tunnel |
| model-servers.md | llama.cpp, vLLM, TGI, SGLang, Triton, LM Studio: loopback, API keys, TLS in front |
| litellm.md | LiteLLM proxy: master key, per-app virtual keys, per-key spend and rate limits, model-access allowlists, key expiry and revocation, admin/route separation, egress and pass-through limits, and request-content log redaction |
| vector-databases.md | Qdrant, Weaviate, Milvus, Chroma, pgvector: API keys, TLS, what has no native auth |
| mcp-servers.md | MCP servers: stdio versus Streamable HTTP, loopback, Origin checks, OAuth 2.1 or a fronting layer |
| mcp-clients.md | MCP clients: authorization-response iss validation, metadata issuer identity, Client ID Metadata Documents and application_type, refresh-token confidentiality, OAuth-discovery SSRF |
| ray.md | Ray: dashboard, Jobs, and Client ports execute code; isolate, token auth, SSH forward |
| mlflow.md | MLflow tracking server: no auth by default; basic-auth app, TLS in front |
| llm-observability.md | Langfuse, Phoenix, Helicone, OpenTelemetry Collector: they hold prompts and keys |
| agent-builders.md | Dify, Flowise, Langflow, LibreChat: admin setup, API keys, fronting TLS |
| ai-infra-services.md | SearxNG, LocalAI, Text Embeddings Inference, LangServe, Mem0, Onyx: what the run form publishes, and the store published beside the front door |
| workflow-orchestrators.md | Prefect, Dagster, Airflow, Temporal, Flower, Argo: keep off the public internet and require auth |
| headless-browser-services.md | Chrome DevTools Protocol, Selenium Grid, browserless, Playwright: an exposed browser port is remote code execution |
| realtime-voice-infra.md | LiveKit and coturn: WebRTC SFU signing keys and the TURN open-relay default, RFC 1918 relay policy, TLS |
| Guide | Covers |
|---|---|
| open-webui.md | Open WebUI: signup control, pending role, fronting TLS, persistent signing key, trusted-proxy and OAuth boundaries, tool and code-execution limits, model and admin-data access control, API-key restrictions, and retrieval/SSRF limits |
| chat-uis.md | AnythingLLM, LobeChat, Chainlit, OpenHands: open by default; front with login |
| openclaw.md | OpenClaw: loopback binding and the container 0.0.0.0 auto-bind, non-loopback fail-closed guard, token or password auth, TLS, the always-on /tools/invoke endpoint and its default deny list, agent sandboxing, Control UI allowed origins, Tailscale or trusted-proxy access, and secrets at rest |
| forgejo.md | Forgejo: the unlocked first-run installer as unauthenticated admin takeover, strong SECRET_KEY, private bind and ROOT_URL, native TLS, closing registration and requiring sign-in, 2FA and password policy, visibility defaults, Actions runners as code-execution hosts, SSH, and fail-closed webhook and migration SSRF guards |
| gitlab.md | GitLab CE: the fail-safe front door, the plain-HTTP external_url listener on 80, the CI runner as a code-execution host, the forced-random root password, registration and admin approval, TLS, 2FA and password policy, private visibility, the container registry on 5050, the SSH surface, the webhook and system-hook SSRF defaults, and secrets at rest |
| image-gen-uis.md | ComfyUI, A1111, InvokeAI, Fooocus: keep on loopback and add a login before exposing |
| gradio.md | Gradio: launch() auth and TLS, share-link risks, file-access and cache isolation, optional-execution-surface and API-visibility controls, queue and resource limits, URL-fetch SSRF limits, external auth, and flagging/telemetry controls |
| streamlit.md | Streamlit: TLS options, native OIDC login, reverse proxy deployment |
| jupyter.md | Jupyter Server, Lab, and Notebook: hashed password and TLS, unprivileged execution, origin/XSRF/DNS-rebinding protection, JupyterHub identities and per-user isolation, and auth by default |
| n8n.md | n8n: listen address, native TLS, owner setup, MFA enforcement |
| code-server.md | code-server: SSH forwarding first, password auth, TLS |
| self-hosted-error-trackers.md | Sentry and GlitchTip: registration defaults, event-data leakage, reverse-proxy TLS |
| Guide | Covers |
|---|---|
| admin-uis.md | phpMyAdmin, pgAdmin, mongo-express, Grafana, Prometheus: never public |
| observability-components.md | node_exporter, Alertmanager, Pushgateway, Jaeger, Loki: unauthenticated by default; never public |
| devops-uis.md | Portainer, Coolify, Dokploy, Nginx Proxy Manager, Vaultwarden, Kubernetes Dashboard, Jenkins, Gitea, Uptime Kuma, Docker API: never public |
| bi-dashboards.md | Metabase, Superset, Redash: never public; least-privilege database user |
| low-code-builders.md | NocoDB, Baserow, Appsmith, Budibase, Windmill: first-run admin, open signup, sample secrets |
| server-admin-panels.md | Cockpit, Webmin, Proxmox VE: root-level host panels on every address, no default second factor |
| nomad-consul.md | Nomad, Consul: APIs with ACLs off by default, anonymous bootstrap, Consul's allow default |
| Guide | Covers |
|---|---|
| cors.md | CORS: exact origins, never * with credentials |
| headers.md | Security headers: HSTS, CSP, and companions for your app |
| realtime-webhooks.md | WebSocket, SSE, and webhook authentication |
| transactional-email-posture.md | SPF, DKIM, DMARC, SMTP submission, and open-relay posture for the mail a deployment sends |
| Guide | Covers |
|---|---|
| web-exposure.md | Files a web server must never serve: dotfiles, .git, dumps, client secrets |
| egress-metadata.md | Egress control and cloud metadata (IMDSv2), stop an agent exfiltrating credentials |
| deployment-lifecycle.md | Verify from outside, safe first-run order, previews, and teardown |
| exposure-index.md | Narrow an open port to the guides worth reading, then identify the process |
| common-mistakes.md | The recurring findings, each linked to its fix |
REASONED: checklist introduction; how to run and record the checks rests on the item declarations below, and the -sS error display rests on the curl manual cited in README.sources.md entries 2 and 3, and the fresh-shell advice rests on CONTRIBUTING rule 6; this paragraph records no run of its own. Run the applicable checks below and the Verify steps in every selected guide. Run these commands and every guide's Verify blocks in a fresh shell, such as one started with bash --norc --noprofile -i: a variable that your current shell or its startup files marked readonly or integer can abort a block's subshell or silently mis-assign a field. That shell still imports exported functions and turns on any shell options exported through SHELLOPTS or BASHOPTS, and under a POSIX mode inherited through POSIXLY_CORRECT or SHELLOPTS it still expands ENV and reads the file the result names, an expansion that can itself run commands. Replace REPLACE_WITH_YOUR_HOST in every command below with your own host before running anything. The placeholder is deliberate: an earlier version used example.com, which resolves and serves HTTPS, so check 3 succeeded for every reader whatever state their deployment was in. The commands use -sS so that an unreplaced placeholder prints curl: (6) Could not resolve host rather than failing silently. That is a visible failure, not a guarantee: a resolver that answers every name, or a proxy in your environment, can still put a real destination behind the placeholder, so substitute it rather than relying on the error. Record each result as pass, fail, untested, or not applicable, with evidence or a reason; report a control as verified only for the checks that passed.
- REASONED: public HTTP listener check; local marking review (October 2026, Bash 5.3.9) ran
bash -nand ShellCheck 0.11.0 on the checklist command samples with exit 0 and no output, and a stubbedss -tlnpprintedstub ss args: -tlnp(exit 0). A live HTTP deployment stand-up opens a listener; the authoring host forbids that without an isolated network namespace, and none was available. Per README.sources.md entry 1 (ss(8); host.md; common-mistakes.md), an exposed public plain HTTP listener appears inss; in the fixed statessstill lists the service's known TLS port, while no public plaintext listener appears except a redirect-only listener. The working controls are an HTTPS answer under item 3 and, where HTTP is offered, the redirect status and HTTPS Location under item 2;ssalone cannot establish either behaviour. No exposed or fixed deployment was observed. No plaintext listener on a public interface:ss -tlnp(Linux) shows nothing bound to0.0.0.0or a public address on a plain HTTP port, except a listener whose only job is to redirect to HTTPS. - REASONED: HTTP redirect check; local marking review (October 2026, Bash 5.3.9) ran
bash -nand ShellCheck 0.11.0 with exit 0 and no output; a curl stub printed the-sS -o /dev/null -warguments andhttp://REPLACE_WITH_YOUR_HOST/(exit 0). A live HTTP deployment stand-up opens a listener; the authoring host forbids that without an isolated network namespace, and none was available. Per README.sources.md entry 2 (RFC 9110, HTTP Semantics; curl manual), the exposed HTTP route serves without an HTTPS redirect; the fixed route returns a redirect status and HTTPS Location. No live response was observed. Where HTTP is offered, the redirect works:curl -sS -o /dev/null -w '%{http_code} %{redirect_url}\n' http://REPLACE_WITH_YOUR_HOST/returns301or308(the preferred permanent redirects), or302/307where a framework issues them, always with aLocation: https://...header. - REASONED: HTTPS certificate check; local marking review (October 2026, Bash 5.3.9) ran
bash -nand ShellCheck 0.11.0 with exit 0 and no output; a curl stub printed the-sS -o /dev/null -warguments andhttps://REPLACE_WITH_YOUR_HOST/(exit 0). A live HTTPS deployment stand-up opens a listener; the authoring host forbids that without an isolated network namespace, and none was available. Per README.sources.md entry 3 (curl manual), an exposed invalid certificate makes verified curl fail, while a fixed trusted certificate lets curl succeed without-k. No certificate was tested. TLS works:curl -sS -o /dev/null -w '%{http_code}\n' https://REPLACE_WITH_YOUR_HOST/succeeds without-k. - REASONED: TLS 1.1 refusal check; local marking review (October 2026, Bash 5.3.9, OpenSSL 3.5.5) ran
bash -nand ShellCheck 0.11.0 with exit 0 and no output; a stub printedstub openssl args: s_client -connect REPLACE_WITH_YOUR_HOST:443 -tls1_1(exit 0), while localopenssl ciphers -s -tls1_1exited 0 with only a newline, so that client cannot distinguish server refusal here. A live TLS deployment stand-up opens a listener; the authoring host forbids that without an isolated network namespace, and none was available. A client or scanner capable of offering TLS 1.1 and a live TLS 1.2 service control were also unavailable to this review. Per README.sources.md entry 4 (openssl-s_client; RFC 8996, Deprecating TLS 1.0 and TLS 1.1; OpenSSL config), an exposed TLS 1.1 server negotiates when a capable client offers it; a fixed server refuses that offer while a TLS 1.2 control succeeds. Neither state was observed. Old protocols are refused:openssl s_client -connect REPLACE_WITH_YOUR_HOST:443 -tls1_1fails to negotiate (TLS 1.2 is the minimum everywhere in these guides). Confirm the refusal came from the server and not from your own client: a local OpenSSL build, or aMinProtocolsetting in its configuration, can refuse TLS 1.1 before any offer is sent, which looks identical. Check that your client can still offer TLS 1.1 at all, or use an external scanner that does. - REASONED: authentication check; rests on README.sources.md entry 5 (RFC 9110 section 15.5.2) and the guarded anonymous probe in the Verify section of oidc-integration.md, which records no live run; no deployment with a non-public path was available, so no request was sent. Authentication is enforced: an unauthenticated request to any non-public path returns
401,403, or a login redirect, never data. Test the API paths as well as the home page: run that guarded block once per non-public path, replacing/adminin itscurl -q -g -sS -D - -o /dev/null "https://$1/admin"line with the path. - REASONED: secret scan; rests on README.sources.md entry 6 (gitleaks), the Verify section of secrets.md, which records no exposed or fixed scan, and the fixture runs recorded in the Quick checks of authentication.md, where gitleaks 8.30.1 reported a planted key and passed a clean control. No exposed or fixed scan of this command is recorded for this item. No default credentials remain, and no secret (password, key, token, certificate private key) is committed to the repository. Scan before pushing: from the repository root,
gitleaks git . && echo clean(gitleaks 8.19.1 or later) must printclean, and any finding fails the check. Default accounts have no generic command: check each service against its guide, and confirm the user store holds noadmin,testordemoaccount with a known or empty password. - REASONED: ACME renewal check; rests on README.sources.md entry 7 (Certbot, Renewing certificates; Caddy automatic HTTPS; Traefik ACME) and the Renewal section of free-certificates.md; no host with an issued ACME certificate was available, so neither command ran. A passing dry run with nothing scheduled is the exposed state. Where ACME is used, renewal is automated:
sudo certbot renew --dry-run --run-deploy-hookspasses, testing renewal and the reload hook together, AND something is actually scheduled to run it. The dry run proves the command works, not that it will ever be invoked, so check the scheduler too:sudo systemctl list-timers | grep -i certbotlists a certbot timer, or for cron,/etc/crontabor/etc/cron.*/*containscertbot renew. Servers that manage renewal themselves (Caddy, Traefik) need no timer; confirm a completed renewal in their logs instead. - REASONED: external TLS scan; rests on README.sources.md entry 8 (Qualys SSL Labs server test; testssl.sh) alone, because no Verify section in the guides carries a scanner command to cite. This item therefore names tools rather than a command and sets no pass threshold, and no scan was run for this marking. For public endpoints: scanned with the Qualys SSL Labs test or testssl.sh.
- REASONED: second-factor check; rests on README.sources.md entry 9 (NIST SP 800-63B-4) and the first Verify item of mfa.md, which names no command; the test is an interactive login; no deployed human-facing login was available for this marking. Human-facing logins carry a second factor where the stack supports one: with only the password, attempt an MFA-protected operation, which must be refused until the second factor is completed. mfa.md lists the options, and the per-tool guides state what is viable.
- REASONED: outside-in probe; rests on README.sources.md entry 10 (Shodan; Censys; Docker, Packet filtering and firewalls) and the guarded
nmap -Pn -p- "$1"block in the Verify section of deployment-lifecycle.md, which records no run; no deployment or second host outside its network was available for this marking. Probe from outside the deployment network, from a second host: cloud-firewall and Docker-publishing mistakes only show from outside. Run that guarded block, and its IPv6 companion, from the second host: only the intended ports may answer, and a scan that reports the host down or prints nothing is inconclusive. Shodan or Censys can corroborate, but they report what a scanner last observed rather than what is listening now, so a port published since their last pass will not appear; treat them as a second opinion, never as a substitute for a live probe. - REASONED: identity allowlist check; rests on README.sources.md entry 11 (OpenID Connect Core 1.0; the Google and Microsoft Entra claim references) and the allowlist item in the Verify section of oidc-integration.md, which names no command; the test is an interactive sign-in; no identity provider or out-of-allowlist account was available for this marking. Where login comes from an identity provider, an authenticated identity outside the allowed tenant, domain, group, or users is denied; test with such an account, not only an anonymous request, and confirm the provider authenticates it while the app refuses it and logs the identity.
REASONED: citation pointer; the numbering match between this checklist and README.sources.md is checked by reading, as the Verify section of that file records, and no run applies. Sources for these checks are listed in README.sources.md, numbered to match the items above.
The guides use placeholders that you must replace. example.com and app.example.com stand in for a name, and 203.0.113.10 for an address, wherever the value is configuration or illustration. That is usually a wrong value that fails visibly, though not always: an unreplaced certificate SAN generates a perfectly valid certificate for the wrong address. Where leaving the placeholder in place would instead look like a passing check, the guides use a REPLACE_WITH_A_NAME form and the check itself rejects the unsubstituted value rather than trusting it to fail. The verification checklist above uses the REPLACE_WITH_YOUR_HOST form but carries no guard: an unsubstituted name in checks 2 and 3 normally fails to resolve, subject to the resolver and proxy exceptions that the checklist's opening paragraph names, and check 4 also requires the refusal to come from the server, which a lookup failure does not show.
Scope: deployment exposure, including TLS, human and machine authentication, MFA, access restrictions, secrets, and inbound and outbound network access, from first deployment through teardown. General application security, including injection, deserialization, and business logic flaws, belongs to the OWASP resources linked throughout the guides. LLM-specific application risks such as prompt injection are covered by the OWASP Top 10 for LLM Applications. To propose a tool or guide, see CONTRIBUTING.md.
Everything in this repository (the guides, the configuration samples, the code and the site) is licensed under the Apache License 2.0, with the exceptions below, which NOTICE.md records. Versions before 1.0.1341, including the releases up to v1.0.1317, remain dedicated to the public domain under CC0 1.0 Universal. The AIQT Guardrails material that .aiqt/PIN lists (the files vendored under .aiqt/ and tools/, and the AIQT sections adapted into CLAUDE.md and AGENTS.md) is under the same Apache License 2.0. It keeps its own attribution notices: see .aiqt/LICENSE and .aiqt/NOTICE. From template 1.15.0 the site template's copied files are Copyright 2026 Jeff Posluns and under the same Apache License 2.0; template versions 1.13.0 and earlier remain dedicated to the public domain under CC0 1.0. The template's 4 fonts, under site/assets/baseline/fonts/, and the card builder's Inter fonts, under .baseline/card-fonts/ (not served), are licensed by their authors under the SIL Open Font License 1.1, and the template's GitHub, LinkedIn and ORCID marks, under site/assets/baseline/marks/, are their owners' trademarks, used under their owners' terms, outside the Apache License 2.0 grant. The project names that the site template's logos carry and the projects' domain names are the projects' own names and marks, for which the Apache License 2.0 grants no permission beyond what its section 6 allows.