Skip to content

Releases

NGINX Config v0.5.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 13:57
3404962

Added

  • ingress-nginx support in plain YAML and parseable Helm manifests/values without taking over the YAML language: detection is limited to Ingress resources with nginx.ingress.kubernetes.io/* annotations or the nginx ingress class.
  • Reproducible catalog of all 130 annotations named in the final official ingress-nginx docs (controller-v1.15.1), plus the canonical allowlist alias, with hover documentation, scoped completion, unknown/misspelled annotation diagnostics and value validation.
  • Retirement notice, deprecated-alias diagnostics and high-risk warnings for arbitrary NGINX snippet annotations associated with CVE-2021-25742.
  • Annotation-by-annotation migration mapping for Gateway API, Traefik and F5 NGINX Ingress, marking best-effort and implementation-specific equivalents as approximate.
  • NGINX: ingress-nginx Migration Report command: workspace annotation inventory, portability and risky-snippet summary, suggested starting target per Ingress, optional Ingress2Gateway 1.0 command, cutover checklist and a juanchi.dev post idea.

Security

  • The migration report stays inside workspace roots, skips dependency/build directories, never follows directory symlinks, caps file count and size, and never invokes cluster or migration commands.

NGINX Config v0.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 11:24
bcbc099

Added

  • CVE advisor (sec-cve): the nginx version in use (nginx.version, or what nginx -v prints) is checked against the nginx.org security advisories bundled with the extension. Advisories that need a feature (HTTP/2, HTTP/3, resolver, mp4, ssi, mail, stream, …) are reported on the directive that turns it on; the rest are listed on the first line of the main config with the release that fixes them. New settings nginx.cve.enable, nginx.version and nginx.executablePath.
  • Security rules: sec-redos (regexes in location, if, rewrite, map, server_name that backtrack exponentially), sec-cors-credentials (any origin allowed with credentials), sec-https-downgrade (HTTPS server redirecting to http://), sec-stale-dns (host names in *_pass resolved only at startup) and sec-autoindex (autoindex on for a whole server).
  • Find all references, rename and document highlights for upstreams (across the workspace), named locations and user-defined variables (set, map, geo, split_clients, js_set, perl_set); go to definition on variables.
  • Hover documentation for the 258 embedded variables of nginx.org (generated by npm run variables:generate), and completion of variables after $ and of named locations after @.
  • Parameter-name inlay hints (nginx.inlayHints.parameterNames) and signature help from the nginx.org syntax.
  • Refactorings: add an IPv6 listen, add an HTTP to HTTPS redirect server, extract directives to an include file, inline an include.
  • The formatter lines up map, geo, types and split_clients values (nginx.format.alignValues, on by default).
  • unused-upstream hint, shown faded, for upstreams no *_pass of a self-contained config uses.

Security

  • Workspace nginx files are measured and read through the same file descriptor (no stat/read race).
  • The catalog and advisory generators remove nested and malformed HTML tags completely.

NGINX Config v0.3.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 18:18
93b1437

Added

  • *.conf.template files (and *.template under an nginx/ folder), the envsubst templates of the official Docker image, open as nginx. The TLS lint skips ${VAR} placeholders whose value is only known when the container starts.
  • Security lint (nginx.security.lint.*, rule IDs sec-*): alias path traversal, add_header lists dropped by a nested block, upstreams or redirects built from a client-controlled Host header, server_tokens on, if inside location, allow without deny all, ports without a default_server, valid_referers none, add_header Content-Type and unanchored extension regexes that reach a backend. Silenced with the same gmm-lint-disable-* comments as the TLS lint.

NGINX Config v0.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 15:41
bc71fad

Added

  • TLS lint against the Mozilla Server Side TLS guidelines (6.0, intermediate or modern via nginx.tls.profile): deprecated protocols, weak ciphers, ciphers and protocols outside the profile, missing or short HSTS, OCSP stapling without a resolver, ssl_prefer_server_ciphers, weak DH parameters and static session ticket keys. Rule IDs are shared with HAProxy Config.
  • Quick fixes to replace ssl_protocols with the profile's, set ssl_prefer_server_ciphers off and raise the HSTS max-age.
  • nginx.tls.lint.enable and nginx.tls.lint.disabledRules settings, and # gmm-lint-disable-line / # gmm-lint-disable-next-line comments to silence any diagnostic on one line.
  • npm run tls:generate / tls:check build the profile catalog from the pinned Mozilla guideline; the weekly drift workflow reports a newer guideline.
  • Hover on certificate files with subject, SANs, issuer, validity and days left, key type, chain and an Open in CertView link; hover on keys shows their type and whether they match the certificate.
  • Certificate diagnostics: expired or expiring (nginx.certificates.expiryWarningDays, default 30), key that does not match, encrypted key that cannot be checked, server_name outside the SANs, chain out of order or without the intermediate. Rule IDs are shared with HAProxy Config.
  • The Open in CertView CodeLens shows the days until the certificate expires.
  • nginx.certificates.diagnostics and nginx.certificates.allowOutsideWorkspace settings. Only files inside the workspace are read by default, and private keys are never displayed.

NGINX Config v0.1.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 21:13
060b18f

Added

  • nginx language with detection for nginx.conf, *.nginx, fastcgi_params and friends, and files under sites-available/, sites-enabled/, conf.d/ and nginx/.
  • TextMate grammar: directives, blocks, location modifiers, variables, strings, parameters, numbers, comments and embedded Lua.
  • Directive catalog of nginx and its official modules (841 directives, 101 modules) generated from nginx.org by npm run catalog:generate.
  • Language server with diagnostics for unknown directives, directives outside their context, wrong argument counts, { } misuse, proxy_pass without a scheme, unbalanced braces and missing ;, and certificate files that cannot be found (information, can be turned off).
  • Context-aware completion for http, server, location, upstream, events, stream, mail, if and limit_except, with keyword values and upstream names.
  • Hover documentation with syntax, default, context, module, version and NGINX Plus badge.
  • Outline, folding, go to upstream across the workspace, follow include (relative paths and globs), named locations and clickable certificate paths.
  • Formatter that only re-indents and never adds or removes lines.
  • Open in CertView CodeLens on ssl_certificate and related directives when CertView is installed.
  • Snippets for common server, location, upstream and map blocks.