diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 55eca82..01b7d32 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -9,6 +9,26 @@ permissions:
contents: read
jobs:
+ secrets:
+ name: Secret scan (gitleaks, full history)
+ runs-on: ubuntu-24.04
+ env:
+ GITLEAKS_VERSION: 8.21.2
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Install gitleaks
+ run: |
+ curl -sSfL -o gitleaks.tar.gz \
+ "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
+ tar -xzf gitleaks.tar.gz gitleaks
+ ./gitleaks version
+
+ - name: Scan every commit for secrets
+ run: ./gitleaks git --redact --verbose --exit-code 1 .
+
test:
name: ${{ matrix.arch }} ยท Python ${{ matrix.python }}
runs-on: ${{ matrix.runner }}
diff --git a/.gitignore b/.gitignore
index 7d8eba5..0134edc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,14 @@ dist/
.coverage
coverage.xml
htmlcov/
+
+# Secrets and device state must never be committed (see SECURITY notes in keys/README.md).
+# Only the public release key in keys/ is allowed.
+*.pem
+!keys/release-pubkey.pem
+*.key
+.env
+.env.*
+fieldimager-keys/
+device.json
+seal.json
diff --git a/README.md b/README.md
index 3bce1a0..787929f 100644
--- a/README.md
+++ b/README.md
@@ -123,8 +123,8 @@ These screenshots were captured on the real device during the first hardware run
| | |
|---|---|
-|
|
|
-| Admin PIN pad (digits are masked; wrong PINs count toward a lockout) | Wi-Fi exists only in admin mode, for updates |
+|
|
|
+| Admin PIN pad (digits are masked; wrong PINs count toward a lockout) | Wi-Fi exists only in admin mode, for updates (simulation render, so no real network names are shown) |
|
|
|
| Default options: E01, fast compression, SHA-256 always on | Qt Virtual Keyboard for case, evidence and operator fields |
|
|
|
diff --git a/docs/media/screens/05-admin-mode-wifi-networks-sim.png b/docs/media/screens/05-admin-mode-wifi-networks-sim.png
new file mode 100644
index 0000000..270838e
Binary files /dev/null and b/docs/media/screens/05-admin-mode-wifi-networks-sim.png differ
diff --git a/tests/unit/test_system.py b/tests/unit/test_system.py
index f0f509b..37026aa 100644
--- a/tests/unit/test_system.py
+++ b/tests/unit/test_system.py
@@ -108,7 +108,7 @@ def test_the_password_goes_to_a_private_keyfile_not_to_a_command_line(tmp_path):
(sysmod.NMCLI, "-t", "-f", "DEVICE,TYPE"): (0, "eth0:ethernet\nwlan0:wifi", ""),
(sysmod.NMCLI, "-t", "-f", "GENERAL.CONNECTION,IP4.ADDRESS"): (
0,
- "GENERAL.CONNECTION:FieldImager Lab\nIP4.ADDRESS[1]:192.168.0.18/24",
+ "GENERAL.CONNECTION:FieldImager Lab\nIP4.ADDRESS[1]:192.0.2.18/24",
"",
),
}
@@ -116,7 +116,7 @@ def test_the_password_goes_to_a_private_keyfile_not_to_a_command_line(tmp_path):
status = asyncio.run(
HostSystem(HostPaths(tmp_path), runner).wifi_connect("Lab", SECRET, "WPA2")
)
- assert status.ssid == "FieldImager Lab" and status.ip == "192.168.0.18"
+ assert status.ssid == "FieldImager Lab" and status.ip == "192.0.2.18"
assert not any(SECRET in " ".join(c) for c in runner.calls)
files = list((tmp_path / sysmod.NM_CONNECTIONS.lstrip("/")).iterdir())
assert len(files) == 1 and stat.S_IMODE(files[0].stat().st_mode) == 0o600