Skip to content

Commit 8369506

Browse files
simonwalzclaude
andcommitted
fix(console): netcheck - option b points to the device's manual
How a CA gets into the trust store depends on who builds and configures the device: custom_ca_certs, or the vendor's image. The report cannot know which, so it refers to the manual; the API docs name both ways and ask vendors to describe theirs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Simon Walz <contact@simonwalz.de>
1 parent 0613475 commit 8369506

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎docs/common/cuos-api.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,11 @@ failure behind it.
156156
inspection is a supported mode, as update images are verified by digest, not
157157
by trusting the connection. Any other CA is an error
158158
with two ways out: exempt the registry from inspection, or have the inspection
159-
CA added to the device — by its vendor, in the image, or in `custom_ca_certs`
160-
where the customer manages the system configuration.
159+
CA added to the device's trust store. The report refers to the device's
160+
manual for how, since that depends on who builds and configures the device:
161+
in CuOS it is `custom_ca_certs` in `system.json`, or the CA built into the
162+
image. A vendor shipping CuOS-based devices should describe this in its
163+
manual.
161164
- **Credentials** are checked by a `docker login` through the docker daemon,
162165
into a temporary client configuration — the daemon is what pulls the update,
163166
with its own TLS implementation.

‎system/cuos/netcheck.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ check_cert_ca() {
686686
record cert_ca error "issued by an unknown CA (TLS inspection?)" \
687687
"The connection is probably inspected by a device whose CA this device does not trust. Two options, both supported:
688688
a) Exempt ${HOST} from TLS inspection.
689-
b) Have the CA certificate of the inspection added to the device: ask the vendor of the device to include it in its image, or, if you manage the system configuration of the device yourself, add it to custom_ca_certs.
689+
b) Have the CA certificate of the inspection added to the trust store of the device, as described in the device's manual.
690690
Note: with b) the inspection infrastructure sees this traffic, credentials included, in clear text; securing it is your responsibility."
691691
;;
692692
*)

‎system/cuos/netcheck.test.sh‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,7 @@ MOCK_SYS="60 20"
285285
run
286286
expect "unknown CA: error" "[ERROR]" line "Certificate / CA"
287287
expect "unknown CA: option a" "yes" has "a) Exempt registry.example.org from TLS inspection."
288-
expect "unknown CA: option b, the vendor" "yes" has "vendor of the device to include it in its image"
289-
expect "unknown CA: option b, custom_ca_certs" "yes" has "add it to custom_ca_certs"
288+
expect "unknown CA: option b" "yes" has "b) Have the CA certificate of the inspection added to the trust store"
290289
expect "unknown CA: the hostname is still checked" "[OK]" line "Hostname"
291290
expect "unknown CA: the connection is skipped" "[SKIPPED]" line "TLS connection"
292291

0 commit comments

Comments
 (0)