> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Infrastructure coverage

> Which Docker, deployment, configuration and CI/CD files Loadwise reads, the rules that check them, and what it does not check yet.

Besides JavaScript and TypeScript sources, `loadwise sec` (and `loadwise check`) reads a set of project files as inputs. In a Git repository it reads tracked files; outside Git it walks the folder and skips `node_modules`, build output and `.env*` files. Files over 1 MiB, binary files and lockfiles are skipped.

## Supported formats

| Format | Files read | Rules |
| - | - | - |
| Dockerfile | `Dockerfile`, `*.Dockerfile`, `Dockerfile.*`, in any folder and at the Git top level of a workspace | [`dockerfile-runs-as-root`](https://loadwise.mintlify.site/rules/security/dockerfile-runs-as-root), [`dockerfile-unpinned-base-image`](https://loadwise.mintlify.site/rules/security/dockerfile-unpinned-base-image), [`dockerfile-secret-in-build`](https://loadwise.mintlify.site/rules/security/dockerfile-secret-in-build), [`dockerfile-add-remote-url`](https://loadwise.mintlify.site/rules/security/dockerfile-add-remote-url), [`dockerfile-npm-install`](https://loadwise.mintlify.site/rules/security/dockerfile-npm-install), [`committed-secret`](https://loadwise.mintlify.site/rules/security/committed-secret) |
| Docker Compose | `compose.yml`, `docker-compose*.yml`, `*.compose.yml` (and `.yaml`) | [`compose-hardcoded-secret`](https://loadwise.mintlify.site/rules/security/compose-hardcoded-secret), [`committed-secret`](https://loadwise.mintlify.site/rules/security/committed-secret) |
| Kubernetes manifests | Any `.yml` or `.yaml` file with `apiVersion` and `kind`: Pod, Deployment, ReplicaSet, DaemonSet, StatefulSet, ReplicationController, Job, CronJob and `v1` List | [`kubernetes-privileged-container`](https://loadwise.mintlify.site/rules/security/kubernetes-privileged-container) |
| Helm templates | Unrendered workload templates | No rules; a coverage note on stderr asks you to render the chart first |
| GitHub Actions workflows | `.github/workflows/*.yml` and `*.yaml` | [`github-actions-script-injection`](https://loadwise.mintlify.site/rules/security/github-actions-script-injection), [`github-actions-pull-request-target-checkout`](https://loadwise.mintlify.site/rules/security/github-actions-pull-request-target-checkout), [`github-actions-unpinned-action`](https://loadwise.mintlify.site/rules/security/github-actions-unpinned-action) |
| GitHub composite actions | `action.yml` and `action.yaml` in any folder | [`github-actions-script-injection`](https://loadwise.mintlify.site/rules/security/github-actions-script-injection), [`github-actions-unpinned-action`](https://loadwise.mintlify.site/rules/security/github-actions-unpinned-action) |
| GitLab CI | `.gitlab-ci.yml` and `*.gitlab-ci.yml` (and `.yaml`) in any folder; files reached only through `include: local:` are not read | [`gitlab-ci-script-injection`](https://loadwise.mintlify.site/rules/security/gitlab-ci-script-injection), [`gitlab-ci-unpinned-include`](https://loadwise.mintlify.site/rules/security/gitlab-ci-unpinned-include), [`gitlab-ci-unpinned-image`](https://loadwise.mintlify.site/rules/security/gitlab-ci-unpinned-image) |
| Azure Pipelines | `azure-pipelines.yml` in any folder and `.azure-pipelines/*.yml` (and `.yaml`) | [`azure-pipelines-script-injection`](https://loadwise.mintlify.site/rules/security/azure-pipelines-script-injection) |
| CircleCI | `.circleci/config.yml` (and `.yaml`) | [`circleci-script-injection`](https://loadwise.mintlify.site/rules/security/circleci-script-injection), [`circleci-unpinned-orb`](https://loadwise.mintlify.site/rules/security/circleci-unpinned-orb), [`circleci-unpinned-image`](https://loadwise.mintlify.site/rules/security/circleci-unpinned-image) |
| Bitbucket Pipelines | `bitbucket-pipelines.yml` | [`bitbucket-pipelines-script-injection`](https://loadwise.mintlify.site/rules/security/bitbucket-pipelines-script-injection), [`bitbucket-pipelines-unpinned-image`](https://loadwise.mintlify.site/rules/security/bitbucket-pipelines-unpinned-image) |
| Environment files | `.env`, `.env.*` (tracked files only) | [`committed-secret`](https://loadwise.mintlify.site/rules/security/committed-secret) |
| Any tracked text file | Files that contain a known credential token format | [`committed-secret`](https://loadwise.mintlify.site/rules/security/committed-secret) |
| Lockfiles | `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, `pnpm-lock.yaml`, `bun.lock`, `deno.lock`, `Cargo.lock` | [`dependency-known-vulnerability`](https://loadwise.mintlify.site/rules/security/dependency-known-vulnerability) (`loadwise sec deps --online`) |
| Next.js and Vite configuration | `env` keys in `next.config.{js,mjs,ts}`, and the project's declared framework, read while checking sources | [`next-server-env-in-client`](https://loadwise.mintlify.site/rules/reliability/next-server-env-in-client) (config `env` keys); [`client-env-secret-exposed`](https://loadwise.mintlify.site/rules/security/client-env-secret-exposed) (the declared framework's public env prefixes) |
| `package.json` | Dependencies and versions, read while checking sources; `scripts`, in any folder | Framework-aware source rules, for example the React version gate of the React rules; [`package-script-remote-code`](https://loadwise.mintlify.site/rules/security/package-script-remote-code), [`package-script-tls-verification-disabled`](https://loadwise.mintlify.site/rules/security/package-script-tls-verification-disabled) |
| Vue and Svelte components | `.vue`, `.svelte` templates | [`template-raw-html-binding`](https://loadwise.mintlify.site/rules/security/template-raw-html-binding) |
| Terraform | `*.tf` (not `.tfvars` or `.tf.json`); AWS, Google Cloud and Azure resources with literal values | [`terraform-admin-port-open-to-world`](https://loadwise.mintlify.site/rules/security/terraform-admin-port-open-to-world), [`terraform-storage-bucket-public`](https://loadwise.mintlify.site/rules/security/terraform-storage-bucket-public), [`terraform-database-publicly-accessible`](https://loadwise.mintlify.site/rules/security/terraform-database-publicly-accessible), [`terraform-storage-encryption-disabled`](https://loadwise.mintlify.site/rules/security/terraform-storage-encryption-disabled), [`terraform-hardcoded-credential`](https://loadwise.mintlify.site/rules/security/terraform-hardcoded-credential) |
| Jenkins pipelines | `Jenkinsfile`, `Jenkinsfile.*`, `*.jenkinsfile` | [`jenkinsfile-script-injection`](https://loadwise.mintlify.site/rules/security/jenkinsfile-script-injection), [`jenkinsfile-credential-interpolation`](https://loadwise.mintlify.site/rules/security/jenkinsfile-credential-interpolation) |
| Nginx and Apache configuration | `nginx.conf`, `httpd.conf`, `apache2.conf`, `.htaccess`, and `*.conf` under `nginx/`, `conf.d/`, `sites-available/`, `sites-enabled/`, `apache2/` or `httpd/` | [`web-server-directory-listing`](https://loadwise.mintlify.site/rules/security/web-server-directory-listing), [`web-server-version-exposed`](https://loadwise.mintlify.site/rules/security/web-server-version-exposed), [`web-server-legacy-tls`](https://loadwise.mintlify.site/rules/security/web-server-legacy-tls), [`nginx-proxy-pass-request-host`](https://loadwise.mintlify.site/rules/security/nginx-proxy-pass-request-host), [`config-cors-credentials-any-origin`](https://loadwise.mintlify.site/rules/security/config-cors-credentials-any-origin), [`config-unsafe-security-header`](https://loadwise.mintlify.site/rules/security/config-unsafe-security-header) |
| Static hosting configuration | `vercel.json`, `netlify.toml`, `_headers`, `_redirects` | [`hosting-redirect-external-wildcard`](https://loadwise.mintlify.site/rules/security/hosting-redirect-external-wildcard), [`config-cors-credentials-any-origin`](https://loadwise.mintlify.site/rules/security/config-cors-credentials-any-origin), [`config-unsafe-security-header`](https://loadwise.mintlify.site/rules/security/config-unsafe-security-header); missing security headers are not reported |

Workflow `run:` steps that call `node <script>` also mark that script as an entry point for the maintainability checker's unused-file analysis.

## Not checked yet

These formats and checks are known gaps, roughly in order of practical impact.

### Performance

* **Dockerfile layer caching**: `COPY . .` before the dependency install, which reinstalls every dependency on any source change. Not checked.
* **Missing `.dockerignore`**: a Dockerfile that copies the whole context with no `.dockerignore` excluding `node_modules`. Not checked.
* **GitHub Actions dependency cache**: `actions/setup-node` without `cache:` before `npm ci`. Not checked.
* **Final image size**: development dependencies or `NODE_ENV` not `production` in the final stage. Not checked.

### Security and reliability

* **GitHub Actions `permissions`**: workflows without a top-level or job-level `permissions` block. Not checked, because the default token scope depends on repository settings.
* **GitHub Actions timeouts and concurrency**: jobs without `timeout-minutes` (default 360 minutes) or `concurrency`. Not checked.
* **Kubernetes resources and probes**: containers without resource requests or limits, or without liveness and readiness probes. Not checked; a namespace `LimitRange` can supply defaults.
* **Kubernetes beyond `privileged`**: `runAsNonRoot`, `allowPrivilegeEscalation`, `hostNetwork`, `hostPath` and `:latest` images. Not checked.
* **Compose**: services without `healthcheck`, `restart` or resource limits, `privileged: true`, and `image:` without a tag. Only literal secrets are checked.
* **Yarn and pnpm installs in Dockerfiles** without `--frozen-lockfile` or `--immutable`. Only `npm install` is checked.
* **Helm charts**: templates are not rendered; render them (`helm template`) and scan the output.
* **Web server and hosting headers**: missing security headers are not reported, because a proxy, CDN or the application can add them. Rewrites and proxies to a host taken from the request path, Nginx `include` files outside the recognised folders, and headers inherited across Nginx or Apache blocks are not checked.
* **Other CI platforms**: Azure Pipelines repository resources and template references (`template: x@repo`) are not checked for pinning, nor are Bitbucket pipe versions, GitLab `services:` images, `$[[ inputs ]]` and template parameters spliced into scripts, or variables that copy an untrusted value under another name before a script parses it.
* **`package.json` scripts**: `--unsafe-perm` is not reported (a no-op since npm 7), and download-and-run steps in a separate script file that a lifecycle script calls are not followed.

### Formats not read

Infrastructure-as-code other than Terraform `.tf` files (CloudFormation, Pulumi, `.tf.json`), and `tsconfig.json` compiler options are not checked as inputs. GitHub workflows of a monorepo are read only when the scanned folder contains `.github/workflows/`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.