Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
84a5911
feat: prepare initial login issuance disposal and attempt closure
benhook1013 Oct 14, 2026
2be06e2
Merge commit 'd94e1d6de69bbf867aee02ff6f8764a23a66bd3e' into codex/ga…
benhook1013 Oct 14, 2026
93dd21c
Record complete current-parent LOGIN source validation
benhook1013 Oct 14, 2026
f63a831
Merge commit 'e0a49fcc3767ea14956ff07a815345c4173ff18f' into codex/ga…
benhook1013 Oct 14, 2026
fbab39b
Record affected LOGIN parent-carry proof
benhook1013 Oct 14, 2026
e268071
Classify initial LOGIN retirement as unavailable in Account runtime stub
benhook1013 Oct 14, 2026
9217c21
Merge commit '52c5222a25ee64ee46a9188de38f76da83b23b74' into codex/ga…
benhook1013 Oct 14, 2026
5490883
Merge commit 'd664c78f28108b44239598af10742bc385c181ad' into codex/ga…
benhook1013 Oct 14, 2026
85f8f35
Merge commit '1883f8e0b7ceaf6f9a4db5072da9425268af66dd' into codex/ga…
benhook1013 Oct 14, 2026
c1a5c77
Use canonical plural NumericDate proto field names
benhook1013 Oct 14, 2026
7b2ce63
Merge commit '6ce390a4e9c76f9f2130631d1a731736f43c1971' into codex/ga…
benhook1013 Oct 14, 2026
0eaa849
Merge commit '98a8418d0c6f0435bd1885c2560544a1b14766f7' into codex/ga…
benhook1013 Oct 14, 2026
93fabf0
Merge commit '5bf4e34cb0cca4753314e0fc54cbd3b442d92040' into codex/ga…
benhook1013 Oct 14, 2026
27839f4
Merge commit '1a20f0ea320a6940f0cce9f3cb7d8a542df86a69' into codex/ga…
benhook1013 Oct 14, 2026
4649aec
Merge commit 'e54c18a51db691311038c687bc3cd0da66d1ae9a' into codex/ga…
benhook1013 Oct 14, 2026
ade0553
Merge commit '67cca1cc75b016bb1a5d29eb70dc1d80989212ad' into codex/ga…
benhook1013 Oct 14, 2026
7b92f8f
Merge commit 'b1f11cc15d270e6b373825b399b9fbbec72273a9' into codex/ga…
benhook1013 Oct 14, 2026
446f8ed
Merge commit '746bc5d76dfb5a1f2f400203388e98f52a2f0aac' into codex/ga…
benhook1013 Oct 14, 2026
1cfbd42
Merge commit '9233bc100558c1ab69ce84d11b014eca477e6ac9' into codex/ga…
benhook1013 Oct 14, 2026
fb9936f
Merge remote-tracking branch 'origin/codex/document-world-fixture-mat…
benhook1013 Oct 14, 2026
144882f
Merge commit '30a888c9589bed30b0a31da555ce14e7b1712570' into codex/ga…
benhook1013 Oct 14, 2026
b5eee2a
Carry qualified fixture fixes and CI maintenance into LOGIN preparation
benhook1013 Oct 14, 2026
8cd8425
Prepare canonical Account runtime membership owner snapshot
benhook1013 Oct 15, 2026
6b487af
Receive current World and paired owner correction into Account prepar…
benhook1013 Oct 15, 2026
5f9d8a8
Merge qualified World owner guards and shared CI repairs into login c…
benhook1013 Oct 15, 2026
1943ff1
Receive qualified World source and front fixes into LOGIN source stage
benhook1013 Oct 15, 2026
af4e48f
Merge commit 'e5c1bcaccbbf0646de2b54135c83b593ccb433fa' into codex/ga…
benhook1013 Oct 15, 2026
a896894
Receive qualified World review fixes for initial login source
benhook1013 Oct 15, 2026
3eea515
Merge commit '0126e6139a344b8ac4c81b4b9ae73f0f9ac0c52d' into codex/ga…
benhook1013 Oct 15, 2026
36c62ca
Merge commit '8f10af1c9d95fb6ea407872a3312523a8c757d7e' into codex/ga…
benhook1013 Oct 15, 2026
6964c6d
Document per-call confinement of gameplay credential verification work
benhook1013 Oct 15, 2026
b1aa8bc
Merge verified World review corrections into initial LOGIN receiving …
benhook1013 Oct 15, 2026
128db4d
Merge current World digest guard fixes and develop security floors in…
benhook1013 Oct 15, 2026
7b4e106
Carry verified current World frontier and review assertions into init…
benhook1013 Oct 15, 2026
b25a65f
Carry final World review controls and current develop Jackson version…
benhook1013 Oct 15, 2026
d5bb957
Carry latest World test cleanup and qualified receiving proof
benhook1013 Oct 15, 2026
124c41c
Unify initial LOGIN validation and retry and strengthen disposal proof
benhook1013 Oct 15, 2026
0a16272
Record bounded initial LOGIN review-fix proof
benhook1013 Oct 15, 2026
7ab1c5d
Merge world launch evidence fixture rename into Gameplay 3216
benhook1013 Oct 15, 2026
7bbdbf0
Record bounded initial LOGIN cleanup failure reasons
benhook1013 Oct 15, 2026
97842b6
Merge qualified World receipt correction into initial login source
benhook1013 Oct 15, 2026
7a5308e
Merge commit 'db14513237c09a8b5856f8362a33479c8d90bb59' into codex/ga…
benhook1013 Oct 15, 2026
792d5f0
Unify LOGIN disposal encoding and correct tenant cutoff coordinates
benhook1013 Oct 15, 2026
7158a54
Merge commit '7c4aa00465f05d97c07794a567dd4f0de0d118c1' into codex/ga…
benhook1013 Oct 15, 2026
78ce5d4
Fail contradictory initial login disposal results internally
benhook1013 Oct 15, 2026
888316e
Preserve exact revocation intent replay after LOGIN disposal
benhook1013 Oct 15, 2026
ab057af
Clarify LOGIN transaction guard and separate historical proof
benhook1013 Oct 15, 2026
2ac40c1
Tighten disposal proof and share billing event identity derivation
benhook1013 Oct 15, 2026
705822e
Merge commit '84c9087c30caf79e8127f180e068eae1a2766563' into codex/ga…
benhook1013 Oct 15, 2026
aee185f
Merge commit '3fa9f904f2b470e76ae85ebc093b14e468eae2a2' into codex/ga…
benhook1013 Oct 15, 2026
86944cd
Merge commit '49eec3a0d15147164ab315e8f01669dd563246c7' into codex/ga…
benhook1013 Oct 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The target gameplay-domain delegation boundary uses concrete mTLS identity, exac
- Dot-segment vectors are rejected before any normalization: raw `/./` and `/../`, percent-encoded unreserved spellings `/%2E/`, `/%2e/`, `/%2E%2E/`, and `/%2e%2e/`, plus mixed raw/escaped spellings such as `/.%2E/`, `/%2E./`, `/.%2e/`, and `/%2e./`. All raw, hex-case, and mixed combinations that decode to a segment exactly equal to `.` or `..` are rejected, including at the beginning or end of the path; they are never resolved or collapsed.
- Required workload-positive vectors use only the exact `spiffe://firemud/ns/<namespace>/sa/<workload>` authority/path shape and also cover accepted non-dot unreserved path escapes decoding to literals within those segments. Parser-positive vectors separately cover bracketed RFC 5952 IPv6, boundary ports `1` and `65535`, and an empty raw path normalizing to `/`; each is explicitly parser-only and invalid as a workload identity. Workload-negative vectors include an empty path, missing or empty `namespace`/`workload`, wrong path prefix, extra path segments, a trailing slash, any non-`firemud` authority, any port including `0`, `65536`, or leading zeroes, bracketed or unbracketed IPv6, userinfo, zone identifiers, percent encoding in authority, every reserved-delimiter escape, escaped `%`, non-ASCII escapes, malformed escapes, query, fragment, opaque input, dot segments, and multiple URI SAN entries. Parser errors and unsupported forms are rejection outcomes, never best-effort normalization.
- The stable workload principal is the normalized URI SAN. A certificate instance is a specific approved leaf certificate identified by its leaf fingerprint or issuer-qualified serial (issuer identity plus serial); a bare serial is never sufficient. The principal is usable only when the presented certificate instance is approved for that principal, receiver, and method; exact normalized URI-SAN allowlisting remains mandatory and is never replaced by certificate-instance approval alone.
- The receiver terminates mTLS only at the declared internal listener and, on the URI-SAN path, validates the complete chain, `clientAuth` EKU, validity interval, and exact URI SAN against the route's allowlist before dispatch. A trusted internal termination component may forward identity-derived metadata only through the existing authenticated context contract: the TCP Proxy -> Gateway hop uses the certificate-authenticated `X-Proxy-*` contract, while Gateway -> Game Session uses the separately signed connect context. An unauthenticated or externally supplied header can never become mTLS identity, and Internet-facing TLS termination does not satisfy an internal workload-authentication predicate.
- The receiver terminates mTLS only at the declared internal listener and, on the URI-SAN path, validates the complete chain, `clientAuth` EKU, validity interval, and exact URI SAN against the route's allowlist before dispatch. A trusted internal termination component may forward identity-derived metadata only through the existing authenticated context contract: the TCP Proxy -> Gateway hop uses the certificate-authenticated `X-Proxy-*` contract, while first-party Gateway -> Game Session uses the separately signed connect context. The already-accepted trusted TCP exception in [ADR 0029](./adr-0029-single-use-gameplay-connect-token-carriage.md) and [ADR 0169](./adr-0169-exclusive-environment-bound-tcp-proxy-trust.md) instead requires the exact certificate-authenticated internal intake and positive source mode; it does not turn raw forwarded headers or proxy correlation into caller-context identity. An unauthenticated or externally supplied header can never become mTLS identity, and Internet-facing TLS termination does not satisfy an internal workload-authentication predicate.
- URI-SAN identity matching is exact and method-scoped: exactly one URI SAN must be present, and duplicate URI SAN entries or multiple distinct URI SANs are ambiguous even when one would match. The concrete normalized URI SAN must be allowlisted for that receiver and RPC/route, and one identity allowed for one method is not inherited by another. The receiver fails closed on missing, duplicated, malformed, expired, wrong-EKU, unknown, or ambiguous URI certificate identity before JWT/profile or business authorization. The separately selected bridge path applies only its exact normalized DNS identity and receiver/method allowlist; it never relaxes the player-facing URI-SAN-only rule.
- cert-manager renewal replaces the leaf certificate before expiry and permits bounded overlap only while that renewal is in progress. Receivers reload the trust and leaf material through the documented watcher/reloader path, accept both the old and new approved certificate instances for the same normalized principal only during the configured overlap, and then remove the old instance from the approved set. Rotation never broadens a method allowlist or changes the identity spelling.
- A suspected compromise or revoked certificate immediately removes only the affected certificate instance, identified by its leaf fingerprint or issuer-qualified serial, from the approved set and denies calls using it; an approved replacement certificate instance with the same normalized URI SAN may remain usable subject to the exact allowlist and other certificate checks. A failed chain validation or lost trust root denies the presented certificate as applicable and audits the affected calls. The service or bridge must receive a newly issued certificate and pass peer/readiness proof before traffic resumes. CA/issuer rotation is a separate incident workflow; it does not silently fall back to a broad trust bundle, DNS-only matching, or plaintext in a player-facing environment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ Only an explicitly labelled one-shot test/CI stack may collapse roles into a sin

