@crvouga/mockingbird-service-aws-secrets 1.8.0 → 2.0.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 +23 -1
- package/DISCOVERY.md +55 -0
- package/README.md +2 -2
- package/SUPPORT.md +11 -0
- package/dist/{chunk-X7BC6ZMN.js → chunk-Q6YFMIYD.js} +43 -23
- package/dist/chunk-Q6YFMIYD.js.map +7 -0
- package/dist/{chunk-3XPLOCZB.js → chunk-XQ45L6Q4.js} +622 -235
- package/dist/chunk-XQ45L6Q4.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/server.d.ts +2 -0
- package/dist/server.js +2 -2
- package/openapi.yaml +22 -0
- package/package.json +29 -4
- package/dist/chunk-3XPLOCZB.js.map +0 -7
- package/dist/chunk-X7BC6ZMN.js.map +0 -7
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -592,6 +592,7 @@ type CliOption = {
|
|
|
592
592
|
};
|
|
593
593
|
type CliValues = Record<string, string | boolean | undefined>;
|
|
594
594
|
type CommonServeOptions = {
|
|
595
|
+
adminPrefix?: string;
|
|
595
596
|
adminKey: string | undefined;
|
|
596
597
|
seed: string | undefined;
|
|
597
598
|
onLog: ((entry: RequestLog$1) => void) | undefined;
|
|
@@ -1375,6 +1376,7 @@ type AwsSecretsRuntimeOptions = {
|
|
|
1375
1376
|
sqlite?: SqliteClient;
|
|
1376
1377
|
clock?: Clock;
|
|
1377
1378
|
seed?: number | string;
|
|
1379
|
+
adminPrefix?: string;
|
|
1378
1380
|
adminKey?: string;
|
|
1379
1381
|
onLog?: (entry: RequestLog) => void;
|
|
1380
1382
|
region?: string;
|
package/dist/server.js
CHANGED
package/openapi.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: AWS Secrets Manager and SSM Parameter Store (Mockingbird subset)
|
|
4
|
+
version: "2017-10-17"
|
|
5
|
+
description: AWS JSON contracts used by the pinned Secrets Manager and SSM clients.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://secretsmanager.us-east-1.amazonaws.com
|
|
8
|
+
paths:
|
|
9
|
+
/:
|
|
10
|
+
post:
|
|
11
|
+
operationId: AwsSecretsRpc
|
|
12
|
+
x-mockingbird: { supported: true, parity: { enabled: true, safe: false } }
|
|
13
|
+
parameters:
|
|
14
|
+
- { name: X-Amz-Target, in: header, required: true, schema: { type: string } }
|
|
15
|
+
requestBody:
|
|
16
|
+
required: true
|
|
17
|
+
content:
|
|
18
|
+
application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } }
|
|
19
|
+
application/json: { schema: { type: object, additionalProperties: true } }
|
|
20
|
+
responses:
|
|
21
|
+
"200": { description: Operation response, content: { application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } } } }
|
|
22
|
+
"400": { description: AWS exception, content: { application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } } } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-aws-secrets",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Stateful AWS Secrets Manager and SSM Parameter Store mock with versions, stages, rotation, and redacted controls.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist",
|
|
10
10
|
"README.md",
|
|
11
|
-
"CHANGELOG.md"
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"DISCOVERY.md",
|
|
13
|
+
"SUPPORT.md",
|
|
14
|
+
"openapi.yaml"
|
|
12
15
|
],
|
|
13
16
|
"main": "./dist/index.js",
|
|
14
17
|
"types": "./dist/index.d.ts",
|
|
@@ -57,7 +60,29 @@
|
|
|
57
60
|
"docs": "https://docs.aws.amazon.com/secretsmanager/latest/apireference/"
|
|
58
61
|
},
|
|
59
62
|
"parity": "Secrets Manager and Parameter Store",
|
|
60
|
-
"parityTier": "cold"
|
|
63
|
+
"parityTier": "cold",
|
|
64
|
+
"discovery": {
|
|
65
|
+
"guide": "DISCOVERY.md",
|
|
66
|
+
"behavior": "README.md",
|
|
67
|
+
"capabilities": "SUPPORT.md",
|
|
68
|
+
"contract": "openapi.yaml",
|
|
69
|
+
"types": "dist/index.d.ts",
|
|
70
|
+
"oracle": {
|
|
71
|
+
"kind": "Live vendor API or sandbox",
|
|
72
|
+
"command": "bun run parity:service -- aws-secrets",
|
|
73
|
+
"note": "Run from a Mockingbird checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
|
|
74
|
+
},
|
|
75
|
+
"introspection": [
|
|
76
|
+
"GET /__admin/health",
|
|
77
|
+
"GET /__admin",
|
|
78
|
+
"GET /__admin/state",
|
|
79
|
+
"GET /__admin/requests",
|
|
80
|
+
"GET /__admin/metrics",
|
|
81
|
+
"GET /__admin/faults/presets",
|
|
82
|
+
"GET /__admin/ui"
|
|
83
|
+
],
|
|
84
|
+
"reporting": "https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md"
|
|
85
|
+
}
|
|
61
86
|
},
|
|
62
87
|
"scripts": {
|
|
63
88
|
"generate": "bun ../../openapi/codegen/dist/cli.js",
|
|
@@ -72,7 +97,7 @@
|
|
|
72
97
|
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
73
98
|
},
|
|
74
99
|
"dependencies": {
|
|
75
|
-
"@crvouga/mockingbird-service-sqlite": "
|
|
100
|
+
"@crvouga/mockingbird-service-sqlite": "2.0.0"
|
|
76
101
|
},
|
|
77
102
|
"devDependencies": {
|
|
78
103
|
"@aws-sdk/client-secrets-manager": "3.1132.0",
|