@crvouga/mockingbird-service-cognito 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +20 -2
- package/SUPPORT.md +2 -2
- package/dist/{chunk-UAWSJCL6.js → chunk-SRSW2L53.js} +344 -95
- package/dist/chunk-SRSW2L53.js.map +7 -0
- package/dist/{chunk-K7FBL7SU.js → chunk-ZDLXXTUW.js} +371 -52
- package/dist/chunk-ZDLXXTUW.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +46 -5
- package/dist/index.js +1 -1
- package/dist/server.d.ts +86 -4
- package/dist/server.js +2 -2
- package/openapi.yaml +2 -2
- package/package.json +3 -2
- package/dist/chunk-K7FBL7SU.js.map +0 -7
- package/dist/chunk-UAWSJCL6.js.map +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-cognito
|
|
2
2
|
|
|
3
|
-
## 3.
|
|
3
|
+
## 3.7.0 (2026-10-19)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- resolve the agent-reported issue queue in one batch ([25c52b6](https://github.com/crvouga/mockingbird/commit/25c52b668a53ddb80b968419601a20abf33f956b))
|
|
8
|
+
|
|
9
|
+
## 3.6.0 (2026-10-16)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- resolve fleet and emulator issue batch ([26d2f8c](https://github.com/crvouga/mockingbird/commit/26d2f8cee99fefed93192204bac44fb1be35c1da))
|
|
14
|
+
|
|
15
|
+
## 3.5.0 (2026-10-15)
|
|
4
16
|
|
|
5
17
|
### Features
|
|
6
18
|
|
package/README.md
CHANGED
|
@@ -68,11 +68,29 @@ Responses contain SDK-consumed Cognito fields and AWS-shaped exceptions (`__type
|
|
|
68
68
|
- `GET/POST /__admin/users` lists redacted users or seeds one. Passwords and tokens are never returned.
|
|
69
69
|
- `GET /__admin/codes?username=…` returns local confirmation/reset codes without sending mail.
|
|
70
70
|
- `POST /__admin/sessions/revoke {"username":"…"}` invalidates access and refresh sessions.
|
|
71
|
-
- `POST /__admin/keys/rotate {"retainPrevious":true}` rotates signing keys
|
|
71
|
+
- `POST /__admin/keys/rotate {"retainPrevious":true}` rotates signing keys and retains at most two prior keys. Every new key receives a fresh random UUID `kid`, independently of the virtual clock. Reset starts a fresh key ring.
|
|
72
72
|
- Fault presets: `throttled`, `unavailable`.
|
|
73
73
|
|
|
74
74
|
The shared runtime supplies reset, clock, snapshots, journals, metrics, faults, branches, and namespace isolation. Select namespaces through `x-mockingbird-namespace`, `/__admin/ns/<name>`, or SigV4 access-key mappings.
|
|
75
75
|
|
|
76
|
+
### Fleet fixtures and public identity endpoints
|
|
77
|
+
|
|
78
|
+
Use `fixtures: { users: [...] }` in a fleet service entry, or `options: { fixtures: "./synthetic-users.json" }` for an explicit JSON file containing the same object. The standalone CLI accepts `--fixtures ./synthetic-users.json`. Each user requires `username` and `password`; optional `sub`, `confirmed`, `enabled`, `status`, `createdAt`, attributes, groups, linked identities and inspection codes match the in-process seed fields. Invalid fields, duplicate usernames/subjects/email aliases and conflicting identities fail with field paths before readiness. Diagnostics omit values. Fixture identity objects accept Cognito identity claim fields and the supported provider-link fields, rather than arbitrary nested objects.
|
|
79
|
+
|
|
80
|
+
Fixtures form the reset baseline for every independent namespace. Importing a snapshot replaces saved state, including deleted fixture users, without reseeding. Synthetic passwords stay in private state/archives; user admin responses redact passwords, session data and inspection codes. Codes remain available only from `/__admin/codes`.
|
|
81
|
+
|
|
82
|
+
| Surface | Public origin and path prefix | Namespace isolation |
|
|
83
|
+
| --- | --- | --- |
|
|
84
|
+
| Unsigned `InitiateAuth` / user-pool JSON operations | Supported | Header and path carriers |
|
|
85
|
+
| RS256 issuer, discovery and JWKS | Supported; `publicOrigin` + `publicPath` configure the authoritative base | Advertised URLs carry the selected namespace, including header-selected requests |
|
|
86
|
+
| SigV4-signed AWS admin operations | Direct private listener only; signature validation through proxies is not certified | Fixture signatures remain the local test contract |
|
|
87
|
+
| Mockingbird admin controls / private signing material | Private listener only | Never routed by the reference public ingress |
|
|
88
|
+
| Hosted authorization/token UI | Not implemented | Discovery metadata does not imply hosted OAuth flow support |
|
|
89
|
+
|
|
90
|
+
In-process callers can set `baseUrl`, and the CLI accepts `--base-url`. Fixed configuration determines advertised identity URLs; Host and forwarding headers never override it. Without explicit configuration, the direct request/mount URL supplies the origin. Replacing a fleet behind a stable public endpoint retains the issuer even when private listener ports change.
|
|
91
|
+
|
|
92
|
+
Current and retained synthetic signing keys live in namespace storage, so namespace snapshots, whole-fleet archives and restored time-travel checkpoints preserve key IDs and pre-snapshot signatures. Subsequent rotation reads the restored ring. Archives created before signing-state persistence contain no recoverable private key; they load with a fresh ring and require reauthentication. Protect portable archives as private synthetic credentials; diagnostic and user-control responses never include key material.
|
|
93
|
+
|
|
76
94
|
### Deliberately not modelled
|
|
77
95
|
|
|
78
96
|
Operations outside the documented subset, production quotas, email/SMS delivery, MFA, Lambda triggers, device tracking, Cognito Identity Pools, AWS billing, dashboards, and outbound vendor calls are not implemented. Hosted UI federation is represented in linked identity claims; this WIP tier does not render Cognito's hosted login pages.
|
|
@@ -82,7 +100,7 @@ Operations outside the documented subset, production quotas, email/SMS delivery,
|
|
|
82
100
|
- `CognitoAPI`, `CognitoAPIOptions`: AWS JSON handler and options.
|
|
83
101
|
- `createRuntime`, `CognitoRuntime`, `CognitoRuntimeOptions`: full Mockingbird service runtime.
|
|
84
102
|
- `COGNITO_NAMESPACE`, `COGNITO_PRESETS`, `accessKeyCredential`: service constants and controls.
|
|
85
|
-
- `CognitoAttribute`, `CognitoSeedUser`, `CognitoUser`: state and fixture types.
|
|
103
|
+
- `CognitoAttribute`, `CognitoSeedUser`, `CognitoUser`, `CognitoFixtures`: state and fixture types.
|
|
86
104
|
- `document`, `operationIds`, `supportedOperationIds`: generated OpenAPI metadata.
|
|
87
105
|
- `createServer`, `CognitoServerOptions`, `DEFAULT_PORT`, `serveTarget` from `./server`: Node HTTP adapter and CLI integration.
|
|
88
106
|
|
package/SUPPORT.md
CHANGED
|
@@ -9,5 +9,5 @@ Generated from `openapi.yaml`; do not edit by hand.
|
|
|
9
9
|
| operationId | route | emulator | parity | notes |
|
|
10
10
|
| --- | --- | --- | --- | --- |
|
|
11
11
|
| `CognitoRpc` | `POST /` | ✅ supported | ⚠️ unsafe (opt-in) | |
|
|
12
|
-
| `Discovery` | `GET /{poolId}/.well-known/openid-configuration` | ✅ supported | ❌ disabled |
|
|
13
|
-
| `Jwks` | `GET /{poolId}/.well-known/jwks.json` | ✅ supported | ❌ disabled |
|
|
12
|
+
| `Discovery` | `GET /{poolId}/.well-known/openid-configuration` | ✅ supported | ❌ disabled | Namespace-scoped local issuer metadata with configured public origin/prefix. |
|
|
13
|
+
| `Jwks` | `GET /{poolId}/.well-known/jwks.json` | ✅ supported | ❌ disabled | Namespace-scoped RS256 keys; portable snapshots retain the current key and two prior keys. |
|