---

### Initial LOGIN context Coordination policy

Before the [initial-context adapter](../system-architecture-redis-usage-and-profiles.md#initial-login-context-acknowledgement-policy) can be registered, protected environment delivery must supply the dedicated Game Session Coordination endpoint and principal custody, exact binding identity, explicitly selected single-node/no-failover or replicated profile, replica AOF minimum and positive bounded acknowledgement timeout. The local AOF minimum is one. These are required owner policy inputs, not currently registered environment variables or automatic fallbacks; generic `firemud.redis.*` wiring and Account configuration cannot supply them implicitly. Delivery must also bind the existing external recovery/maintenance qualification to the same exact protected endpoint/profile identity. Missing or withdrawn inputs deny mutation and retirement continuation. Current controlled loopback fixtures establish neither deployed TLS/ACL custody nor this delivery.

## TLS & Certificates

Internal service-to-service **gRPC** traffic uses mutual TLS in shared and player-facing Kubernetes environments. Gateway-to-backend HTTP/WebSocket hops remain explicit in-cluster exceptions with their existing Gateway trust, header-canonicalization, and NetworkPolicy controls; see [Security Architecture](../system-architecture-security.md#cross-service-trust). The canonical target provisions certificates through **cert-manager** and mounts distinct per-workload leaf certificate/private-key Secrets so every service has a concrete private identity. Hosted Helm for `pr-preview` and `dev-demo-cluster` defines eight distinct gRPC workload leaves: five publication workloads plus Account, Game Session, and Social Groups. The shared `firemud-grpc-tls` Secret supplies the common CA trust bundle and remains the leaf source for three other hosted gRPC workloads. Static render and hosted-controller contract checks cover the eight distinct bindings and readiness evidence; live issuance and served-identity convergence remain unproved. Explicit local-development and throwaway-test profiles may use plaintext internal transport, including the documented `ws://` Proxy-to-Gateway bridge, and do not provide player-facing or promotion evidence. The bounded Spring gRPC `1.0.x` plaintext `pr-preview` migration exception documented in [gRPC TLS requirements](../system-architecture-grpc.md#tls-requirements) is reserved policy, not the current hosted configuration. Hosted `pr-preview` remains non-player-facing and does not provide production-promotion evidence; the canonical non-local target remains distinct per-workload mTLS. These certificates secure:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ For `security_locked` accounts, Account's successful recovery authorization issu

## gRPC APIs

The unregistered canonical `Authenticate` receiver requires the exact same-namespace Game Session certificate-derived workload before decoding credentials, the existing positive trusted TCP Proxy source class and canonical original request/context UUIDv4 values. It delegates password/email-OTP verification and immutable issuance to Account owners and returns the explicit initial `game-session-account-delegation` result with exact original binding and bounded evidence. First-party bare LOGIN remains governed by its separate accepted bootstrap contract; this adapter neither verifies public ingress provenance nor creates a new transport class. Changed binding and unavailable authority fail closed. The legacy runtime receiver remains distinct, and neither this source nor its client is registered; status and proof limits belong to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake).

`RetireInitialGameplayLogin` is the lifecycle-only original LOGIN disposal RPC defined by the [token disposal contract](../../system-architecture-jwt-and-token-contracts.md#initial-gameplay-login-disposal). The unregistered canonical receiver checks certificate-derived exact Game Session workload identity before reading request fields, then accepts only canonical UUIDv4 request/context values and an optional complete original token witness; unknown wire fields fail closed. Changed original caller/context/witness conflicts before mutation. It returns only original request/context UUIDs, Account disposal-operation UUID and the closed disposition/proof-kind pair, never credentials or admission authority. `NO_TOKEN` has the owner's qualified nonissuance meaning, not a claim that signing never occurred; current production cannot return it because retained binding-history/restore qualification is unavailable. Missing source composition is `AUTH_UNAVAILABLE`. This method requires no active orphan JWT or current signing key and creates no secret-free credential recovery surface. The source remains unregistered; the legacy runtime Account receiver does not activate it.

`IssueConnectToken` is not a gRPC method. It is the local Account application operation behind the REST `POST /auth/connect-token` route documented below; no `IssueConnectToken` RPC or protobuf transport is implied.

- `Ping(PingRequest) returns (PingResponse)` – connectivity check defined in `account_service.proto`.
Expand Down Expand Up @@ -121,7 +125,7 @@ For `security_locked` accounts, Account's successful recovery authorization issu
- `JoinPublicProductionMembership` – implemented local internal Account API for explicit public-production `JOIN`; the canonical membership lifecycle and freshness contract are owned by [Authentication](../../system-architecture-authentication.md) and its local persistence/transaction consequences by [Account Runtime and Data](./runtime-and-data.md#membership-and-entitlement-authority). It accepts the server-issued scope and request identity, and does not expose the removed implicit membership writer. Durable recovery/reconciliation for an operation left `PENDING` after an unknown database commit outcome, exact-final-head PostgreSQL runtime proof, direct text-client end-to-end proof, and membership-generation snapshot proof remain open.
- `GetCallerTenantMembership` – caller-bound membership read for billing-safe mutation checks; freshness and sequence semantics follow [Account Runtime and Data](./runtime-and-data.md#membership-and-entitlement-authority).
- `GetTenantMembershipForAccount` – cross-tenant membership lookup for billing/reporting workflows (`billingAdmin`/`platformAdmin` only).
- `GetTenantMembershipForRuntime(accountId, tenantId, requestId)` – internal membership read for gameplay admission, reconnect/resume, and membership-gap reconciliation. **Current implementation:** the proto and Account producer emit lifecycle state and `membershipAuthorityGeneration` alongside the independent `membershipVersion`, but Game Session does not enforce those fields. **Target gap:** one fresh atomic Account membership snapshot must include the remaining authority evidence, and consumers must fail closed on exact lifecycle/generation checks.
- `GetTenantMembershipForRuntime(accountId, tenantId, requestId)` – internal membership read for gameplay admission, reconnect/resume, and membership-gap reconciliation. **Current implementation:** the proto and Account producer emit lifecycle state and `membershipAuthorityGeneration` alongside the independent `membershipVersion`, but Game Session does not enforce those fields. **Local unregistered preparation:** `AccountCanonicalRuntimeMembershipSnapshotRepository` and its explicit transaction service assemble the existing shared content carrier from canonical Account and fresh-tenant provenance, current owner generations/fence, role and membership-pair records, and exact committed source events/checkpoints in one owner transaction. Current tenant cutoff fields bind exactly to the verified current tenant source; unequal historical tenant generations fail closed without an Account-owned reconciliation result. This kernel neither authenticates a caller nor grants gameplay or entitlement authority, and the runtime RPC is not wired to it. **Target gap:** the authenticated runtime producer and consumers must carry and enforce the complete fresh snapshot at their admission boundaries.
- `ResolveRuntimeAccountIdentity(canonicalAccountId, requestId)` – mTLS-only internal owner read for the exact Game Session and Entity Management workload identities in Account's configured workload namespace. It returns Account's persisted canonical UUID, numeric Account row solely as provenance evidence, and UUID provenance. Account fails closed on missing, ambiguous, malformed, or inconsistent row evidence; this read does not establish membership, grants, actor ownership, or gameplay admission.
- `ResolvePreseededActorStagingEligibility` – default-disabled, same-namespace Entity Management mTLS-only owner read limited to public-production actor staging; it returns staging evidence and creates no actor or gameplay admission. See [Preseeded actor-staging eligibility owner read](#preseeded-actor-staging-eligibility-owner-read).
- `GetTenantEntitlementsForRuntime(tenantId, requestId)` – unredacted internal runtime/admission entitlement API for the exact Game Session and World Management workload identities. For target player-admission calls, Game Session supplies a trusted typed request context carrying `callerAccountId`, `verifiedConnectScopeId`, and the exact resolved target bundle. The private `game-session-account-delegation` JWT authenticates the Account call and carries its declared Account authority, but not `verifiedConnectScopeId` or the complete runtime target bundle; Account requires the typed caller to equal the JWT's `accountId`/`sub` and the exact bound Game Session subject, verifies the scope and target fields against the signed connect scope and current exact target, and returns the already-declared caller/target-bound evidence. World Management supplies separate tenant/operation-bound instance-lifecycle context, while the current tenant-only proto/request remains implementation drift until this conditional target shape is carried and proved. Logging & Admin and `control-ui` callers use the redacted route variants.
Expand Down
Loading
Loading