The Redaction Policy Editor builds a policy in your browser, but generating the policy and running Test Policy both happen on the editor’s server. With the hosted copy at policies.philterd.ai, the page posts the form to /generate and the text you paste to /test-policy on Philterd’s server. That is why it carries a warning not to enter PII.
Running the editor yourself moves that server into your network. You can then test a policy on documents that look like your real data, which is the only kind of test that tells you much. The editor is a single container that needs no outbound access, so it also runs in a network with no internet connection at all.
This guide uses the released version, 1.0.0, published as philterd/philterd-redaction-policy-editor:1.0.0 (also tagged latest). The project’s documentation already describes the next version, which adds a /api/health endpoint, custom header and footer files, and PhiSQL support. Those are not in 1.0.0.
Run it
docker run -d --name policy-editor -p 127.0.0.1:8080:8080 \
philterd/philterd-redaction-policy-editor:1.0.0
The editor starts in about a second. Its log names the version:
docker logs policy-editor 2>&1 | grep -o "Start.*PolicyEditorApplication.*"
Starting PolicyEditorApplication v1.0.0 using Java 21.0.10 with PID 1 (/app/philterd-policy-editor.jar started by root in /app)
Started PolicyEditorApplication in 1.173 seconds (process running for 1.619)
Open http://127.0.0.1:8080/. The page is the same as the hosted copy, warning banner included:

The -p 127.0.0.1:8080:8080 mapping keeps the editor reachable only from the machine it runs on. To share it with a team, publish it on an interface your users can reach and read Restrict who can reach it first.
Hide the PII warning
The banner is meant for the public copy. Once the editor runs inside your boundary, turn it off with HIDE_PII_WARNING=1:
docker run -d --name policy-editor -p 127.0.0.1:8080:8080 \
-e HIDE_PII_WARNING=1 \
philterd/philterd-redaction-policy-editor:1.0.0
Only the value 1 hides it. Any other value, or none, shows the banner. Whether people may paste real data into the editor is still your organization’s decision. The editor logs the policy name for each request, not the text, and keeps no data on disk. If a test fails, it also logs the error message and stack trace.
Check that it needs no outbound access
A Docker network created with --internal has no route out, which makes it a quick way to confirm the editor works without one:
docker network create --internal editor-isolated
docker run -d --name policy-editor --network editor-isolated \
philterd/philterd-redaction-policy-editor:1.0.0
# From another container on the same network: the editor answers...
docker run --rm --network editor-isolated curlimages/curl:8.10.1 \
-s -o /dev/null -w "%{http_code}\n" http://policy-editor:8080/
# ...and nothing on that network reaches the internet.
docker run --rm --network editor-isolated curlimages/curl:8.10.1 \
-s -m 5 -o /dev/null -w "%{http_code}\n" https://www.philterd.ai/
200
000
The page loads three things, all from the editor itself: /, /css/bootstrap.min.css, and /js/bootstrap.bundle.min.js. Generate Policy posts to /generate and Test Policy to /test-policy, on the same server. The links to the documentation and to philterd.ai are ordinary links, fetched only if someone clicks them.
One feature reaches beyond the editor. Testing a policy that contains a PhEye filter calls the PhEye endpoint set in that filter, from the editor’s server. In an isolated network, point the filter at a PhEye service the editor can reach.
Move the image into an air-gapped network
On a machine with internet access, pull the image and save it as a tar file:
docker pull philterd/philterd-redaction-policy-editor:1.0.0
docker save philterd/philterd-redaction-policy-editor:1.0.0 -o policy-editor-1.0.0.tar
sha256sum policy-editor-1.0.0.tar > policy-editor-1.0.0.tar.sha256
The file is about 312 MB. Carry it and its checksum across with whatever transfer process your network allows, check the checksum on the other side, and load it:
sha256sum -c policy-editor-1.0.0.tar.sha256
docker load -i policy-editor-1.0.0.tar
Loaded image: philterd/philterd-redaction-policy-editor:1.0.0
Then run it as shown above. The image includes everything it needs, including the Phileas engine that Test Policy runs.
Restrict who can reach it
The editor has no sign-in. Anyone who can reach its port can use it and send it text to test. It serves plain HTTP on port 8080. Before you share it:
- Publish the port only on a network your users are on, or keep it on
127.0.0.1and put a reverse proxy in front that handles TLS and authentication. Using an Apache reverse proxy with Philter shows the same pattern for Philter. - The image runs as root. It also runs as an unprivileged user with a read-only filesystem, which limits what a compromised process could do:
docker run -d --name policy-editor -p 127.0.0.1:8080:8080 \
--user 10001:10001 --read-only --tmpfs /tmp \
-e HIDE_PII_WARNING=1 \
philterd/philterd-redaction-policy-editor:1.0.0
Generate Policy and Test Policy both work this way. The --tmpfs /tmp is required: the editor’s web server needs a writable temporary directory and does not start on a read-only filesystem without one. It keeps no data, so there is nothing to back up. Policies leave it only as the files you download.
Keep it current
Policies built in 1.0.0 load into Philter 4.0.1, and Test Policy in 1.0.0 runs Phileas 3.3.0 while Philter 4.0.1 runs Phileas 4.5.0, so confirm results in Philter before you rely on them. Move policies between the editor and Philter covers that, and the known issues in 1.0.0. When a new version is published, repeat the save and load with the new tag.