VS Code extension

Traefik Config for VS Code

Catch unknown keys, broken router rules, v2/v3 syntax differences, and routers pointing at services or middlewares that do not exist while editing, without running Traefik, Docker, or kubectl.

Open source and maintained by Juan Torchia.

Current release
v0.1.0
Marketplace downloads
0
Observed Dec 3, 2026
Compatibility
VS Code 1.110+ and Open VSX editors
License
MIT

See it in the editor

A Traefik file-provider configuration in VS Code with an unbalanced router rule, v2 HostRegexp syntax, insecureSkipVerify, TLS 1.0, a weak cipher, and undefined references in the Problems panel
Diagnostics for rules, references, TLS, and security while editing.
Completion of Traefik router label segments inside a Docker Compose file
Docker, Compose, and Swarm labels are completed segment by segment.
Completion of a middleware type in a Traefik file-provider configuration
Completion knows where each option belongs for the selected Traefik version.
Outline view listing Traefik HTTP routers and services of a file-provider configuration
Routers, services, and middlewares in the Outline view.
Hover over a certFile entry showing the certificate subject, issuer, validity, SANs, and SHA-256 fingerprint
Certificate details for file-provider certificates.
Open in CertView CodeLens above a certFile entry of the Traefik file provider
Open in CertView appears above certificates when CertView is installed.

A focused tool for a specific workflow

Traefik 2.11 and 3.8 completion, official-reference hover, diagnostics, and outline for static configuration, file-provider routing, Docker/Compose/Swarm labels, and Kubernetes CRDs, with TLS, security, and certificate checks inside VS Code.

  • A language server with version-aware reference catalogs for Traefik 2.11 and 3.8, generated from pinned official documentation
  • Static traefik.yml, traefik.yaml, and traefik.toml, dynamic file-provider YAML and TOML for HTTP, TCP, and UDP routers, services, middlewares, and TLS, and focused Kubernetes CRD support
  • Case-insensitive traefik.* Docker, Compose, and Swarm labels completed and validated segment by segment, in list and map syntax
  • Diagnostics for unknown and wrong-version keys, unbalanced router rules, v2/v3 matcher differences, routers without rule or service, duplicate routers, and undefined services, middlewares, entryPoints, and certificate resolvers across the workspace
  • Conservative security lint for the dashboard/API and HTTP redirects, TLS lint for TLS 1.0/1.1, weak ciphers, and insecureSkipVerify
  • Certificate details, expiry and key-pair checks for file-provider certificates, and an Open in CertView CodeLens

From install to a safer decision

  1. Install the extension and open a traefik.yml, traefik.toml, file-provider configuration, Compose file with traefik.* labels, or a Traefik CRD.
  2. Pick the Traefik version (2.11 or 3.8) in Settings, then follow the inline diagnostics, completion, and hover links to the official reference while editing.
  3. Review TLS, security, and certificate findings, and open referenced certificates in CertView when it is installed.
  4. Keep validating the configuration with the target Traefik version before deploying it.

How the pieces fit together

This is a textual architecture map grounded in the public implementation. Follow the source link to inspect the exact modules, tests, and release history.

  1. The VS Code client starts the language server only for Traefik-named files, Compose files with traefik.* labels, recognizable file-provider documents, and Traefik CRDs; it never replaces the YAML language.

  2. The bundled language server checks properties, labels, and router rules against catalogs generated from the pinned Traefik documentation for each supported version.

  3. Certificate files referenced by the file provider are read inside the workspace with Node's built-in crypto.

Inspect the implementation on GitHub

Supported scope

  • traefik.yml, traefik.yaml, and traefik.toml static configuration
  • File-provider YAML and TOML: HTTP, TCP, and UDP routers, services, middlewares, and TLS
  • traefik.* labels in Docker Compose and Swarm files
  • IngressRoute, Middleware, and TCP/UDP Traefik CRDs

Explicit boundaries

  • Diagnostics are editor feedback, not a substitute for running the target Traefik version against the configuration before deployment.
  • The extension has no telemetry and no network access, never runs Traefik, Docker, or kubectl, reads certificates only inside the workspace, and never shows or sends private key content.
  • When filing public issues, use a minimal sanitized configuration and remove hosts, addresses, credentials, and certificates.
Read the security policy

Get help, verify changes, or contribute

Issues and release history stay with the source repository so the evidence remains public.

Need this kind of workflow inside your team?

Start with a bounded workflow review. Product support stays in public issues; organization-specific discovery and implementation follow a private path.

Review the engagement