Repository navigation
Releases
Releases · JuanTorchia/gmm-nginx-vscode
NGINX Config v0.5.0
Added
- ingress-nginx support in plain YAML and parseable Helm manifests/values without taking over the YAML language: detection is limited to
Ingressresources withnginx.ingress.kubernetes.io/*annotations or thenginxingress 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
Added
- CVE advisor (
sec-cve): the nginx version in use (nginx.version, or whatnginx -vprints) 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 settingsnginx.cve.enable,nginx.versionandnginx.executablePath. - Security rules:
sec-redos(regexes inlocation,if,rewrite,map,server_namethat backtrack exponentially),sec-cors-credentials(any origin allowed with credentials),sec-https-downgrade(HTTPS server redirecting tohttp://),sec-stale-dns(host names in*_passresolved only at startup) andsec-autoindex(autoindex onfor 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,typesandsplit_clientsvalues (nginx.format.alignValues, on by default). unused-upstreamhint, shown faded, for upstreams no*_passof 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
Added
*.conf.templatefiles (and*.templateunder annginx/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 IDssec-*):aliaspath traversal,add_headerlists dropped by a nested block, upstreams or redirects built from a client-controlled Host header,server_tokens on,ifinsidelocation,allowwithoutdeny all, ports without adefault_server,valid_referers none,add_header Content-Typeand unanchored extension regexes that reach a backend. Silenced with the samegmm-lint-disable-*comments as the TLS lint.
NGINX Config v0.2.0
Added
- TLS lint against the Mozilla Server Side TLS guidelines (6.0,
intermediateormodernvianginx.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_protocolswith the profile's, setssl_prefer_server_ciphers offand raise the HSTSmax-age. nginx.tls.lint.enableandnginx.tls.lint.disabledRulessettings, and# gmm-lint-disable-line/# gmm-lint-disable-next-linecomments to silence any diagnostic on one line.npm run tls:generate/tls:checkbuild 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_nameoutside 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.diagnosticsandnginx.certificates.allowOutsideWorkspacesettings. Only files inside the workspace are read by default, and private keys are never displayed.
NGINX Config v0.1.0
Added
nginxlanguage with detection fornginx.conf,*.nginx,fastcgi_paramsand friends, and files undersites-available/,sites-enabled/,conf.d/andnginx/.- TextMate grammar: directives, blocks,
locationmodifiers, 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_passwithout 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,ifandlimit_except, with keyword values and upstream names. - Hover documentation with syntax, default, context, module, version and NGINX Plus badge.
- Outline, folding, go to
upstreamacross the workspace, followinclude(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_certificateand related directives when CertView is installed. - Snippets for common server, location, upstream and map blocks.