Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
0f54a4a
Read current Account JWKS over authenticated mTLS
benhook1013 Nov 7, 2026
e7df647
Carry verified Gateway custody proof repair
benhook1013 Nov 7, 2026
27007e1
Carry verified Gateway preview and TLS proof repair
benhook1013 Nov 7, 2026
e952621
Reconcile current JWKS receiving with the ordered LOGIN parent
benhook1013 Nov 7, 2026
69ab6b6
Carry current reviewed Account fixes through the JWKS successor
benhook1013 Nov 7, 2026
fc1e2a5
Merge commit '7804497ed95f527d9cbc1cb58102e78232c20336' into dot/stea…
codex Nov 8, 2026
9f2a414
Merge commit 'c82ecf71718057c412f47e2034621d18e72cccea' into dot/stea…
codex Nov 8, 2026
0f35e70
Merge commit '205f49f7cfd17f2c0e10d4904495c9e4765a17df' into dot/stea…
codex Nov 8, 2026
8d11089
Merge commit 'fffa307651cd0e3bddf9b8927cc2f2f60a53bbef' into dot/stea…
codex Nov 8, 2026
b1b2ebd
Merge commit 'a0c3ba5e567ddb4df79bb3c85d0ca6e7b99c0823' into dot/stea…
codex Nov 8, 2026
910aca3
Merge commit '9bcc6d133f23af7e8b911733849715c795f0aebf' into dot/stea…
codex Nov 8, 2026
717be41
Merge commit 'f97b23ec89da92bf8b1df9dc11e5c0dbd6172058' into dot/stea…
codex Nov 8, 2026
02b380b
Merge commit 'e80f8dd982b8dbbcdc19d7e2508e5bdb1f001c8f' into dot/stea…
codex Nov 8, 2026
9533e9e
Merge commit '373a721aa3818aba00b65e728fb6d2639e43f84b' into dot/stea…
codex Nov 8, 2026
3a03296
Merge commit '464ba4e782c32f8a3c491d9e4dfaf07ac5cfee9d' into dot/stea…
codex Nov 8, 2026
a6b3c0b
Retain protected LOGIN sources in JWKS composition boundary
codex Nov 8, 2026
0a23e8c
Merge commit '1d83a89980b7495a321b4032b2fff49a020d0cff' into dot/stea…
codex Nov 8, 2026
ec42cf3
Local topology proof only
codex Nov 8, 2026
9563524
Merge commit 'cc24ff694166785ab511336b3548d0cf57b641d3' into dot/stea…
codex Nov 8, 2026
c96231c
Merge commit '02216c394dbaa6982bfc8f850bb89ca0a8693fc8' into dot/stea…
codex Nov 8, 2026
0280c4a
Carry Hosted7 provisioning recovery through stack
codex Nov 8, 2026
8681516
Merge commit '63af6a5a6bbc6039f9f1f2c876b9c15902428ce0' into dot/stea…
codex Nov 8, 2026
d1f09da
Merge commit '87089ecd63d5270fe960baf98c0f261cc8c8367b' into dot/stea…
codex Nov 8, 2026
5674a7b
Merge commit 'da1415456aee8f10f4fe61113f7d9c103404c4d0' into dot/stea…
codex Nov 8, 2026
9cf52cc
Merge commit '970ea75a17695f5b774039a67b02a477463bb4a3' into dot/stea…
codex Nov 8, 2026
f645f21
Merge commit 'c9b1f0d6de737c083585a6218bf6350905b76e35' into dot/stea…
codex Nov 8, 2026
9f1e637
Carry verified #3390 additive split into #3409
codex Nov 8, 2026
bd4ff9f
Carry verified #3390 CLI19 fixes into #3409
codex Nov 8, 2026
696526a
Carry verified #3390 CLI21 fixes into #3409
codex Nov 8, 2026
9120c3a
Carry verified #3390 CLI21 fixture correction fixes into #3409
codex Nov 8, 2026
3911ea2
Carry verified #3390 CLI22 attestation and scoped test fixes into #3409
codex Nov 8, 2026
bab8cea
Carry #3414 CLI2 tracker corrections into #3409
codex Nov 8, 2026
b198e0d
Carry #3414 CLI3 cleanup and proof corrections into #3409
codex Nov 8, 2026
01d08eb
Carry #3414 CLI4 capability status correction into #3409
codex Nov 8, 2026
184403a
Carry World CI phase diagnostics into #3409
codex Nov 8, 2026
c9dcd36
Carry Account CI stall diagnostics into #3409
codex Nov 8, 2026
164b1e9
Carry diagnostic lint and provisioning tracker corrections into #3409
codex Nov 8, 2026
0cc6e53
Carry validated CI cancellation guards into #3409
codex Nov 8, 2026
af169d2
Carry validated authenticated receiving fixes into #3409
codex Nov 8, 2026
72c710f
Carry validated authenticated receiving fixes into #3409
codex Nov 8, 2026
c883f5c
Carry bounded Account CI reliability experiment into #3409
codex Nov 8, 2026
e1a40e0
Carry authenticated receiving CLI3 fixes into #3409
codex Nov 8, 2026
cebac7e
Carry authenticated receiving CLI4 fixes into #3409
codex Nov 8, 2026
d3b9600
fix: preserve retryable JWKS reads and deterministic receiving compos…
codex Nov 8, 2026
14fec8a
Carry validated CI and JWKS repairs through #3409
codex Nov 8, 2026
1611607
Carry Account expiry fixture repair through #3409
codex Nov 8, 2026
020c9a6
Carry verified dispatch clock and review corrections through stack
codex Nov 8, 2026
13eed31
Carry complete smoke proof fingerprints into #3409
benhook1013 Nov 8, 2026
313f018
Carry tenant-qualified browser discovery through #3409
benhook1013 Nov 8, 2026
6018fdc
Carry committed JOIN replay correction through #3409
benhook1013 Nov 8, 2026
18e689d
Carry stable artifact snapshot correction through #3409
benhook1013 Nov 9, 2026
b6beaad
Carry Hosted12 qualified selector and proof corrections through #3409
benhook1013 Nov 9, 2026
8f13e66
Carry CLI27 JOIN attempt diagnostic correction through #3409
benhook1013 Nov 9, 2026
536f253
Carry smoke intake and optional capture fixes through #3409
benhook1013 Nov 9, 2026
c41bb87
Carry truthful JOIN replay and tenant diagnostics through #3409
benhook1013 Nov 9, 2026
9619c4a
Carry tenant-qualified JOIN integration fixture correction through #3409
benhook1013 Nov 9, 2026
147692f
Carry attempt-qualified failure-log artifact retention through #3409
benhook1013 Nov 9, 2026
81da597
Carry immutable Gateway client construction through #3409
benhook1013 Nov 9, 2026
19989ce
Carry PostgreSQL clock fix through #3409
benhook1013 Nov 9, 2026
fb968a0
Carry bounded PLAY transition CI and receiving fixes through #3409
benhook1013 Nov 9, 2026
b32c5ba
Keep Account JWKS refresh I/O outside the cache monitor
codex Nov 10, 2026
3f07eff
Reconcile Account JWKS receiving with authenticated LOGIN parent
codex Nov 10, 2026
2b18864
Merge commit 'd2cf7bb016a24ed2302f371872f2734b7e49be22' into dot/3409…
codex Nov 10, 2026
3cfe7a6
Receive current #3405 parent while preserving Account JWKS boundary
benhook1013 Nov 10, 2026
759a692
Retry qualified JWKS publication lag without renewing cached trust
benhook1013 Nov 10, 2026
dc31d5a
Prove exact startup rejection and preserve safe binding diagnostics
benhook1013 Nov 10, 2026
f335a8f
Preserve qualified JWKS convergence across intact projection samples
benhook1013 Nov 10, 2026
a1817ef
Exercise JWKS recovery through the stable refresh path
benhook1013 Nov 10, 2026
c9ae515
Attribute historical and current JWKS cache proof precisely
benhook1013 Nov 10, 2026
231414e
Separate JWKS publication rejection from temporary handler failures
benhook1013 Nov 10, 2026
f5ef41f
Keep exact-owned-byte JWKS version drift unavailable without serving it
benhook1013 Nov 10, 2026
9bace99
Attribute JWKS source proof and retain unresolved lifecycle qualifica…
benhook1013 Nov 10, 2026
236bd22
Deny prepared Account JWKS until exact committed recovery
benhook1013 Nov 10, 2026
88512bd
Prove Account JWKS writer receipt gaps and refusal boundaries
benhook1013 Nov 10, 2026
8870a06
Qualify Account JWKS writer receipt windows without unreceipted keys
benhook1013 Nov 10, 2026
61f2ccb
Qualify coherent Account JWKS reads across owner movement
benhook1013 Nov 11, 2026
7f6945f
Preserve qualified JWKS temporary windows after owner movement
benhook1013 Nov 11, 2026
296223e
Correct JWKS custody status and share ACTIVE receipt digest
benhook1013 Nov 11, 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
12 changes: 12 additions & 0 deletions design/architecture/microservices/account-service/api-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ This document defines the Account Service REST and gRPC contracts, authenticatio

