@crvouga/mockingbird-service-infisical 1.0.0 → 1.1.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog — @crvouga/mockingbird-service-infisical
2
2
 
3
+ ## 1.1.0 (2026-10-09)
4
+
5
+ ### Features
6
+
7
+ - redesign emulator experience ([d6038c2](https://github.com/crvouga/mockingbird/commit/d6038c27eebbaa1751f02bc9305002a5b1304779))
8
+
3
9
  ## 1.0.0 (2026-10-07)
4
10
 
5
11
  ### ⚠️ Breaking changes
package/DISCOVERY.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @crvouga/mockingbird-service-infisical discovery
2
2
 
3
3
  This is the installed-package index for coding agents and tooling. All relative links resolve
4
- inside `node_modules/@crvouga/mockingbird-service-infisical/`; no repository checkout is needed to discover the mock's
4
+ inside `node_modules/@crvouga/mockingbird-service-infisical/`; no repository checkout is needed to discover the emulator's
5
5
  supported surface or documented behavior.
6
6
 
7
7
  ## Capability and behavior sources
@@ -48,7 +48,7 @@ designed for assertions and diagnosis by consuming test suites.
48
48
  ## Report a mismatch or missing capability
49
49
 
50
50
  Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
51
- operation/command, a minimal redacted request, actual mock result, expected oracle result or vendor
51
+ operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
52
52
  documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
53
53
  customer data, prompts, PHI, card data, or unredacted recordings.
54
54
 
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @crvouga/mockingbird-service-infisical
2
2
 
3
- > Familiar calls. Faithful echoes. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
3
+ > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
4
4
 
5
- A **wip** portable Infisical mock for Universal Auth and the raw-secret surface used by
5
+ A **wip** portable Infisical emulator for Universal Auth and the raw-secret surface used by
6
6
  `@infisical/sdk` **3.0.91**. Organizations, project environments, folders, permissions, tokens,
7
7
  secrets and historical versions share the standard SQLite state, clock, namespaces and Timeline.
8
8
  Use synthetic fixtures only.
@@ -18,9 +18,9 @@ bun add @crvouga/mockingbird-service-infisical
18
18
  ```ts
19
19
  import { createRuntime } from "@crvouga/mockingbird-service-infisical"
20
20
 
21
- const mock = createRuntime()
22
- const response = await mock.fetch(new Request(
23
- "http://mock.local/api/v3/secrets/raw?workspaceId=fixture-project&environment=dev&secretPath=/app",
21
+ const emulator = createRuntime()
22
+ const response = await emulator.fetch(new Request(
23
+ "http://emulator.local/api/v3/secrets/raw?workspaceId=fixture-project&environment=dev&secretPath=/app",
24
24
  { headers: { authorization: "Bearer fixture-service-token" } },
25
25
  ))
26
26
  const result = await response.json() as { secrets: { secretKey: string; version: number }[] }
@@ -28,14 +28,14 @@ console.log(result.secrets.map((secret) => ({ key: secret.secretKey, version: se
28
28
  ```
29
29
 
30
30
  For the SDK walkthrough, also install `@infisical/sdk@3.0.91`. The SDK is an optional consumer
31
- dependency; the mock's runtime does not depend on it.
31
+ dependency; the emulator's runtime does not depend on it.
32
32
 
33
33
  ```js
34
34
  import { createServer } from "@crvouga/mockingbird-service-infisical/server"
35
35
  import { InfisicalSDK } from "@infisical/sdk"
36
36
 
37
- const mock = await createServer({ adminKey: "fixture-infisical-admin" })
38
- const sdk = new InfisicalSDK({ siteUrl: `${mock.url}/__admin/ns/test-suite` })
37
+ const emulator = await createServer({ adminKey: "fixture-infisical-admin" })
38
+ const sdk = new InfisicalSDK({ siteUrl: `${emulator.url}/__admin/ns/test-suite` })
39
39
  await sdk.auth().universalAuth.login({
40
40
  clientId: "fixture-machine",
41
41
  clientSecret: "fixture-client-secret",
@@ -46,7 +46,7 @@ const result = await sdk.secrets().listSecrets({
46
46
  secretPath: "/app",
47
47
  })
48
48
  console.log(result.secrets.map((secret) => ({ key: secret.secretKey, version: secret.version })))
49
- await mock.close()
49
+ await emulator.close()
50
50
  ```
51
51
 
52
52
  Point the consumer's `INFISICAL_SITE_URL` (or its SDK `siteUrl` configuration) at the served URL.
@@ -79,10 +79,10 @@ Lists return `{ secrets, imports }`, ordered by secret key ascending; the v3 rou
79
79
  metadata or limit/offset parameters**. Duplicate creation returns vendor `400 BadRequestError`,
80
80
  rather than an invented conflict status. Secret values are trimmed while retaining a final
81
81
  newline, following the raw-route transform. Shared machine/service access is supported;
82
- personal secret writes are rejected. Token expiry uses the injected mock clock. Missing/invalid
82
+ personal secret writes are rejected. Token expiry uses the injected emulator clock. Missing/invalid
83
83
  tokens, denied permissions, missing locations/secrets, schema validation and throttling return
84
84
  vendor-shaped error envelopes. Location-not-found messages are deliberately generic to avoid
85
- exposing fixture structure. Machine tokens are opaque mock credentials rather than signed JWTs.
85
+ exposing fixture structure. Machine tokens are opaque emulator credentials rather than signed JWTs.
86
86
  Legacy service tokens with one exact scope override the caller's project/environment/path,
87
87
  following the v3 router; recursive service scopes retain explicit caller locations.
88
88
 
@@ -114,7 +114,7 @@ Secret values, comments, metadata, client secrets and token credentials are seal
114
114
  AES-256-GCM **before** entering any Collection. Standard state reads and Timeline snapshots
115
115
  contain encrypted bytes; service-specific admin reads expose metadata only. Request journals,
116
116
  metrics, logs and errors never contain secret values or credential bodies. Plaintext is returned
117
- only by authorized vendor secret operations. This is a test mock: callers holding the runtime
117
+ only by authorized vendor secret operations. This is a test emulator: callers holding the runtime
118
118
  object can access its programmatic API and should be trusted.
119
119
 
120
120
  The encryption key is private to the runtime and is shared across its namespaces. Sealed rows
package/SUPPORT.md CHANGED
@@ -3,10 +3,10 @@
3
3
  Generated from `openapi.yaml`; do not edit by hand.
4
4
 
5
5
  - operations in spec: **6**
6
- - supported by the mock: **6**
6
+ - supported by the emulator: **6**
7
7
  - parity enabled: **6**
8
8
 
9
- | operationId | route | mock | parity | notes |
9
+ | operationId | route | emulator | parity | notes |
10
10
  | --- | --- | --- | --- | --- |
11
11
  | `UniversalAuthLogin` | `POST /api/v1/auth/universal-auth/login` | ✅ supported | ⚠️ unsafe (opt-in) | |
12
12
  | `RenewAccessToken` | `POST /api/v1/auth/token/renew` | ✅ supported | ⚠️ unsafe (opt-in) | |