@emulates/aws-secrets 0.0.0-stage → 2.3.1

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/dist/server.js ADDED
@@ -0,0 +1,12 @@
1
+ import {
2
+ DEFAULT_PORT,
3
+ createServer,
4
+ serveTarget
5
+ } from "./chunk-R3T5WEGZ.js";
6
+ import "./chunk-E777A5CX.js";
7
+ export {
8
+ DEFAULT_PORT,
9
+ createServer,
10
+ serveTarget
11
+ };
12
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/openapi.yaml ADDED
@@ -0,0 +1,22 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: AWS Secrets Manager and SSM Parameter Store (Emulates 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-emulates: { 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,116 @@
1
1
  {
2
2
  "name": "@emulates/aws-secrets",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "2.3.1",
4
+ "description": "Stateful AWS Secrets Manager and SSM Parameter Store emulator with versions, stages, rotation, and redacted controls.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "CHANGELOG.md",
12
+ "DISCOVERY.md",
13
+ "SUPPORT.md",
14
+ "openapi.yaml"
15
+ ],
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./server": {
24
+ "types": "./dist/server.d.ts",
25
+ "default": "./dist/server.js"
26
+ }
27
+ },
28
+ "bin": {
29
+ "emulates-aws-secrets": "./dist/cli.js"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "provenance": true
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/crvouga/emulators.git",
38
+ "directory": "packages/service/aws-secrets"
39
+ },
40
+ "homepage": "https://github.com/crvouga/emulators/tree/main/packages/service/aws-secrets#readme",
41
+ "keywords": [
42
+ "emulates",
43
+ "aws",
44
+ "secrets-manager",
45
+ "ssm",
46
+ "parameter-store",
47
+ "emulator"
48
+ ],
49
+ "emulates": {
50
+ "runtime": "portable",
51
+ "entries": {
52
+ "server": "node",
53
+ "cli": "node"
54
+ },
55
+ "layer": "service",
56
+ "category": "identity",
57
+ "displayName": "AWS Secrets Manager & SSM",
58
+ "vendor": {
59
+ "website": "https://aws.amazon.com/secrets-manager/",
60
+ "docs": "https://docs.aws.amazon.com/secretsmanager/latest/apireference/"
61
+ },
62
+ "parity": "Secrets Manager and Parameter Store",
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 an Emulates 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/emulators/blob/main/docs/REPORTING_ISSUES.md"
85
+ }
86
+ },
87
+ "scripts": {
88
+ "generate": "bun ../../openapi/codegen/dist/cli.js",
89
+ "generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
90
+ "openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
91
+ "build": "bun ../../../scripts/bundle-service.ts",
92
+ "typecheck": "tsc -p tsconfig.json --noEmit",
93
+ "lint": "biome check .",
94
+ "test": "bun test",
95
+ "parity": "bun scripts/parity.ts",
96
+ "portability": "bun ../../../scripts/portability.ts",
97
+ "pack:check": "bun ../../../scripts/pack-check.ts"
98
+ },
99
+ "dependencies": {
100
+ "@emulates/sqlite": "2.1.2"
101
+ },
102
+ "devDependencies": {
103
+ "@aws-sdk/client-secrets-manager": "3.1132.0",
104
+ "@aws-sdk/client-ssm": "3.1132.0",
105
+ "@emulates/adapter-node": "0.0.0-development",
106
+ "@emulates/core": "0.0.0-development",
107
+ "@emulates/openapi": "0.0.0-development",
108
+ "@emulates/openapi-codegen": "0.1.0",
109
+ "@emulates/openapi-metadata": "0.0.0-development",
110
+ "@emulates/parity": "0.0.0-development",
111
+ "@emulates/service": "0.0.0-development",
112
+ "@emulates/sqlite-client": "0.0.0-development",
113
+ "@emulates/testing": "0.1.0",
114
+ "fast-check": "4.9.0"
115
+ }
116
+ }