- Home
- Skills
- DevOps & Cloud
- Traefik Config Check
More screenshots
Works with the AI Agents you already use
Traefik Config Check
This skill finds those and nine other Traefik mistakes before you expose the proxy, and tells you how to fix each one.
$5
Traefik Config Check
Example session with this skill installed
Check this project with traefik-config-check.
- Read your context and instructions
- Compiled the traefik config check
$ python3 scripts/check_traefik.py examples/risky
BLOCK traefik/dynamic/routes.yml:8 T02 DASHBOARD_WITHOUT_AUTH
service: api@internal
Why: A router sends traffic to api@internal (the Traefik API and dashboard) and nothing on it checks who is asking: no basicAuth, digestAuth, forwardAuth or ipAllowList middleware and no ClientIP() in the rule. Anyone who can reach the host name sees every router, service, backend address and middleware setting.
Safer: Add an authentication middleware to the router (basicAuth with a usersFile, or forwardAuth to your single sign-on), or limit it to your network with ipAllowList, and serve it only over HTTPS.
BLOCK traefik/dynamic/routes.yml:31 T04 SECRET_IN_TRAEFIK_CONFIG
BLOCK traefik/traefik.yml:4 T01 API_INSECURE_MODE
BLOCK traefik/traefik.yml:22 T03 TLS_VERIFY_DISABLED
REVIEW docker-compose.yml:10 T13 DOCKER_SOCKET_MOUNTED
REVIEW traefik/dynamic/routes.yml:42 T14 OLD_TLS_ALLOWED
REVIEW traefik/traefik.yml:8 T12 HTTP_NOT_REDIRECTED
REVIEW traefik/traefik.yml:12 T17 FORWARDED_HEADERS_TRUSTED
REVIEW traefik/traefik.yml:15 T11 CONTAINERS_EXPOSED_BY_DEFAULT
REVIEW traefik/traefik.yml:33 T15 DEBUG_LOGGING
REVIEW traefik/traefik.yml:39 T16 ACCESS_LOG_KEEPS_AUTH_HEADERS
(Each finding also has Why and Safer lines, as in the first one.)
Verdict: BLOCK. Checked 3 files, 3 with Traefik content.
This is a static check of file text. NOT FLAGGED is not a guarantee.
Connects securely to your tools. The creator never sees your data.
About this skill
api.insecure: true puts the Traefik dashboard and API on port 8080 with no login, and a router to api@internal with only a headers middleware does the same on your public host name. This skill finds those and nine other Traefik mistakes before you expose the proxy, and tells you how to fix each one.
Your agent runs a scanner on your project: traefik.yml and traefik.toml static files, dynamic YAML and TOML files for the file provider, Docker Compose and Swarm files (the traefik.* labels and the Traefik service's command-line flags, TRAEFIK_* variables and volumes), Kubernetes manifests (IngressRoute, Middleware, TLSOption and ServersTransport resources, and containers that run Traefik) and Traefik Helm chart values. It parses YAML and TOML with line numbers, reads keys without regard to case as Traefik does, follows middleware chains, and treats {{ env }} and ${VAR} values as references, not secrets. It never runs Traefik, Docker or kubectl. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.
What it checks
BLOCK
- T01: api.insecure (in a file, a --api.insecure flag or TRAEFIK_API_INSECURE) and providers.rest.insecure
- T02: routers to api@internal (and Helm chart dashboards on a public entrypoint) with no basicAuth, digestAuth, forwardAuth or ipAllowList middleware and no ClientIP() in the rule
- T03: insecureSkipVerify: true on servers transports, providers, forwardAuth and exporters
- T04: tokens, passwords, Authorization headers, user:password@ URLs and inline private keys in the configuration, and DNS provider keys such as CF_DNS_API_TOKEN written in the Traefik container's environment
REVIEW
- T11: the Docker or Swarm provider without exposedByDefault: false
- T12: a port 80 entrypoint with no HTTPS redirect while HTTPS is set up
- T13: the Docker or Podman socket mounted into the Traefik container (also with :ro, which does not limit API calls). Expect T13 on most Docker-provider setups unless a socket proxy is used.
- T14: TLS options that allow TLS 1.0 or 1.1, or RC4, 3DES or NULL cipher suites
- T15: DEBUG or TRACE logging and api.debug
- T16: access logs that keep Authorization or Cookie headers
- T17: forwarded headers or PROXY protocol trusted from every client
What's included
- The scanner (Python 3.9+, standard library only)
- A rules guide with the reason and safer approach for each rule
- A risky and a safe example project (Compose file, static and dynamic configuration), and the real report the scanner produces on the risky one
Limits It reads each file as written. Settings that Traefik merges at run time from other places are not followed: middlewares defined in another provider, .env values, Helm templates and --set values, Consul, etcd or Redis key-value stores, and Traefik v1 files. Other Compose services are left to a Compose checker. NOT FLAGGED is not a guarantee.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Static check of Traefik configuration text. Merging across providers at run time, key-value stores, Helm templates, .env values and Traefik v1 configuration are not checked. NOT FLAGGED is not a guarantee.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example project includes a clearly fake, inert token (not-a-real-..., NOTREAL) for the scanner to find. It is never run.