updating docs
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
[Reviewed]
|
||||
# ADR-0087: Dev session route and operator-opened session windows
|
||||
|
||||
## Status
|
||||
Accepted for M9.8f as design (2026-10-02), evolution-dev only. The route is committed
|
||||
**disabled**; nothing was applied to the cluster. The M9.8f gate stays open until the
|
||||
route is enabled and connectivity is recorded. Enabling it is blocked by policy until
|
||||
the inputs and server-side window enforcement below exist. Narrowly supersedes
|
||||
Accepted for M9.8f as design (2026-10-02), evolution-dev only. Repository status
|
||||
reconciled 2026-10-08: `region/dev` includes the route component, the policy permits
|
||||
it, and the server implements an absolute session window. These repository facts
|
||||
do not establish current live availability or completion of every qualification
|
||||
check below. The original disabled-route status is historical. Narrowly supersedes
|
||||
ADR-0083 (loopback-only listener, never a Service) and ADR-0069 (no LoadBalancer
|
||||
Services) for evolution-dev, and only once enabled.
|
||||
|
||||
@@ -13,7 +15,9 @@ Internal testers need the native client (M9.8e ZIP) to reach the dev region with
|
||||
`kubectl port-forward`. The cluster inventory (INVENTORY.md, 2026-09-29) shows RKE2's
|
||||
ingress-nginx 1.12.1 DaemonSet serving 80/443 on all four node addresses (public sites
|
||||
included), MetalLB 0.15.2 in FRR mode with one LoadBalancer (Gitea SSH), and an existing
|
||||
HTTP Ingress for void.aeternalisgames.com in namespace `void`. The session protocol was
|
||||
HTTP Ingress for void.aeternalisgames.com in namespace `void` at that inventory date.
|
||||
On 2026-10-08 the maintainer confirmed that the deprecated HTTP service and Ingress
|
||||
have been removed; there is no remaining HTTP site using this hostname. The session protocol was
|
||||
TLS 1.3 over raw TCP (ADR-0082) when this was written; since 2026-10-05 the route carries
|
||||
the M10 session, QUIC over UDP (ADR-0090/0091/0092; amendment below). Never HTTP. Sessions need synthetic carrier inputs, which
|
||||
ADR-0073 keeps drill-time only so dev history does not grow continuously.
|
||||
@@ -63,8 +67,8 @@ Expiry is enforced **inside evo-server**, not by a delayed cleanup job:
|
||||
closed Git configuration. Grant expiry alone does not stop the generator.
|
||||
|
||||
## Enabling (all required; `tools/ci/deploy-policy-check.py` refuses otherwise)
|
||||
0. `ROUTE_ENABLING_PERMITTED` in the policy check is `False` and is changed only together
|
||||
with an amendment here that records the implemented window argument/configuration
|
||||
0. `ROUTE_ENABLING_PERMITTED` in the policy check is now `True`. Its original activation
|
||||
requirement remains an evidence obligation: record the implemented window argument/configuration
|
||||
contract and its runtime expiry tests (expiry during an active session, restart after
|
||||
expiry, delayed application, extend/close races, clock movement, synthetic inputs
|
||||
stopping while pending commits drain). A flag string in a manifest is not evidence.
|
||||
@@ -89,23 +93,20 @@ Expiry is enforced **inside evo-server**, not by a delayed cleanup job:
|
||||
6. The rendered-output checks (ADR-0088) pass for every overlay with the route included.
|
||||
|
||||
## Open points for the maintainer
|
||||
Review recommendations (M9.8f review, 2026-10-02), pending the maintainer's decision:
|
||||
keep manual Argo sync for the first delivery and report a workflow-created window as
|
||||
pending until applied, with an absolute expiry that delayed sync never shifts (Close
|
||||
also needs propagation; the server deadline is the upper bound); keep the existing void
|
||||
HTTP endpoint unless explicitly retired, possibly choosing a dedicated session hostname
|
||||
instead (DNS cannot select by TCP port), before issuing the certificate; confirm the
|
||||
actual MetalLB pool and client addresses; clock-skew handling remains open.
|
||||
Manual Argo delivery was confirmed by the maintainer on 2026-10-08 (amendment below).
|
||||
The maintainer confirmed retention of the void session hostname and removal of the
|
||||
deprecated HTTP Ingress on 2026-10-08 (D-003). Actual MetalLB, DNS and client-address
|
||||
configuration still require operational verification. Running-window clock behavior was decided
|
||||
on 2026-10-08; numerical host clock-health tolerances remain to be specified.
|
||||
|
||||
- **Argo delivery.** The aevolution-dev Application has no automated sync, and the
|
||||
policy forbids auto-sync outside the platform app (ADR-0069). A workflow commit alone
|
||||
will not deploy; either a manual sync per window or a scoped dev exception must be
|
||||
decided before implementing the workflow. CI holds no cluster credentials (ADR-0020),
|
||||
so Status can report Git state; live fields need a defined read path.
|
||||
- **void namespace.** void.aeternalisgames.com already has an HTTP Ingress (namespace
|
||||
`void`). Pointing internal DNS at the VIP changes what internal clients reach for that
|
||||
name; confirm or retire the existing route.
|
||||
- Clock skew: the four-hour maximum is decided; define the permitted clock-skew tolerance.
|
||||
- **Status observation.** Manual delivery is decided. A workflow commit reports desired
|
||||
Git state, not applied state. Live status still needs an explicitly defined read path;
|
||||
until then the operator verifies it through Argo and server observations.
|
||||
- **Hostname.** Resolved by D-003: retain `void.aeternalisgames.com` for sessions;
|
||||
the prior HTTP service and Ingress were deprecated and removed, per maintainer.
|
||||
- **Clock health.** Dual-deadline expiry is decided below. Host synchronization checks
|
||||
and their numerical tolerance, especially across restarts, remain an engineering
|
||||
follow-up; a process-local elapsed timer cannot prove UTC accuracy after a restart.
|
||||
|
||||
## Alternatives considered
|
||||
- ingress-nginx tcp-services or SNI passthrough on 443: couples game sessions to the
|
||||
@@ -114,6 +115,55 @@ actual MetalLB pool and client addresses; clock-skew handling remains open.
|
||||
- NodePort: opens a port on every node; forbidden by ADR-0069.
|
||||
- Always-on sessions in dev: continuous synthetic history; rejected for now.
|
||||
|
||||
## Amendment 2026-10-08: Manual application of session-window changes
|
||||
|
||||
Maintainer selected option A during the decision review. The Open/Extend/Close
|
||||
workflow prepares and commits the desired dev-window configuration. The operator
|
||||
manually syncs `aevolution-dev` to apply it. This decision grants no automated
|
||||
Argo sync or deployment credentials to CI.
|
||||
|
||||
A successful commit means the change is pending application, not that the server
|
||||
has opened, extended or closed its window. The committed expiry remains absolute;
|
||||
a delayed sync never grants a fresh four-hour duration. Close takes effect when
|
||||
applied; server-enforced expiry remains the automatic upper bound. The existing
|
||||
four-hour default and maximum remain unchanged. Workflow implementation and live
|
||||
status verification are follow-up work, not certified by this decision.
|
||||
|
||||
## Amendment 2026-10-08: Retain the void session hostname
|
||||
|
||||
Maintainer selected option B during the decision review (D-003), confirming that
|
||||
the old HTTP Ingress was removed and no HTTP site remains for this hostname.
|
||||
Keep `void.aeternalisgames.com` as the dev-session hostname, using the selected
|
||||
internal VIP and UDP 7400 route. A separate session hostname or shared web routing
|
||||
is unnecessary for this use. This records maintainer-provided infrastructure
|
||||
information; it is not a new live cluster inspection or an instruction to delete
|
||||
any resources.
|
||||
|
||||
## Amendment 2026-10-08: UTC and suspend-aware elapsed expiry
|
||||
|
||||
Maintainer selected option A during the decision review (D-002). A running window
|
||||
closes when either its absolute UTC expiry or its suspend-aware elapsed-time
|
||||
deadline is reached. At admission, derive the elapsed allowance from the remaining
|
||||
time until the original UTC expiry, bounded by the existing four-hour maximum.
|
||||
Capture the elapsed deadline once; ordinary clock checks never move it later.
|
||||
|
||||
A backward UTC correction cannot prolong the established elapsed allowance.
|
||||
A forward correction reaching UTC expiry closes the window immediately. Closure
|
||||
is latched for that admitted window, including if UTC subsequently moves backward.
|
||||
The elapsed clock must include host suspend; an arbitrary steady clock is not
|
||||
sufficient without verifying that property on the platform.
|
||||
|
||||
Restarts still use the committed original UTC expiry and only its remaining time,
|
||||
not a new four-hour duration. Synchronized host clocks remain required; the elapsed
|
||||
guard alone cannot establish clock accuracy across process or host restarts.
|
||||
An explicit operator extension follows D-001 and is not an automatic response to
|
||||
clock correction.
|
||||
|
||||
Implementation remains pending. Qualification must cover backward and forward UTC
|
||||
changes, suspend/resume, latched closure, delayed application, and restart with the
|
||||
original expiry. Existing expiry consequences (session closure, stopping synthetic
|
||||
inputs, and draining pending commits) apply to either deadline.
|
||||
|
||||
Policy evaluation (ADR-0088): the check renders every overlay with the pinned kustomize
|
||||
and validates the effective objects, so inline or JSON patches and namespace changes
|
||||
cannot enable listeners, sessions, inputs or session ports outside the route.
|
||||
|
||||
Reference in New Issue
Block a user