The authoritative REST schema source lives in [../../../../services/account-service/src/main/resources/openapi.yaml](../../../../services/account-service/src/main/resources/openapi.yaml). Proto definitions are the authoritative gRPC source.

## Private Current Public-JWKS Read

The default-off `AccountPublicJwksReadService.GetCurrentPublicJwks` is a private read for the exact same-namespace Game Session mTLS workload. Its closed request and response use `schema_version=2`; the request still accepts no key, issuer, path, URI, or rotation selector. Response fields 1–3 retain the existing exact nine-field Account source identity and bounded public-snapshot semantics. Closed field 4 is the disposition: `UNSPECIFIED` is invalid, and the only valid values are `SNAPSHOT` and `PREPARED_DENY`. A `SNAPSHOT` carries the exact Account public snapshot, at most 256 KiB, and requires optional bool field 5, `committed_recovery_eligible`, to be present. `PREPARED_DENY` carries the canonical exact nine-field identity with zero JWKS bytes and omits field 5. The complete frame remains bounded to 256 KiB plus 2 KiB; unknown fields and other schema versions are refused. The nine-field identity and source provenance are defined by the [JWT verification provenance contract](../../system-architecture-jwt-and-token-contracts.md#signing-key-rotation-contract-normative), not by a raw JWKS controller or a finite readiness-plan read.

Account returns `PREPARED_DENY` only for one coherent current durable `PREPARED` promotion linked to the exact operation and trusted owner identity, with the live ConfigMap UID, both complete Account-owned JWKS/marker values, public-data digest, and applicable prior receipt and mounted-proof evidence matching across stable owner reads. A live `ACTIVE` marker with a completed `ActiveJwksPromotionReceipt` must match its exact operation, UID, resulting `resourceVersion` and data-marker digest. During that same writer's proven CAS-before-receipt window, a missing ACTIVE receipt may instead support denial only: the exact prior prepublication receipt and mount, dispatched private promotion and full canonical `PrivatePromotionReceipt.fromStored` preimage/linkage/digest must validate, both live owned values must equal this operation's complete intended ACTIVE projection, and the valid opaque observed `resourceVersion` must differ from the exact prior version. A digest-shaped string alone is insufficient; versions are never numerically ordered. Partial, corrupt or mismatched receipt evidence remains terminal. This exception produces zero JWKS bytes and no recovery eligibility, creates no receipt, and grants no publication, promotion, pruning, readiness or admission authority. Serving keys after PREPARED denial and clearing that latch still require the exact completed current ACTIVE receipt, durable COMMITTED owner and protected coherent same-pin mounted bytes. `committed_recovery_eligible` may be true only when the returned projection itself meets that committed receipt-backed boundary. An older committed ACTIVE cannot qualify a newer PREPUBLISHED projection; ordinary receipt-backed PREPUBLISHED bootstrap returns a noneligible snapshot.

Before PREPARED, a missing prepublication receipt has a separate temporary classification only when the exact current generation and immutable intent plus trusted enrollment or the exact prior committed receipt prove the predecessor. The live UID and complete owned values must prove either that exact prior projection or this operation's exact additive PREPUBLISHED projection, with its closed marker bound to the pending generation, operation, request/receipt digests, trust/API identity and both expected active identities. The supported initial predecessor has canonical empty JWKS and no marker; its full snapshot commitment must match enrollment and intent, including reconstructed unchanged unowned data after CAS. Unknown or unprovable predecessor shapes remain terminal. Additive qualification retains the exact prior keys and adds only the current target. A qualified window returns ordinary unavailable with no snapshot, new keys, repin or cache-age renewal; already cached prior keys remain usable only to their original expiry. It does not install a PREPARED-until-COMMITTED latch before pending-key readiness. The exact publication receipt and mounted correspondence remain prerequisites for normal readiness progression.

The owner reads through `AccountJwtJwksTrustedSource`, retaining its protected binding, coherent owner projection, and exact live ConfigMap checks. The peer and protected Account binding are checked before and after the read. A public read begins with a locked enrollment row and retains one immutable protected materializer/API/source-UID/pin anchor. Proven owner movement permits at most three complete internal qualification trials under the same incoming deadline and cancellation, without sleeps or a reset. Before retrying, the intervening live bytes must qualify against a complete coherent bracket at that original anchor, including exact UID and complete owned bytes with resource-version-only drift; this justifies only another full bounded trial, never a response from moving brackets. Genuine UID, trust, owned-byte or marker tamper is terminal and is not retried. Only a fully stable trial may return evidence or install the initial pin. Repeated unresolved movement remains terminal and never becomes an ordinary outage or key-serving fallback. Once a call observes owner movement, later API/SQL unavailability, missing resources, cancellation or deadline exhaustion is terminal too; an ordinary first-trial outage retains its existing unavailable behavior. A later fully coherent trial that proves the existing prepublication temporary window or exact-UID and exact-owned-byte resource-version-only drift resolves movement into the existing unavailable classification, after checking the original cancellation/deadline budget. It returns no snapshot, installs no pin and renews no cache age; dependency failure is not that qualification. Established-pin reads do not hold the first-install monitor across remote work; first installation remains synchronized and cannot replace a pin. The ordinary issuance adapter retains its existing retry behavior. A valid `PREPARED_DENY` is a method-response disposition, distinct from transport failure. Missing or wrong workload authority returns `PERMISSION_DENIED`, malformed request frames return `INVALID_ARGUMENT`, temporary source unavailability or an unclassified handler fault returns `UNAVAILABLE`, and typed custody/publication rejection (including failure to encode Account's produced snapshot) returns `FAILED_PRECONDITION`. The private trusted-source rejection category remains terminal; a generic handler exception is not custody evidence. A coherent owner projection with the exact ConfigMap UID and Account-owned JWKS/marker bytes but a different `resourceVersion` remains unavailable: no unreceipted snapshot is returned and the immutable receipt is not rewritten. Recovery requires a later exact owner-receipted publication. This preserves ordinary resource-version-only, transport, and issuance behavior; unproved pruning and ambiguous, unqualified unreceipted, tampered, or unsupported lifecycle evidence remain terminal. Consumers do not infer retryability from generic transport status codes without exact authenticated peer and server-origin proof. No private keys or credentials are returned, and no signing, registry, readiness, promotion, or admission authority is granted. Composition and the exact bearer-exempt method classification are recorded in [configuration](./configuration.md#private-current-public-jwks-read); Game Session's cache and deny-latch consequences are defined in its [JWKS consumer contract](../game-session-service/api-contracts.md#steady-state-account-public-jwks-provenance), while focused proof and deployed prerequisites belong to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#account-and-game-session-steady-state-jwks-deny-gate).

Public pruning is not implemented by this receiving boundary: it supplies no authorized Account public-pruning producer, pruning receipt, or current-read pruning projection. Same-UID removal of an owned public key without matching owner evidence remains terminal; restored bytes cannot clear an already terminal consumer. The [writer-window inventory and proof](../../../project-management/implementation-tracking/player-access-and-session.md#actual-public-jwks-writer-windows-and-pruning-limit) record supported writer-window qualification and retained limitations. No receipt-less snapshot, pruning fallback, or runtime activation is defined here.

## Normative Target Contract

Account is the API boundary for platform identity, durable membership, entitlement authority, and Account-owned authentication mutations. This document retains endpoint and transport consequences; gameplay admission and JOIN identity binding are defined by [Authentication](../../system-architecture-authentication.md), while token refresh, replacement, generation, revocation, fencing, and logout are defined by [JWT and Token Contracts](../../system-architecture-jwt-and-token-contracts.md).
Expand Down
20 changes: 20 additions & 0 deletions design/architecture/microservices/account-service/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,23 @@ The source-only Control-UI issuance preparation reads the configured margin thro
## Proto Files

The gRPC schemas for this service live in [`protos/account/v1`](../../../../protos/account/v1). Use `./gradlew generateProto` to regenerate Java stubs when the definitions change.

## Canonical Gameplay LOGIN Receiving

Canonical credential envelopes and exact-original retirement share the existing AccountService registration through `AccountGameplayAuthenticateReceiver`. The receiver, complete initial-LOGIN source graph and protected source selection all require `firemud.account.gameplay-login.enabled=true`; they are absent by default. `AccountGameplayLoginSourceConfiguration` composes the existing issuance/evidence/encrypted-response repositories, protected signer and trusted JWKS reader, issuer/account projection publisher, token registry, commit, activation and exact response-recovery owners. Registration supplies no synthetic owner evidence and performs no enrollment, key generation, publication or Redis mutation.

The enabled composition requires these explicitly delivered inputs:

- `firemud.grpc.workload-namespace` and `firemud.account.public-jwks.api-binding-path=/etc/firemud/account-jwt-api/binding.json`. The existing protected API binding and enabled `firemud.account.jwt-signer.materialization` trust binding must be readable and agree on environment, cluster, namespace and cluster/namespace incarnations. Their namespace must equal the configured workload namespace. The API identity is pinned at composition and rechecked by the existing owners on use; this does not create the enrolled signer, committed promotion or Account-owned public publication evidence.
- `firemud.account.gameplay-login.coordination.uri`, delivered through protected application configuration, selects only the dedicated standalone Coordination endpoint. Its shape is `rediss://account_coord_app:<encoded-password>@<host>:<explicit-port>/0`; missing credentials, another principal/database, plaintext, URI query options and fragments are rejected. TLS peer verification remains enabled against the platform-provisioned JVM trust anchors. Do not put this credential-bearing value in diagnostics or substitute generic `firemud.redis.*` configuration. The dedicated Lettuce provider disables automatic reconnect and closes with the application; the existing Redis owner independently checks the live ACL identity.
- `firemud.account.gameplay-login.coordination.command-timeout-millis`, `required-local-aof-count`, `required-replica-aof-count` and `acknowledgement-timeout-millis` under that same `coordination` prefix. Both timeouts must be between 1 and 60,000 milliseconds; the local AOF count must be one, and the replica count must be between one and sixteen. Game Session's separate qualified single-node exception does not apply to Account. No timeout or ACK policy is inherited from the ambient Redis client.
- `firemud.account.gameplay-login.registry-cleanup-margin-millis`, explicitly between zero and 300,000 milliseconds. The registered record byte ceiling remains the fixed approved delegation profile limit; this margin does not authorize cleanup of held disposal markers or retained SQL evidence.
- The absolute normalized `firemud.account.gameplay-login.request-digest-keyring-path` and `firemud.account.response-envelope.keyring-path` mounts. Existing mounted-key readers retain their active/retained-key, freshness and withdrawal checks; configuration does not create keys or replace absent mounted material.

Missing or mismatched protected trust, absent selectors and invalid explicit policy prevent enabled composition. Missing current key, enrollment, publication, authority or Redis evidence still denies the existing owner operation. Source-bearing requests never fall back to legacy Authenticate. This configuration does not provision credentials, qualify external Redis reset/restore/promotion continuity, register Game Session's separate initial-context authority or enable gameplay admission. Source and proof status belong to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake).

## Private Current Public-JWKS Read

`firemud.account.public-jwks-read.enabled=true` separately composes the private [current-publication read](./api-contracts.md#private-current-public-jwks-read); it is disabled by default. `AccountPublicJwksSourceConfiguration` selects this read or canonical gameplay LOGIN and explicitly imports the pure `AccountProtectedJwksSourceConfiguration` owner. The latter supplies one protected API/client/trusted-source graph without a component-scanned stereotype or consumer-selection condition; another independently selected Account consumer imports that same owner without selecting LOGIN or the private public-read receiver. The read alone requires the workload namespace, fixed `firemud.account.public-jwks.api-binding-path=/etc/firemud/account-jwt-api/binding.json`, enabled existing materializer trust binding, Account signer/publication repositories and transaction manager. It does not require LOGIN Coordination Redis or request/response keyrings. Enabling both consumers does not create duplicate trust sources.

The existing ordinary gRPC listener registers the receiver under that opt-in. The exact `account.v1.AccountPublicJwksReadService/GetCurrentPublicJwks` entry in both application profiles exempts only bearer authentication; the global TLS peer identity interceptor and method-local same-namespace Game Session workload guard remain mandatory. A current protected publication must already exist. Configuration performs no enrollment, publication, credential provisioning, runtime activation or traffic opening. Proof status and remaining custody requirements belong to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake).
Loading
Loading