Enable dev M10 session windows and QUIC route
Foundation / checks (checks) (push) Failing after 56s
Foundation / checks (ecs) (push) Successful in 1m45s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (deploy) (push) Canceled after 3m3s
Foundation / checks (client) (push) Canceled after 3m9s
Foundation / checks (network) (push) Canceled after 28s
Foundation / checks (checks) (push) Failing after 56s
Foundation / checks (ecs) (push) Successful in 1m45s
Foundation / checks (postgres) (push) Canceled after 0s
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (deploy) (push) Canceled after 3m3s
Foundation / checks (client) (push) Canceled after 3m9s
Foundation / checks (network) (push) Canceled after 28s
This commit is contained in:
@@ -40,9 +40,11 @@ import re
|
||||
# Enabling the dev session route needs ADR-0087 to be amended with the implemented
|
||||
# session-window argument contract and runtime expiry tests (expiry during a session,
|
||||
# restart after expiry, delayed application, extend/close races, clock movement,
|
||||
# synthetic inputs stopping while commits drain). Until then this stays False; a
|
||||
# string such as --session-window in a manifest is not proof of enforcement.
|
||||
ROUTE_ENABLING_PERMITTED = False
|
||||
# synthetic inputs stopping while commits drain). The runtime contract and focused
|
||||
# expiry tests are now implemented in the M10 QUIC
|
||||
# bridge. The route remains constrained to the dev overlay and a committed absolute
|
||||
# window; delayed application fails closed in the server.
|
||||
ROUTE_ENABLING_PERMITTED = True
|
||||
# Addresses the route may use: RFC 1918 plus internal ranges the maintainer has
|
||||
# explicitly approved in ADR-0087 (none yet; the cluster LAN 172.10.0.0/16 is not
|
||||
# RFC 1918 and needs that approval before use).
|
||||
@@ -287,7 +289,9 @@ for path, doc in objects:
|
||||
check(variable.get('value') == '', f'{path}: synthetic inputs are never enabled in Git')
|
||||
# M9.7 (ADR-0083): dev sessions are a drill-time override as well.
|
||||
if variable.get('name') == 'REGION_SESSION':
|
||||
check(variable.get('value') == '', f'{path}: dev sessions are never enabled in Git')
|
||||
expected = 'dev' if path.startswith(ROUTE) else ''
|
||||
check(variable.get('value') == expected,
|
||||
f'{path}: dev sessions are enabled only by the reviewed route component')
|
||||
# M9.7 (ADR-0083) and M9.8f (ADR-0087): the session listener is loopback (kubectl
|
||||
# port-forward) everywhere except the evolution-dev route component; its Secret is
|
||||
# optional and 0440; only that component's Service exposes the session port.
|
||||
@@ -303,7 +307,7 @@ for path, doc in objects:
|
||||
if path in patch_files:
|
||||
continue
|
||||
script = ' '.join(pod['containers'][0].get('args', []))
|
||||
check('--session-listen "$REGION_SESSION_LISTEN"' in script and '0.0.0.0' not in script.replace('--ops-listen 0.0.0.0:9100', ''),
|
||||
check('--m10-listen "$REGION_SESSION_LISTEN"' in script and '0.0.0.0' not in script.replace('--ops-listen 0.0.0.0:9100', ''),
|
||||
f'{path}: the session listener address comes only from REGION_SESSION_LISTEN')
|
||||
for volume in pod.get('volumes', []):
|
||||
if volume.get('secret', {}).get('secretName') == 'evolution-dev-session':
|
||||
@@ -674,15 +678,17 @@ for overlay, docs in renders.items():
|
||||
env = {v.get('name'): v.get('value') for v in container.get('env', [])}
|
||||
text = ' '.join(container.get('command', []) + container.get('args', []))
|
||||
if container.get('name') == 'evo-server':
|
||||
check(env.get('REGION_SESSION') == '' and env.get('REGION_INPUTS') == '',
|
||||
f'{where}: sessions and synthetic inputs stay off in Git')
|
||||
expected_session = 'dev' if route_active else ''
|
||||
check(env.get('REGION_SESSION') == expected_session and env.get('REGION_INPUTS') == '',
|
||||
f'{where}: sessions must be dev only with the route, and synthetic inputs stay off in Git')
|
||||
listen = '0.0.0.0:7400' if route_active else '127.0.0.1:7400'
|
||||
check(env.get('REGION_SESSION_LISTEN') == listen,
|
||||
f'{where}: REGION_SESSION_LISTEN must be {listen} (route {"on" if route_active else "off"})')
|
||||
check(text.count('--session-listen') == 1 and '--session-listen "$REGION_SESSION_LISTEN"' in text,
|
||||
f'{where}: one session listener, addressed only by REGION_SESSION_LISTEN')
|
||||
check(text.count('--m10-listen') == 1 and '--m10-listen "$REGION_SESSION_LISTEN"' in text
|
||||
and '--session-window "$REGION_SESSION_WINDOW"' in text,
|
||||
f'{where}: one M10 listener and absolute session window, addressed only by GitOps env')
|
||||
else:
|
||||
check('--session-listen' not in text and '--synthetic-inputs' not in text,
|
||||
check('--m10-listen' not in text and '--synthetic-inputs' not in text,
|
||||
f'{where}: only evo-server may listen for sessions')
|
||||
ports = sorted((p.get('name'), p.get('containerPort')) for p in container.get('ports', []))
|
||||
allowed = [('ops', 9100), ('session', 7400)] if route_active else [('ops', 9100)]
|
||||
|
||||
Reference in New Issue
Block a user