-
Notifications
You must be signed in to change notification settings - Fork 41
docs: add FIPS-enabled deployment guide #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,172 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||||||||||||||
| title: FIPS-enabled deployment | ||||||||||||||||||||||||||||||||||||||||||||||||||
| sidebar_label: FIPS deployment | ||||||||||||||||||||||||||||||||||||||||||||||||||
| description: Deploy the FIPS variant of Plane Enterprise on a FIPS-enforcing host, including prerequisites, image list, verification, and scope of coverage. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| # FIPS-enabled deployment | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Plane Enterprise publishes a FIPS variant of every application image alongside the standard set. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| These images are built on Red Hat UBI 10, apply the system-wide FIPS cryptographic policy, and run | ||||||||||||||||||||||||||||||||||||||||||||||||||
| their cryptography against FIPS-validated modules (Red Hat's OpenSSL FIPS provider for the Python | ||||||||||||||||||||||||||||||||||||||||||||||||||
| and static services; the Go FIPS 140-3 module for the Go services). They are intended for | ||||||||||||||||||||||||||||||||||||||||||||||||||
| deployments that must meet FIPS 140-3 expectations, such as US Federal or GovCloud environments. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| > **The single most important prerequisite:** FIPS mode is a property of the **host**, not of the | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > image. A FIPS image on a non-FIPS host starts cleanly and looks identical from the inside while | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > providing none of the guarantees. Read [Host prerequisite](#host-prerequisite) first. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Images | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| The FIPS images use the same names as the standard `-commercial` images with a `-fips` suffix, in | ||||||||||||||||||||||||||||||||||||||||||||||||||
| the `makeplane` Docker Hub organization: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| | Service | Image | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | ------------- | --------------------------------------- | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Backend / API | `makeplane/backend-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Web | `makeplane/web-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Admin | `makeplane/admin-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Space | `makeplane/space-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Live | `makeplane/live-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Silo | `makeplane/silo-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Monitor | `makeplane/monitor-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Email | `makeplane/email-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Plane AI (Pi) | `makeplane/plane-pi-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Proxy | `makeplane/proxy-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Flux | `makeplane/flux-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | Node runner | `makeplane/node-runner-commercial-fips` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Pin a specific release tag for any accredited deployment rather than tracking `latest` — a known, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| fixed image version is part of the audit trail. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| > **Note:** there is no FIPS All-in-One (AIO) image. The AIO image is built on an Alpine base, which | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > has no FIPS-validated cryptography, so a FIPS deployment uses the multi-container Compose stack | ||||||||||||||||||||||||||||||||||||||||||||||||||
| > below, not the AIO image. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Host prerequisite | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| The host kernel must be booted in FIPS mode. The container inherits this through | ||||||||||||||||||||||||||||||||||||||||||||||||||
| `/proc/sys/crypto/fips_enabled` and **cannot set it itself**. Verify before deploying: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cat /proc/sys/crypto/fips_enabled # must print 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| To enable FIPS mode on a RHEL-family host (RHEL, Rocky, Alma, Amazon Linux 2023): | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo dnf install -y crypto-policies-scripts | ||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo fips-mode-setup --enable | ||||||||||||||||||||||||||||||||||||||||||||||||||
| sudo reboot | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| `/boot` must be its own filesystem for this to work — it is on the stock cloud images. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Alternatively, boot a vendor FIPS image (a RHEL FIPS AMI, Ubuntu Pro FIPS) or use OpenShift with | ||||||||||||||||||||||||||||||||||||||||||||||||||
| FIPS enabled at install time. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| As a safeguard, the shipped Compose file sets `PLANE_REQUIRE_FIPS=1`, so the containers **refuse to | ||||||||||||||||||||||||||||||||||||||||||||||||||
| start** if the host is not in FIPS mode. Set it to `0` to downgrade that to a startup warning. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Deploy | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| The Compose file and its supporting files live in the plane-ee repository under | ||||||||||||||||||||||||||||||||||||||||||||||||||
| `deployments/cli/commercial/`: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| - `docker-compose-fips.yml` — the FIPS stack | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - `variables.env` — environment template | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - `README-FIPS.md` — the authoritative operations reference | ||||||||||||||||||||||||||||||||||||||||||||||||||
| - `verify-fips.sh` — the verification script (see [Verify](#verify)) | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||
| # 1. Confirm the host is in FIPS mode (above). | ||||||||||||||||||||||||||||||||||||||||||||||||||
| # 2. Prepare the environment file. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cp variables.env .env | ||||||||||||||||||||||||||||||||||||||||||||||||||
| # Edit at least: DOMAIN_NAME, WEB_URL, SECRET_KEY, MACHINE_SIGNATURE. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| # 3. Bring the stack up. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| docker compose -f docker-compose-fips.yml up -d | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+72
to
+87
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Make the Compose working directory explicit. The commands use Proposed fix+# From the plane-ee repository root:
+cd deployments/cli/commercial
cp variables.env .env📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Each container logs its posture on startup: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
| plane: FIPS mode ACTIVE (host kernel reports fips_enabled=1) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+92
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Specify the fenced block language.
Proposed fix-```
+```text
plane: FIPS mode ACTIVE (host kernel reports fips_enabled=1)🧰 Tools🪛 markdownlint-cli2 (0.23.2)[warning] 92-92: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||||||||||||||||||||||||||||||||||||||||||||
| The Go services (monitor, email, proxy) log a corresponding line, for example | ||||||||||||||||||||||||||||||||||||||||||||||||||
| `Go FIPS 140-3 module ACTIVE`. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Verify | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| `verify-fips.sh` asserts the posture across the running stack — the kernel flag inside each | ||||||||||||||||||||||||||||||||||||||||||||||||||
| container, that the validated OpenSSL provider is loaded and active, that a non-approved digest is | ||||||||||||||||||||||||||||||||||||||||||||||||||
| refused, that Node's `crypto.getFips()` returns 1, and that the Go services report the module. It | ||||||||||||||||||||||||||||||||||||||||||||||||||
| exits non-zero if any assertion fails, so it can gate a deployment pipeline: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ./verify-fips.sh | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Configuration defaults specific to FIPS images | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| The FIPS images default to a stricter security posture than the standard images. Each default is | ||||||||||||||||||||||||||||||||||||||||||||||||||
| overridable with an environment variable, in either direction. These matter mainly if you are | ||||||||||||||||||||||||||||||||||||||||||||||||||
| moving an existing standard deployment onto the FIPS images; a fresh FIPS install needs none of | ||||||||||||||||||||||||||||||||||||||||||||||||||
| them changed. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| | Setting | FIPS default | Standard default | Notes | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | ---------------------------------- | ------------ | ---------------- | ----------------------------------------------------------------------------------------------------- | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `LDAP_TLS_REQUIRE_CERT` | `demand` | `never` | Validates the directory server's TLS certificate. See [LDAP](#ldap-certificate-validation). | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `SAML_REJECT_DEPRECATED_ALGORITHM` | on | off | Rejects assertions signed with RSA-SHA1. The IdP must sign with SHA-256. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `SECRET_ENCRYPTION_V2` | on | off | Writes at-rest secrets as AES-256-GCM instead of the legacy format. Both formats are always readable. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `USAGE_ID_DIGEST` | `sha256` | `md5` | Digest for Plane AI usage-ledger keys. A FIPS-mode Postgres refuses `md5()`. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ### LDAP certificate validation | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| On the FIPS images, LDAP TLS certificate validation is on by default. For it to succeed, **both** of | ||||||||||||||||||||||||||||||||||||||||||||||||||
| the following must hold: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| 1. The directory certificate chains to a trusted CA. For a private or self-signed CA, point | ||||||||||||||||||||||||||||||||||||||||||||||||||
| `LDAP_TLS_CA_CERTFILE` at your CA bundle (PEM). | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 2. The certificate's CN/SAN matches the host in `LDAP_SERVER_URI`. An IP address or short hostname | ||||||||||||||||||||||||||||||||||||||||||||||||||
| that is not in the certificate's SAN fails hostname verification **even with the correct CA | ||||||||||||||||||||||||||||||||||||||||||||||||||
| bundle** — use the fully qualified name the certificate was issued for. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Setting `LDAP_TLS_REQUIRE_CERT=never` restores the previous behaviour and logs a warning on every | ||||||||||||||||||||||||||||||||||||||||||||||||||
| connection. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Scope of coverage | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| **Covered.** The Plane application images run their cryptography against FIPS-validated modules on a | ||||||||||||||||||||||||||||||||||||||||||||||||||
| FIPS-enforcing host. Non-approved algorithms are refused. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| **The bundled data plane is not FIPS.** The `postgres`, `valkey`, `rabbitmq`, `minio`, and | ||||||||||||||||||||||||||||||||||||||||||||||||||
| `iframely` services in the Compose file are upstream Alpine/musl images with no FIPS-validated | ||||||||||||||||||||||||||||||||||||||||||||||||||
| cryptography — there are no FIPS variants of them. They are suitable for evaluation only. For an | ||||||||||||||||||||||||||||||||||||||||||||||||||
| accreditable deployment, replace them with externally managed datastores on FIPS endpoints and | ||||||||||||||||||||||||||||||||||||||||||||||||||
| repoint the connection variables: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| | Service | Replace with | Variables | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | ------------- | --------------------------------- | --------------------------------------------- | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `plane-db` | RDS / Aurora PostgreSQL | `DATABASE_URL`, `PGHOST`, `POSTGRES_*` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `plane-redis` | ElastiCache (Valkey/Redis) | `REDIS_URL`, `REDIS_HOST`, `REDIS_PORT` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `plane-mq` | Amazon MQ (RabbitMQ) | `AMQP_URL`, `RABBITMQ_*` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `plane-minio` | S3 on a FIPS endpoint, or similar | `AWS_S3_ENDPOINT_URL`, `AWS_*`, `USE_MINIO=0` | | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Then set the corresponding `*_REPLICAS` to `0`, or remove those services, so the bundled ones do | ||||||||||||||||||||||||||||||||||||||||||||||||||
| not start. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| **TLS termination.** The bundled proxy (Caddy) is built against a FIPS-validated module, but for an | ||||||||||||||||||||||||||||||||||||||||||||||||||
| accredited topology the recommended pattern is to terminate TLS at a validated endpoint in front of | ||||||||||||||||||||||||||||||||||||||||||||||||||
| the deployment — such as a FIPS-enabled load balancer — and have the proxy serve HTTP internally. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| **FIPS validation applies to the cryptographic modules, not to Plane as a product.** FIPS 140-3 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| certificates are held by the module vendors (Red Hat and the Go project). This deployment ensures | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Plane's cryptography _uses_ those validated modules on a compliant host; it does not make Plane | ||||||||||||||||||||||||||||||||||||||||||||||||||
| itself a FIPS-certified product. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Reference | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| The authoritative operations reference — including every environment variable and the migration | ||||||||||||||||||||||||||||||||||||||||||||||||||
| notes for moving a standard deployment onto FIPS images — is `README-FIPS.md`, shipped alongside | ||||||||||||||||||||||||||||||||||||||||||||||||||
| the Compose file in `deployments/cli/commercial/`. | ||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Match the page heading to the sidebar label.
docs/.vitepress/config.tsusesFIPS deployment, while Line 7 uses# FIPS-enabled deployment. Use the same exact label in both places.Proposed fix
As per coding guidelines, page headings (
#) must match the sidebar label defined indocs/.vitepress/config.ts.📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines