From f51ead2d7b0a4c8113df8e1cc53ae9cd5d4127e9 Mon Sep 17 00:00:00 2001 From: Audric Date: Sun, 17 May 2026 02:19:13 +0200 Subject: [PATCH] test(satellite): use dash in per-id satellite ids to match charset Underscores are not in the configured per-id charset [A-Za-z0-9-]+, so SECRET_SAT_PINNED= was correctly rejected as malformed at startup. Switch SAT_PINNED -> SAT-PINNED (and same for SAT_UNPINNED) so the test fixture matches the spec. --- tests/topology.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/topology.py b/tests/topology.py index 064cf36..8a29927 100644 --- a/tests/topology.py +++ b/tests/topology.py @@ -67,16 +67,17 @@ SATELLITE = { } # Extra satellite identities used by tests/test_satellite_secrets.py. -# - SAT_PINNED has its own SECRET_=... entry in the parent's +# Ids use dashes only — the per-id charset is [A-Za-z0-9-]+ (no underscore). +# - SAT-PINNED has its own SECRET_=... entry in the parent's # [SATELLITE] section. -# - SAT_UNPINNED has no per-id entry; it falls through to the default +# - SAT-UNPINNED has no per-id entry; it falls through to the default # [SATELLITE].SECRET. # - SAT_BAD_KEY_ID is the *id* used to verify that a malformed # SECRET_=... key is ignored at startup; this satellite uses # the default secret too. -SATELLITE_PINNED_ID = "SAT_PINNED" +SATELLITE_PINNED_ID = "SAT-PINNED" SATELLITE_PINNED_SECRET = "secret_pinned" -SATELLITE_UNPINNED_ID = "SAT_UNPINNED" +SATELLITE_UNPINNED_ID = "SAT-UNPINNED" SATELLITE_BAD_KEY_ID = "bad.id" SATELLITE_BAD_KEY = f"SECRET_{SATELLITE_BAD_KEY_ID}" SATELLITE_BAD_VALUE = "ignored_by_startup_validator"