@inluxc/propmaster 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +696 -2
- package/dist/src/annotations/index.d.ts +11 -0
- package/dist/src/annotations/index.d.ts.map +1 -0
- package/dist/src/annotations/index.js +11 -0
- package/dist/src/annotations/index.js.map +1 -0
- package/dist/src/annotations/recorder.d.ts +57 -0
- package/dist/src/annotations/recorder.d.ts.map +1 -0
- package/dist/src/annotations/recorder.js +100 -0
- package/dist/src/annotations/recorder.js.map +1 -0
- package/dist/src/annotations/truncation.d.ts +34 -0
- package/dist/src/annotations/truncation.d.ts.map +1 -0
- package/dist/src/annotations/truncation.js +54 -0
- package/dist/src/annotations/truncation.js.map +1 -0
- package/dist/src/auth/apply.d.ts +15 -0
- package/dist/src/auth/apply.d.ts.map +1 -0
- package/dist/src/auth/apply.js +21 -0
- package/dist/src/auth/apply.js.map +1 -0
- package/dist/src/auth/setup.d.ts +56 -0
- package/dist/src/auth/setup.d.ts.map +1 -0
- package/dist/src/auth/setup.js +79 -0
- package/dist/src/auth/setup.js.map +1 -0
- package/dist/src/auth/state-file.d.ts +8 -0
- package/dist/src/auth/state-file.d.ts.map +1 -0
- package/dist/src/auth/state-file.js +13 -0
- package/dist/src/auth/state-file.js.map +1 -0
- package/dist/src/auth/token-manager.d.ts +61 -0
- package/dist/src/auth/token-manager.d.ts.map +1 -0
- package/dist/src/auth/token-manager.js +200 -0
- package/dist/src/auth/token-manager.js.map +1 -0
- package/dist/src/cli/banner.d.ts +23 -0
- package/dist/src/cli/banner.d.ts.map +1 -0
- package/dist/src/cli/banner.js +67 -0
- package/dist/src/cli/banner.js.map +1 -0
- package/dist/src/cli/check-tests.d.ts +143 -0
- package/dist/src/cli/check-tests.d.ts.map +1 -0
- package/dist/src/cli/check-tests.js +541 -0
- package/dist/src/cli/check-tests.js.map +1 -0
- package/dist/src/cli/coverage.d.ts +14 -0
- package/dist/src/cli/coverage.d.ts.map +1 -0
- package/dist/src/cli/coverage.js +97 -0
- package/dist/src/cli/coverage.js.map +1 -0
- package/dist/src/cli/doctor.d.ts +82 -0
- package/dist/src/cli/doctor.d.ts.map +1 -0
- package/dist/src/cli/doctor.js +656 -0
- package/dist/src/cli/doctor.js.map +1 -0
- package/dist/src/cli/env.d.ts +76 -0
- package/dist/src/cli/env.d.ts.map +1 -0
- package/dist/src/cli/env.js +344 -0
- package/dist/src/cli/env.js.map +1 -0
- package/dist/src/cli/failures.d.ts +29 -0
- package/dist/src/cli/failures.d.ts.map +1 -0
- package/dist/src/cli/failures.js +114 -0
- package/dist/src/cli/failures.js.map +1 -0
- package/dist/src/cli/fixture-catalog.d.ts +83 -0
- package/dist/src/cli/fixture-catalog.d.ts.map +1 -0
- package/dist/src/cli/fixture-catalog.js +773 -0
- package/dist/src/cli/fixture-catalog.js.map +1 -0
- package/dist/src/cli/fixture.d.ts +149 -0
- package/dist/src/cli/fixture.d.ts.map +1 -0
- package/dist/src/cli/fixture.js +742 -0
- package/dist/src/cli/fixture.js.map +1 -0
- package/dist/src/cli/flaky.d.ts +25 -0
- package/dist/src/cli/flaky.d.ts.map +1 -0
- package/dist/src/cli/flaky.js +96 -0
- package/dist/src/cli/flaky.js.map +1 -0
- package/dist/src/cli/generate.d.ts +37 -0
- package/dist/src/cli/generate.d.ts.map +1 -0
- package/dist/src/cli/generate.js +230 -0
- package/dist/src/cli/generate.js.map +1 -0
- package/dist/src/cli/init.d.ts +36 -0
- package/dist/src/cli/init.d.ts.map +1 -0
- package/dist/src/cli/init.js +1039 -0
- package/dist/src/cli/init.js.map +1 -0
- package/dist/src/cli/json-edit.d.ts +58 -0
- package/dist/src/cli/json-edit.d.ts.map +1 -0
- package/dist/src/cli/json-edit.js +250 -0
- package/dist/src/cli/json-edit.js.map +1 -0
- package/dist/src/cli/layout.d.ts +31 -0
- package/dist/src/cli/layout.d.ts.map +1 -0
- package/dist/src/cli/layout.js +175 -0
- package/dist/src/cli/layout.js.map +1 -0
- package/dist/src/cli/mcp-setup.d.ts +141 -0
- package/dist/src/cli/mcp-setup.d.ts.map +1 -0
- package/dist/src/cli/mcp-setup.js +548 -0
- package/dist/src/cli/mcp-setup.js.map +1 -0
- package/dist/src/cli/organize.d.ts +136 -0
- package/dist/src/cli/organize.d.ts.map +1 -0
- package/dist/src/cli/organize.js +467 -0
- package/dist/src/cli/organize.js.map +1 -0
- package/dist/src/cli/prompts.d.ts +102 -0
- package/dist/src/cli/prompts.d.ts.map +1 -0
- package/dist/src/cli/prompts.js +346 -0
- package/dist/src/cli/prompts.js.map +1 -0
- package/dist/src/cli/standards.d.ts +160 -0
- package/dist/src/cli/standards.d.ts.map +1 -0
- package/dist/src/cli/standards.js +389 -0
- package/dist/src/cli/standards.js.map +1 -0
- package/dist/src/cli/style.d.ts +28 -0
- package/dist/src/cli/style.d.ts.map +1 -0
- package/dist/src/cli/style.js +57 -0
- package/dist/src/cli/style.js.map +1 -0
- package/dist/src/config/env-loader.d.ts +33 -0
- package/dist/src/config/env-loader.d.ts.map +1 -0
- package/dist/src/config/env-loader.js +72 -0
- package/dist/src/config/env-loader.js.map +1 -0
- package/dist/src/config/index.d.ts +10 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +10 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/loader.d.ts +66 -0
- package/dist/src/config/loader.d.ts.map +1 -0
- package/dist/src/config/loader.js +810 -0
- package/dist/src/config/loader.js.map +1 -0
- package/dist/src/config/schema.d.ts +596 -0
- package/dist/src/config/schema.d.ts.map +1 -0
- package/dist/src/config/schema.js +9 -0
- package/dist/src/config/schema.js.map +1 -0
- package/dist/src/containers/container-manager.d.ts +157 -0
- package/dist/src/containers/container-manager.d.ts.map +1 -0
- package/dist/src/containers/container-manager.js +627 -0
- package/dist/src/containers/container-manager.js.map +1 -0
- package/dist/src/coverage/code-coverage.d.ts +89 -0
- package/dist/src/coverage/code-coverage.d.ts.map +1 -0
- package/dist/src/coverage/code-coverage.js +395 -0
- package/dist/src/coverage/code-coverage.js.map +1 -0
- package/dist/src/coverage/inventory.d.ts +80 -0
- package/dist/src/coverage/inventory.d.ts.map +1 -0
- package/dist/src/coverage/inventory.js +417 -0
- package/dist/src/coverage/inventory.js.map +1 -0
- package/dist/src/coverage/languages.d.ts +34 -0
- package/dist/src/coverage/languages.d.ts.map +1 -0
- package/dist/src/coverage/languages.js +156 -0
- package/dist/src/coverage/languages.js.map +1 -0
- package/dist/src/coverage/report.d.ts +128 -0
- package/dist/src/coverage/report.d.ts.map +1 -0
- package/dist/src/coverage/report.js +472 -0
- package/dist/src/coverage/report.js.map +1 -0
- package/dist/src/errors.d.ts +164 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +267 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/fixtures/amqp.fixture.d.ts +163 -0
- package/dist/src/fixtures/amqp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/amqp.fixture.js +494 -0
- package/dist/src/fixtures/amqp.fixture.js.map +1 -0
- package/dist/src/fixtures/appium.fixture.d.ts +112 -0
- package/dist/src/fixtures/appium.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/appium.fixture.js +309 -0
- package/dist/src/fixtures/appium.fixture.js.map +1 -0
- package/dist/src/fixtures/aws.d.ts +44 -0
- package/dist/src/fixtures/aws.d.ts.map +1 -0
- package/dist/src/fixtures/aws.js +93 -0
- package/dist/src/fixtures/aws.js.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts +179 -0
- package/dist/src/fixtures/cassandra.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/cassandra.fixture.js +489 -0
- package/dist/src/fixtures/cassandra.fixture.js.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts +171 -0
- package/dist/src/fixtures/clickhouse.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/clickhouse.fixture.js +514 -0
- package/dist/src/fixtures/clickhouse.fixture.js.map +1 -0
- package/dist/src/fixtures/database.fixture.d.ts +63 -0
- package/dist/src/fixtures/database.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/database.fixture.js +407 -0
- package/dist/src/fixtures/database.fixture.js.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts +243 -0
- package/dist/src/fixtures/dynamodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/dynamodb.fixture.js +580 -0
- package/dist/src/fixtures/dynamodb.fixture.js.map +1 -0
- package/dist/src/fixtures/graphql.fixture.d.ts +107 -0
- package/dist/src/fixtures/graphql.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/graphql.fixture.js +158 -0
- package/dist/src/fixtures/graphql.fixture.js.map +1 -0
- package/dist/src/fixtures/grpc.fixture.d.ts +167 -0
- package/dist/src/fixtures/grpc.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/grpc.fixture.js +635 -0
- package/dist/src/fixtures/grpc.fixture.js.map +1 -0
- package/dist/src/fixtures/inbox.fixture.d.ts +136 -0
- package/dist/src/fixtures/inbox.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/inbox.fixture.js +239 -0
- package/dist/src/fixtures/inbox.fixture.js.map +1 -0
- package/dist/src/fixtures/index.d.ts +174 -0
- package/dist/src/fixtures/index.d.ts.map +1 -0
- package/dist/src/fixtures/index.js +379 -0
- package/dist/src/fixtures/index.js.map +1 -0
- package/dist/src/fixtures/kafka-driver.d.ts +108 -0
- package/dist/src/fixtures/kafka-driver.d.ts.map +1 -0
- package/dist/src/fixtures/kafka-driver.js +113 -0
- package/dist/src/fixtures/kafka-driver.js.map +1 -0
- package/dist/src/fixtures/kafka.fixture.d.ts +75 -0
- package/dist/src/fixtures/kafka.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/kafka.fixture.js +188 -0
- package/dist/src/fixtures/kafka.fixture.js.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts +142 -0
- package/dist/src/fixtures/mock-server.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mock-server.fixture.js +271 -0
- package/dist/src/fixtures/mock-server.fixture.js.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts +121 -0
- package/dist/src/fixtures/mongodb.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/mongodb.fixture.js +258 -0
- package/dist/src/fixtures/mongodb.fixture.js.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts +72 -0
- package/dist/src/fixtures/neo4j.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/neo4j.fixture.js +202 -0
- package/dist/src/fixtures/neo4j.fixture.js.map +1 -0
- package/dist/src/fixtures/openapi.fixture.d.ts +101 -0
- package/dist/src/fixtures/openapi.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/openapi.fixture.js +266 -0
- package/dist/src/fixtures/openapi.fixture.js.map +1 -0
- package/dist/src/fixtures/optional-package.d.ts +54 -0
- package/dist/src/fixtures/optional-package.d.ts.map +1 -0
- package/dist/src/fixtures/optional-package.js +79 -0
- package/dist/src/fixtures/optional-package.js.map +1 -0
- package/dist/src/fixtures/otp.fixture.d.ts +60 -0
- package/dist/src/fixtures/otp.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/otp.fixture.js +101 -0
- package/dist/src/fixtures/otp.fixture.js.map +1 -0
- package/dist/src/fixtures/realtime.fixture.d.ts +205 -0
- package/dist/src/fixtures/realtime.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/realtime.fixture.js +606 -0
- package/dist/src/fixtures/realtime.fixture.js.map +1 -0
- package/dist/src/fixtures/redis.fixture.d.ts +55 -0
- package/dist/src/fixtures/redis.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/redis.fixture.js +209 -0
- package/dist/src/fixtures/redis.fixture.js.map +1 -0
- package/dist/src/fixtures/s3.fixture.d.ts +126 -0
- package/dist/src/fixtures/s3.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/s3.fixture.js +296 -0
- package/dist/src/fixtures/s3.fixture.js.map +1 -0
- package/dist/src/fixtures/search.fixture.d.ts +178 -0
- package/dist/src/fixtures/search.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/search.fixture.js +472 -0
- package/dist/src/fixtures/search.fixture.js.map +1 -0
- package/dist/src/fixtures/sqs.fixture.d.ts +172 -0
- package/dist/src/fixtures/sqs.fixture.d.ts.map +1 -0
- package/dist/src/fixtures/sqs.fixture.js +428 -0
- package/dist/src/fixtures/sqs.fixture.js.map +1 -0
- package/dist/src/index.d.ts +43 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +48 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcp/guards.d.ts +21 -0
- package/dist/src/mcp/guards.d.ts.map +1 -0
- package/dist/src/mcp/guards.js +118 -0
- package/dist/src/mcp/guards.js.map +1 -0
- package/dist/src/mcp/project-tools.d.ts +14 -0
- package/dist/src/mcp/project-tools.d.ts.map +1 -0
- package/dist/src/mcp/project-tools.js +252 -0
- package/dist/src/mcp/project-tools.js.map +1 -0
- package/dist/src/mcp/protocol.d.ts +116 -0
- package/dist/src/mcp/protocol.d.ts.map +1 -0
- package/dist/src/mcp/protocol.js +199 -0
- package/dist/src/mcp/protocol.js.map +1 -0
- package/dist/src/mcp/server.d.ts +43 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +244 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/mcp/test-tools.d.ts +65 -0
- package/dist/src/mcp/test-tools.d.ts.map +1 -0
- package/dist/src/mcp/test-tools.js +380 -0
- package/dist/src/mcp/test-tools.js.map +1 -0
- package/dist/src/mcp/tools.d.ts +49 -0
- package/dist/src/mcp/tools.d.ts.map +1 -0
- package/dist/src/mcp/tools.js +726 -0
- package/dist/src/mcp/tools.js.map +1 -0
- package/dist/src/network-error.d.ts +11 -0
- package/dist/src/network-error.d.ts.map +1 -0
- package/dist/src/network-error.js +34 -0
- package/dist/src/network-error.js.map +1 -0
- package/dist/src/openapi/contract.d.ts +98 -0
- package/dist/src/openapi/contract.d.ts.map +1 -0
- package/dist/src/openapi/contract.js +407 -0
- package/dist/src/openapi/contract.js.map +1 -0
- package/dist/src/openapi/generate.d.ts +89 -0
- package/dist/src/openapi/generate.d.ts.map +1 -0
- package/dist/src/openapi/generate.js +607 -0
- package/dist/src/openapi/generate.js.map +1 -0
- package/dist/src/openapi/load.d.ts +8 -0
- package/dist/src/openapi/load.d.ts.map +1 -0
- package/dist/src/openapi/load.js +26 -0
- package/dist/src/openapi/load.js.map +1 -0
- package/dist/src/package-manager.d.ts +58 -0
- package/dist/src/package-manager.d.ts.map +1 -0
- package/dist/src/package-manager.js +137 -0
- package/dist/src/package-manager.js.map +1 -0
- package/dist/src/reporter/history.d.ts +85 -0
- package/dist/src/reporter/history.d.ts.map +1 -0
- package/dist/src/reporter/history.js +147 -0
- package/dist/src/reporter/history.js.map +1 -0
- package/dist/src/reporter/index.d.ts +59 -0
- package/dist/src/reporter/index.d.ts.map +1 -0
- package/dist/src/reporter/index.js +201 -0
- package/dist/src/reporter/index.js.map +1 -0
- package/dist/src/reporter/last-run.d.ts +88 -0
- package/dist/src/reporter/last-run.d.ts.map +1 -0
- package/dist/src/reporter/last-run.js +133 -0
- package/dist/src/reporter/last-run.js.map +1 -0
- package/dist/src/reporter/quarantine.d.ts +62 -0
- package/dist/src/reporter/quarantine.d.ts.map +1 -0
- package/dist/src/reporter/quarantine.js +148 -0
- package/dist/src/reporter/quarantine.js.map +1 -0
- package/dist/src/secrets/index.d.ts +4 -0
- package/dist/src/secrets/index.d.ts.map +1 -0
- package/dist/src/secrets/index.js +3 -0
- package/dist/src/secrets/index.js.map +1 -0
- package/dist/src/secrets/provider.interface.d.ts +30 -0
- package/dist/src/secrets/provider.interface.d.ts.map +1 -0
- package/dist/src/secrets/provider.interface.js +2 -0
- package/dist/src/secrets/provider.interface.js.map +1 -0
- package/dist/src/secrets/providers/aws.provider.d.ts +33 -0
- package/dist/src/secrets/providers/aws.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/aws.provider.js +88 -0
- package/dist/src/secrets/providers/aws.provider.js.map +1 -0
- package/dist/src/secrets/providers/azure.provider.d.ts +26 -0
- package/dist/src/secrets/providers/azure.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/azure.provider.js +71 -0
- package/dist/src/secrets/providers/azure.provider.js.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts +29 -0
- package/dist/src/secrets/providers/env-file.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/env-file.provider.js +56 -0
- package/dist/src/secrets/providers/env-file.provider.js.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts +26 -0
- package/dist/src/secrets/providers/gitlab.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/gitlab.provider.js +67 -0
- package/dist/src/secrets/providers/gitlab.provider.js.map +1 -0
- package/dist/src/secrets/providers/index.d.ts +52 -0
- package/dist/src/secrets/providers/index.d.ts.map +1 -0
- package/dist/src/secrets/providers/index.js +81 -0
- package/dist/src/secrets/providers/index.js.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts +28 -0
- package/dist/src/secrets/providers/openbao.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/openbao.provider.js +29 -0
- package/dist/src/secrets/providers/openbao.provider.js.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts +140 -0
- package/dist/src/secrets/providers/vault-compatible.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault-compatible.js +405 -0
- package/dist/src/secrets/providers/vault-compatible.js.map +1 -0
- package/dist/src/secrets/providers/vault.provider.d.ts +27 -0
- package/dist/src/secrets/providers/vault.provider.d.ts.map +1 -0
- package/dist/src/secrets/providers/vault.provider.js +23 -0
- package/dist/src/secrets/providers/vault.provider.js.map +1 -0
- package/dist/src/secrets/secrets-manager.d.ts +67 -0
- package/dist/src/secrets/secrets-manager.d.ts.map +1 -0
- package/dist/src/secrets/secrets-manager.js +255 -0
- package/dist/src/secrets/secrets-manager.js.map +1 -0
- package/dist/src/steps/amqp.steps.d.ts +37 -0
- package/dist/src/steps/amqp.steps.d.ts.map +1 -0
- package/dist/src/steps/amqp.steps.js +86 -0
- package/dist/src/steps/amqp.steps.js.map +1 -0
- package/dist/src/steps/appium.steps.d.ts +53 -0
- package/dist/src/steps/appium.steps.d.ts.map +1 -0
- package/dist/src/steps/appium.steps.js +109 -0
- package/dist/src/steps/appium.steps.js.map +1 -0
- package/dist/src/steps/aws.steps.d.ts +47 -0
- package/dist/src/steps/aws.steps.d.ts.map +1 -0
- package/dist/src/steps/aws.steps.js +116 -0
- package/dist/src/steps/aws.steps.js.map +1 -0
- package/dist/src/steps/browser.steps.d.ts +54 -0
- package/dist/src/steps/browser.steps.d.ts.map +1 -0
- package/dist/src/steps/browser.steps.js +102 -0
- package/dist/src/steps/browser.steps.js.map +1 -0
- package/dist/src/steps/cassandra.steps.d.ts +32 -0
- package/dist/src/steps/cassandra.steps.d.ts.map +1 -0
- package/dist/src/steps/cassandra.steps.js +81 -0
- package/dist/src/steps/cassandra.steps.js.map +1 -0
- package/dist/src/steps/clickhouse.steps.d.ts +30 -0
- package/dist/src/steps/clickhouse.steps.d.ts.map +1 -0
- package/dist/src/steps/clickhouse.steps.js +73 -0
- package/dist/src/steps/clickhouse.steps.js.map +1 -0
- package/dist/src/steps/database.steps.d.ts +43 -0
- package/dist/src/steps/database.steps.d.ts.map +1 -0
- package/dist/src/steps/database.steps.js +79 -0
- package/dist/src/steps/database.steps.js.map +1 -0
- package/dist/src/steps/dynamodb.steps.d.ts +32 -0
- package/dist/src/steps/dynamodb.steps.d.ts.map +1 -0
- package/dist/src/steps/dynamodb.steps.js +89 -0
- package/dist/src/steps/dynamodb.steps.js.map +1 -0
- package/dist/src/steps/graphql.steps.d.ts +60 -0
- package/dist/src/steps/graphql.steps.d.ts.map +1 -0
- package/dist/src/steps/graphql.steps.js +76 -0
- package/dist/src/steps/graphql.steps.js.map +1 -0
- package/dist/src/steps/grpc.steps.d.ts +29 -0
- package/dist/src/steps/grpc.steps.d.ts.map +1 -0
- package/dist/src/steps/grpc.steps.js +68 -0
- package/dist/src/steps/grpc.steps.js.map +1 -0
- package/dist/src/steps/inbox.steps.d.ts +30 -0
- package/dist/src/steps/inbox.steps.d.ts.map +1 -0
- package/dist/src/steps/inbox.steps.js +72 -0
- package/dist/src/steps/inbox.steps.js.map +1 -0
- package/dist/src/steps/index.d.ts +43 -0
- package/dist/src/steps/index.d.ts.map +1 -0
- package/dist/src/steps/index.js +26 -0
- package/dist/src/steps/index.js.map +1 -0
- package/dist/src/steps/kafka.steps.d.ts +56 -0
- package/dist/src/steps/kafka.steps.d.ts.map +1 -0
- package/dist/src/steps/kafka.steps.js +61 -0
- package/dist/src/steps/kafka.steps.js.map +1 -0
- package/dist/src/steps/mock-server.steps.d.ts +21 -0
- package/dist/src/steps/mock-server.steps.d.ts.map +1 -0
- package/dist/src/steps/mock-server.steps.js +45 -0
- package/dist/src/steps/mock-server.steps.js.map +1 -0
- package/dist/src/steps/mongodb.steps.d.ts +107 -0
- package/dist/src/steps/mongodb.steps.d.ts.map +1 -0
- package/dist/src/steps/mongodb.steps.js +117 -0
- package/dist/src/steps/mongodb.steps.js.map +1 -0
- package/dist/src/steps/openapi.steps.d.ts +49 -0
- package/dist/src/steps/openapi.steps.d.ts.map +1 -0
- package/dist/src/steps/openapi.steps.js +113 -0
- package/dist/src/steps/openapi.steps.js.map +1 -0
- package/dist/src/steps/otp.steps.d.ts +43 -0
- package/dist/src/steps/otp.steps.d.ts.map +1 -0
- package/dist/src/steps/otp.steps.js +83 -0
- package/dist/src/steps/otp.steps.js.map +1 -0
- package/dist/src/steps/realtime.steps.d.ts +40 -0
- package/dist/src/steps/realtime.steps.d.ts.map +1 -0
- package/dist/src/steps/realtime.steps.js +116 -0
- package/dist/src/steps/realtime.steps.js.map +1 -0
- package/dist/src/steps/redis.steps.d.ts +54 -0
- package/dist/src/steps/redis.steps.d.ts.map +1 -0
- package/dist/src/steps/redis.steps.js +89 -0
- package/dist/src/steps/redis.steps.js.map +1 -0
- package/dist/src/steps/search.steps.d.ts +23 -0
- package/dist/src/steps/search.steps.d.ts.map +1 -0
- package/dist/src/steps/search.steps.js +54 -0
- package/dist/src/steps/search.steps.js.map +1 -0
- package/dist/src/test-data/factory.d.ts +82 -0
- package/dist/src/test-data/factory.d.ts.map +1 -0
- package/dist/src/test-data/factory.js +116 -0
- package/dist/src/test-data/factory.js.map +1 -0
- package/dist/src/test-data/index.d.ts +4 -0
- package/dist/src/test-data/index.d.ts.map +1 -0
- package/dist/src/test-data/index.js +4 -0
- package/dist/src/test-data/index.js.map +1 -0
- package/dist/src/test-data/registry.d.ts +37 -0
- package/dist/src/test-data/registry.d.ts.map +1 -0
- package/dist/src/test-data/registry.js +51 -0
- package/dist/src/test-data/registry.js.map +1 -0
- package/dist/src/test-data/tracking.d.ts +47 -0
- package/dist/src/test-data/tracking.d.ts.map +1 -0
- package/dist/src/test-data/tracking.js +166 -0
- package/dist/src/test-data/tracking.js.map +1 -0
- package/environments.json +263 -0
- package/package.json +299 -5
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared implementation for servers that speak the HashiCorp Vault HTTP API.
|
|
3
|
+
*
|
|
4
|
+
* Both HashiCorp Vault and OpenBao (the Linux Foundation fork of Vault) serve
|
|
5
|
+
* the same `/v1` API: KV v1/v2 reads, `X-Vault-Token` / `X-Vault-Namespace`
|
|
6
|
+
* headers, and the AppRole, Kubernetes and JWT login endpoints. The concrete
|
|
7
|
+
* providers differ only in their name and in which environment variables they
|
|
8
|
+
* read, so they subclass this base and pass an ordered list of env prefixes.
|
|
9
|
+
*
|
|
10
|
+
* Authentication methods:
|
|
11
|
+
* - token — a client token (option or `<PREFIX>TOKEN`)
|
|
12
|
+
* - approle — role_id + secret_id
|
|
13
|
+
* - kubernetes — role + the pod's service-account JWT
|
|
14
|
+
* - jwt — role + any JWT (e.g. a CI OIDC token)
|
|
15
|
+
*
|
|
16
|
+
* TLS: custom CA bundle/directory, mutual TLS client cert/key, SNI server name
|
|
17
|
+
* and skip-verify, mirroring the `*_CACERT`, `*_CAPATH`, `*_CLIENT_CERT`,
|
|
18
|
+
* `*_CLIENT_KEY`, `*_TLS_SERVER_NAME` and `*_SKIP_VERIFY` CLI variables.
|
|
19
|
+
*
|
|
20
|
+
* Credentials (tokens, secret_ids, JWTs, client keys) are never included in
|
|
21
|
+
* error details, and are scrubbed from any server text echoed into an error.
|
|
22
|
+
*/
|
|
23
|
+
import { errorReason } from '../../network-error.js';
|
|
24
|
+
import { readFileSync, readdirSync } from 'node:fs';
|
|
25
|
+
import { join } from 'node:path';
|
|
26
|
+
import { Agent as HttpsAgent, request as httpsRequest } from 'node:https';
|
|
27
|
+
import { SecretsError } from '../../errors.js';
|
|
28
|
+
/** Default location of the Kubernetes service-account token inside a pod. */
|
|
29
|
+
export const KUBERNETES_SA_TOKEN_PATH = '/var/run/secrets/kubernetes.io/serviceaccount/token';
|
|
30
|
+
const MAX_ERROR_BODY_CHARS = 500;
|
|
31
|
+
const REDACTED = '[REDACTED]';
|
|
32
|
+
const MIN_REDACT_LENGTH = 4;
|
|
33
|
+
/**
|
|
34
|
+
* Reads option values, falling back to environment variables under each prefix
|
|
35
|
+
* in order (e.g., `PW_OPENBAO_TOKEN`, then `BAO_TOKEN`, then `VAULT_TOKEN`).
|
|
36
|
+
*/
|
|
37
|
+
export class EnvFallback {
|
|
38
|
+
prefixes;
|
|
39
|
+
env;
|
|
40
|
+
constructor(prefixes, env = process.env) {
|
|
41
|
+
this.prefixes = prefixes;
|
|
42
|
+
this.env = env;
|
|
43
|
+
}
|
|
44
|
+
get(explicit, suffix) {
|
|
45
|
+
if (explicit !== undefined && explicit !== '')
|
|
46
|
+
return explicit;
|
|
47
|
+
for (const prefix of this.prefixes) {
|
|
48
|
+
const value = this.env[`${prefix}${suffix}`];
|
|
49
|
+
if (value !== undefined && value !== '')
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
/** All env var names consulted for a suffix, for error messages. */
|
|
55
|
+
names(suffix) {
|
|
56
|
+
return this.prefixes.map((p) => `${p}${suffix}`).join(' / ');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function parseBool(value) {
|
|
60
|
+
if (value === undefined)
|
|
61
|
+
return undefined;
|
|
62
|
+
return ['1', 'true', 'yes', 'on'].includes(value.trim().toLowerCase());
|
|
63
|
+
}
|
|
64
|
+
export class VaultCompatibleProvider {
|
|
65
|
+
url;
|
|
66
|
+
mountPath;
|
|
67
|
+
kvVersion;
|
|
68
|
+
namespace;
|
|
69
|
+
authMethod;
|
|
70
|
+
authMount;
|
|
71
|
+
roleId;
|
|
72
|
+
secretId;
|
|
73
|
+
role;
|
|
74
|
+
jwt;
|
|
75
|
+
jwtPath;
|
|
76
|
+
tls;
|
|
77
|
+
env;
|
|
78
|
+
agent;
|
|
79
|
+
token;
|
|
80
|
+
login;
|
|
81
|
+
/** Credential values to scrub from any text that ends up in an error. */
|
|
82
|
+
sensitive = new Set();
|
|
83
|
+
constructor(providerName, options, envPrefixes) {
|
|
84
|
+
const env = new EnvFallback(envPrefixes);
|
|
85
|
+
this.env = env;
|
|
86
|
+
const url = env.get(options.url, 'ADDR');
|
|
87
|
+
if (!url) {
|
|
88
|
+
throw new SecretsError(providerName, 'resolve', undefined, {
|
|
89
|
+
reason: `No server URL configured. Set options.url or ${env.names('ADDR')}.`,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const mountPath = env.get(options.mountPath, 'MOUNT_PATH');
|
|
93
|
+
if (!mountPath) {
|
|
94
|
+
throw new SecretsError(providerName, 'resolve', undefined, {
|
|
95
|
+
reason: `No mount path configured. Set options.mountPath or ${env.names('MOUNT_PATH')}.`,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
this.url = url.replace(/\/+$/, '');
|
|
99
|
+
this.mountPath = mountPath.replace(/^\/+|\/+$/g, '');
|
|
100
|
+
const kvVersion = options.kvVersion ?? Number(env.get(undefined, 'KV_VERSION') ?? 2);
|
|
101
|
+
if (kvVersion !== 1 && kvVersion !== 2) {
|
|
102
|
+
throw new SecretsError(providerName, 'resolve', undefined, {
|
|
103
|
+
reason: `kvVersion must be 1 or 2, got ${JSON.stringify(kvVersion)}`,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
this.kvVersion = kvVersion;
|
|
107
|
+
this.namespace = env.get(options.namespace, 'NAMESPACE');
|
|
108
|
+
const authMethod = env.get(options.authMethod, 'AUTH_METHOD');
|
|
109
|
+
if (authMethod !== undefined && !['token', 'approle', 'kubernetes', 'jwt'].includes(authMethod)) {
|
|
110
|
+
throw new SecretsError(providerName, 'resolve', undefined, {
|
|
111
|
+
reason: `Unknown authMethod "${authMethod}". Use token, approle, kubernetes or jwt.`,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
this.authMethod = authMethod;
|
|
115
|
+
this.authMount = env.get(options.authMount, 'AUTH_MOUNT')?.replace(/^\/+|\/+$/g, '');
|
|
116
|
+
this.token = env.get(options.token, 'TOKEN') ?? '';
|
|
117
|
+
this.roleId = env.get(options.roleId, 'ROLE_ID');
|
|
118
|
+
this.secretId = env.get(options.secretId, 'SECRET_ID');
|
|
119
|
+
this.role = env.get(options.role, 'AUTH_ROLE');
|
|
120
|
+
this.jwt = env.get(options.jwt, 'JWT');
|
|
121
|
+
this.jwtPath = env.get(options.jwtPath, 'JWT_PATH');
|
|
122
|
+
for (const value of [this.token, this.secretId, this.jwt]) {
|
|
123
|
+
if (value)
|
|
124
|
+
this.sensitive.add(value);
|
|
125
|
+
}
|
|
126
|
+
this.tls = this.buildTlsOptions(providerName, options);
|
|
127
|
+
}
|
|
128
|
+
async getSecret(key) {
|
|
129
|
+
await this.ensureAuthenticated();
|
|
130
|
+
const secretData = await this.fetchSecretData(key);
|
|
131
|
+
// Resolution order: a `value` field, then a field named after the key,
|
|
132
|
+
// then the first value in the secret.
|
|
133
|
+
if ('value' in secretData) {
|
|
134
|
+
return secretData['value'];
|
|
135
|
+
}
|
|
136
|
+
if (key in secretData) {
|
|
137
|
+
return secretData[key];
|
|
138
|
+
}
|
|
139
|
+
const values = Object.values(secretData);
|
|
140
|
+
if (values.length === 0) {
|
|
141
|
+
throw new SecretsError(this.name, 'fetch', key, {
|
|
142
|
+
reason: 'Secret path exists but contains no data',
|
|
143
|
+
...this.location(),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return values[0];
|
|
147
|
+
}
|
|
148
|
+
async getSecrets(keys) {
|
|
149
|
+
await this.ensureAuthenticated();
|
|
150
|
+
const results = new Map();
|
|
151
|
+
await Promise.all(keys.map(async (key) => {
|
|
152
|
+
results.set(key, await this.getSecret(key));
|
|
153
|
+
}));
|
|
154
|
+
return results;
|
|
155
|
+
}
|
|
156
|
+
/** Context included in every error. Never contains credentials. */
|
|
157
|
+
location() {
|
|
158
|
+
const details = { url: this.url, mountPath: this.mountPath };
|
|
159
|
+
if (this.namespace)
|
|
160
|
+
details.namespace = this.namespace;
|
|
161
|
+
return details;
|
|
162
|
+
}
|
|
163
|
+
/** Replaces every known credential value in `text` with `[REDACTED]` and truncates it. */
|
|
164
|
+
redact(text) {
|
|
165
|
+
let out = text;
|
|
166
|
+
for (const value of this.sensitive) {
|
|
167
|
+
// Skip trivially short values: scrubbing them would mangle the whole message.
|
|
168
|
+
if (value.length < MIN_REDACT_LENGTH)
|
|
169
|
+
continue;
|
|
170
|
+
out = out.split(value).join(REDACTED);
|
|
171
|
+
}
|
|
172
|
+
return out.length > MAX_ERROR_BODY_CHARS ? `${out.slice(0, MAX_ERROR_BODY_CHARS)}…` : out;
|
|
173
|
+
}
|
|
174
|
+
resolveAuthMethod() {
|
|
175
|
+
if (this.authMethod)
|
|
176
|
+
return this.authMethod;
|
|
177
|
+
if (this.token)
|
|
178
|
+
return 'token';
|
|
179
|
+
if (this.roleId && this.secretId)
|
|
180
|
+
return 'approle';
|
|
181
|
+
if (this.jwt || this.jwtPath)
|
|
182
|
+
return 'jwt';
|
|
183
|
+
throw new SecretsError(this.name, 'fetch', undefined, {
|
|
184
|
+
reason: `No authentication method available. Provide a token (${this.env.names('TOKEN')}), ` +
|
|
185
|
+
`AppRole credentials (${this.env.names('ROLE_ID')} + ${this.env.names('SECRET_ID')}), ` +
|
|
186
|
+
`or a role and JWT for authMethod "kubernetes" / "jwt".`,
|
|
187
|
+
...this.location(),
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/** Logs in once (concurrent callers share the same login) unless a token is already held. */
|
|
191
|
+
async ensureAuthenticated() {
|
|
192
|
+
const method = this.resolveAuthMethod();
|
|
193
|
+
if (method === 'token') {
|
|
194
|
+
if (!this.token) {
|
|
195
|
+
throw new SecretsError(this.name, 'fetch', undefined, {
|
|
196
|
+
reason: `authMethod "token" selected but no token is set (${this.env.names('TOKEN')}).`,
|
|
197
|
+
...this.location(),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
if (this.token)
|
|
203
|
+
return;
|
|
204
|
+
this.login ??= this.authenticate(method).catch((error) => {
|
|
205
|
+
this.login = undefined; // allow a retry after a failed login
|
|
206
|
+
throw error;
|
|
207
|
+
});
|
|
208
|
+
await this.login;
|
|
209
|
+
}
|
|
210
|
+
async authenticate(method) {
|
|
211
|
+
let body;
|
|
212
|
+
if (method === 'approle') {
|
|
213
|
+
if (!this.roleId) {
|
|
214
|
+
throw this.authError(method, `role_id is required (${this.env.names('ROLE_ID')})`);
|
|
215
|
+
}
|
|
216
|
+
body = { role_id: this.roleId };
|
|
217
|
+
if (this.secretId)
|
|
218
|
+
body.secret_id = this.secretId;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
const jwt = this.readJwt(method);
|
|
222
|
+
if (method === 'kubernetes' && !this.role) {
|
|
223
|
+
throw this.authError(method, `role is required (${this.env.names('AUTH_ROLE')})`);
|
|
224
|
+
}
|
|
225
|
+
body = { jwt };
|
|
226
|
+
if (this.role)
|
|
227
|
+
body.role = this.role;
|
|
228
|
+
}
|
|
229
|
+
const mount = this.authMount ?? method;
|
|
230
|
+
const url = `${this.url}/v1/auth/${mount}/login`;
|
|
231
|
+
let response;
|
|
232
|
+
try {
|
|
233
|
+
response = await this.send('POST', url, this.buildHeaders(false), JSON.stringify(body));
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
throw new SecretsError(this.name, 'fetch', undefined, { reason: `${method} login failed: ${this.redact(errorReason(error))}`, authMount: mount, ...this.location() }, error);
|
|
237
|
+
}
|
|
238
|
+
if (!response.ok) {
|
|
239
|
+
throw this.authError(method, `login returned ${response.status}: ${this.redact(response.text)}`, mount);
|
|
240
|
+
}
|
|
241
|
+
const token = this.parseJson(response.text)?.auth?.client_token;
|
|
242
|
+
if (!token) {
|
|
243
|
+
throw this.authError(method, 'login response missing auth.client_token', mount);
|
|
244
|
+
}
|
|
245
|
+
this.token = token;
|
|
246
|
+
this.sensitive.add(token);
|
|
247
|
+
}
|
|
248
|
+
readJwt(method) {
|
|
249
|
+
if (this.jwt)
|
|
250
|
+
return this.jwt;
|
|
251
|
+
const path = this.jwtPath ?? (method === 'kubernetes' ? KUBERNETES_SA_TOKEN_PATH : undefined);
|
|
252
|
+
if (!path) {
|
|
253
|
+
throw this.authError(method, `a JWT is required (${this.env.names('JWT')} or ${this.env.names('JWT_PATH')})`);
|
|
254
|
+
}
|
|
255
|
+
let jwt;
|
|
256
|
+
try {
|
|
257
|
+
jwt = readFileSync(path, 'utf8').trim();
|
|
258
|
+
}
|
|
259
|
+
catch (error) {
|
|
260
|
+
throw new SecretsError(this.name, 'fetch', undefined, { reason: `${method} login: cannot read JWT file ${path}: ${error.code ?? 'error'}`, ...this.location() }, error);
|
|
261
|
+
}
|
|
262
|
+
if (!jwt) {
|
|
263
|
+
throw this.authError(method, `JWT file ${path} is empty`);
|
|
264
|
+
}
|
|
265
|
+
this.sensitive.add(jwt);
|
|
266
|
+
return jwt;
|
|
267
|
+
}
|
|
268
|
+
authError(method, reason, authMount) {
|
|
269
|
+
return new SecretsError(this.name, 'fetch', undefined, {
|
|
270
|
+
reason: `${method} login failed: ${reason}`,
|
|
271
|
+
...(authMount ? { authMount } : {}),
|
|
272
|
+
...this.location(),
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
async fetchSecretData(secretPath) {
|
|
276
|
+
// Encode each segment so nested keys like 'db/password' keep their slashes.
|
|
277
|
+
const encodedPath = secretPath.split('/').map(encodeURIComponent).join('/');
|
|
278
|
+
const url = `${this.url}/v1/${this.mountPath}/${encodedPath}`;
|
|
279
|
+
let response;
|
|
280
|
+
try {
|
|
281
|
+
response = await this.send('GET', url, this.buildHeaders(true));
|
|
282
|
+
}
|
|
283
|
+
catch (error) {
|
|
284
|
+
throw new SecretsError(this.name, 'fetch', secretPath, { reason: this.redact(errorReason(error)), ...this.location() }, error);
|
|
285
|
+
}
|
|
286
|
+
if (!response.ok) {
|
|
287
|
+
throw new SecretsError(this.name, 'fetch', secretPath, {
|
|
288
|
+
reason: `API returned ${response.status}: ${this.redact(response.text)}`,
|
|
289
|
+
...this.location(),
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
const body = this.parseJson(response.text);
|
|
293
|
+
const data = this.kvVersion === 2 ? body?.data?.data : body?.data;
|
|
294
|
+
if (!data || typeof data !== 'object') {
|
|
295
|
+
throw new SecretsError(this.name, 'fetch', secretPath, {
|
|
296
|
+
reason: this.kvVersion === 2
|
|
297
|
+
? 'Unexpected KV v2 response format (missing data.data). Does mountPath include the "data" segment?'
|
|
298
|
+
: 'Unexpected KV v1 response format (missing data)',
|
|
299
|
+
...this.location(),
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
return data;
|
|
303
|
+
}
|
|
304
|
+
parseJson(text) {
|
|
305
|
+
try {
|
|
306
|
+
return JSON.parse(text);
|
|
307
|
+
}
|
|
308
|
+
catch {
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
buildHeaders(includeToken) {
|
|
313
|
+
const headers = {
|
|
314
|
+
'Content-Type': 'application/json',
|
|
315
|
+
'X-Vault-Request': 'true',
|
|
316
|
+
};
|
|
317
|
+
if (includeToken && this.token) {
|
|
318
|
+
headers['X-Vault-Token'] = this.token;
|
|
319
|
+
}
|
|
320
|
+
if (this.namespace) {
|
|
321
|
+
headers['X-Vault-Namespace'] = this.namespace;
|
|
322
|
+
}
|
|
323
|
+
return headers;
|
|
324
|
+
}
|
|
325
|
+
buildTlsOptions(providerName, options) {
|
|
326
|
+
const env = this.env;
|
|
327
|
+
const caCert = env.get(options.caCert, 'CACERT');
|
|
328
|
+
const caPath = env.get(options.caPath, 'CAPATH');
|
|
329
|
+
const clientCert = env.get(options.clientCert, 'CLIENT_CERT');
|
|
330
|
+
const clientKey = env.get(options.clientKey, 'CLIENT_KEY');
|
|
331
|
+
const servername = env.get(options.tlsServerName, 'TLS_SERVER_NAME');
|
|
332
|
+
const skipVerify = options.skipVerify ?? parseBool(env.get(undefined, 'SKIP_VERIFY'));
|
|
333
|
+
if (!caCert && !caPath && !clientCert && !clientKey && !servername && !skipVerify) {
|
|
334
|
+
return undefined;
|
|
335
|
+
}
|
|
336
|
+
if (Boolean(clientCert) !== Boolean(clientKey)) {
|
|
337
|
+
throw new SecretsError(providerName, 'resolve', undefined, {
|
|
338
|
+
reason: 'clientCert and clientKey must be set together for mutual TLS',
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
const read = (file, what) => {
|
|
342
|
+
try {
|
|
343
|
+
return readFileSync(file, 'utf8');
|
|
344
|
+
}
|
|
345
|
+
catch (error) {
|
|
346
|
+
throw new SecretsError(providerName, 'resolve', undefined, { reason: `Cannot read ${what} ${file}: ${error.code ?? 'error'}` }, error);
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
const tls = {};
|
|
350
|
+
if (caCert) {
|
|
351
|
+
tls.ca = read(caCert, 'CA certificate');
|
|
352
|
+
}
|
|
353
|
+
else if (caPath) {
|
|
354
|
+
let files;
|
|
355
|
+
try {
|
|
356
|
+
files = readdirSync(caPath).filter((f) => /\.(pem|crt|cer)$/i.test(f));
|
|
357
|
+
}
|
|
358
|
+
catch (error) {
|
|
359
|
+
throw new SecretsError(providerName, 'resolve', undefined, { reason: `Cannot read CA directory ${caPath}: ${error.code ?? 'error'}` }, error);
|
|
360
|
+
}
|
|
361
|
+
tls.ca = files.map((f) => read(join(caPath, f), 'CA certificate'));
|
|
362
|
+
}
|
|
363
|
+
if (clientCert && clientKey) {
|
|
364
|
+
tls.cert = read(clientCert, 'client certificate');
|
|
365
|
+
const key = read(clientKey, 'client key');
|
|
366
|
+
tls.key = key;
|
|
367
|
+
this.sensitive.add(key);
|
|
368
|
+
}
|
|
369
|
+
if (servername)
|
|
370
|
+
tls.servername = servername;
|
|
371
|
+
if (skipVerify)
|
|
372
|
+
tls.rejectUnauthorized = false;
|
|
373
|
+
return tls;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Sends a request. Uses the global `fetch` unless TLS options are configured
|
|
377
|
+
* for an https URL, in which case `node:https` is used with a dedicated agent
|
|
378
|
+
* (native fetch cannot take a CA or client certificate without undici).
|
|
379
|
+
*/
|
|
380
|
+
async send(method, url, headers, body) {
|
|
381
|
+
if (!this.tls || !url.startsWith('https:')) {
|
|
382
|
+
const response = await fetch(url, { method, headers, body });
|
|
383
|
+
const text = await response.text().catch(() => '');
|
|
384
|
+
return { status: response.status, ok: response.ok, text };
|
|
385
|
+
}
|
|
386
|
+
this.agent ??= new HttpsAgent(this.tls);
|
|
387
|
+
const agent = this.agent;
|
|
388
|
+
return new Promise((resolve, reject) => {
|
|
389
|
+
const req = httpsRequest(url, { method, headers, agent }, (res) => {
|
|
390
|
+
const chunks = [];
|
|
391
|
+
res.on('data', (chunk) => chunks.push(chunk));
|
|
392
|
+
res.on('end', () => {
|
|
393
|
+
const status = res.statusCode ?? 0;
|
|
394
|
+
resolve({ status, ok: status >= 200 && status < 300, text: Buffer.concat(chunks).toString('utf8') });
|
|
395
|
+
});
|
|
396
|
+
res.on('error', reject);
|
|
397
|
+
});
|
|
398
|
+
req.on('error', reject);
|
|
399
|
+
if (body !== undefined)
|
|
400
|
+
req.write(body);
|
|
401
|
+
req.end();
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
//# sourceMappingURL=vault-compatible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault-compatible.js","sourceRoot":"","sources":["../../../../src/secrets/providers/vault-compatible.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,UAAU,EAAE,OAAO,IAAI,YAAY,EAAqB,MAAM,YAAY,CAAC;AAE7F,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,6EAA6E;AAC7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,qDAAqD,CAAC;AAE9F,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,QAAQ,GAAG,YAAY,CAAC;AAC9B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAkF5B;;;GAGG;AACH,MAAM,OAAO,WAAW;IAEC,QAAQ;IACR,GAAG;IAFxB,YACqB,QAA2B,EAC3B,GAAG,GAAsB,OAAO,CAAC,GAAG;wBADpC,QAAQ;mBACR,GAAG;IACrB,CAAC;IAEJ,GAAG,CAAC,QAA4B,EAAE,MAAc;QAC5C,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,EAAE;YAAE,OAAO,QAAQ,CAAC;QAC/D,KAAK,MAAM,MAAM,IAAI,IAAI,CAA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via the HTTP API (KV v1 or v2 secrets engine)
|
|
5
|
+
* using the native `fetch` API (or `node:https` when TLS options are set).
|
|
6
|
+
*
|
|
7
|
+
* Authentication: token, AppRole, Kubernetes or JWT. Supports Vault Enterprise
|
|
8
|
+
* namespaces and custom TLS (CA, mutual TLS, SNI, skip-verify).
|
|
9
|
+
*
|
|
10
|
+
* Options fall back to `VAULT_*` environment variables (`VAULT_ADDR`, `VAULT_TOKEN`,
|
|
11
|
+
* `VAULT_NAMESPACE`, `VAULT_CACERT`, ...). The implementation is shared with the
|
|
12
|
+
* OpenBao provider; see `vault-compatible.ts`.
|
|
13
|
+
*/
|
|
14
|
+
import { VaultCompatibleProvider, type VaultCompatibleOptions } from './vault-compatible.js';
|
|
15
|
+
export interface VaultProviderOptions extends VaultCompatibleOptions {
|
|
16
|
+
/** Vault server URL (e.g., 'https://vault.example.com'). Env: `VAULT_ADDR`. */
|
|
17
|
+
url: string;
|
|
18
|
+
/** Path prefix for secrets; for KV v2 include `data` (e.g., 'secret/data/playwright'). */
|
|
19
|
+
mountPath: string;
|
|
20
|
+
}
|
|
21
|
+
/** Environment variable prefixes the Vault provider reads, in order. */
|
|
22
|
+
export declare const VAULT_ENV_PREFIXES: readonly ['VAULT_'];
|
|
23
|
+
export declare class VaultSecretsProvider extends VaultCompatibleProvider {
|
|
24
|
+
readonly name = "vault";
|
|
25
|
+
constructor(options: VaultProviderOptions);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=vault.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.provider.d.ts","sourceRoot":"","sources":["../../../../src/secrets/providers/vault.provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,uBAAuB,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE7F,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAChE,+EAA+E;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,0FAA0F;IAC1F,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,YAAI,QAAQ,CAAU,CAAC;AAEtD,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC7D,QAAQ,CAAC,IAAI,WAAW;IAExB,YAAY,OAAO,EAAE,oBAAoB,EAExC;CACJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HashiCorp Vault provider.
|
|
3
|
+
*
|
|
4
|
+
* Retrieves secrets from HashiCorp Vault via the HTTP API (KV v1 or v2 secrets engine)
|
|
5
|
+
* using the native `fetch` API (or `node:https` when TLS options are set).
|
|
6
|
+
*
|
|
7
|
+
* Authentication: token, AppRole, Kubernetes or JWT. Supports Vault Enterprise
|
|
8
|
+
* namespaces and custom TLS (CA, mutual TLS, SNI, skip-verify).
|
|
9
|
+
*
|
|
10
|
+
* Options fall back to `VAULT_*` environment variables (`VAULT_ADDR`, `VAULT_TOKEN`,
|
|
11
|
+
* `VAULT_NAMESPACE`, `VAULT_CACERT`, ...). The implementation is shared with the
|
|
12
|
+
* OpenBao provider; see `vault-compatible.ts`.
|
|
13
|
+
*/
|
|
14
|
+
import { VaultCompatibleProvider } from './vault-compatible.js';
|
|
15
|
+
/** Environment variable prefixes the Vault provider reads, in order. */
|
|
16
|
+
export const VAULT_ENV_PREFIXES = ['VAULT_'];
|
|
17
|
+
export class VaultSecretsProvider extends VaultCompatibleProvider {
|
|
18
|
+
name = 'vault';
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super('vault', options, VAULT_ENV_PREFIXES);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=vault.provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.provider.js","sourceRoot":"","sources":["../../../../src/secrets/providers/vault.provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,uBAAuB,EAA+B,MAAM,uBAAuB,CAAC;AAS7F,wEAAwE;AACxE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,QAAQ,CAAU,CAAC;AAEtD,MAAM,OAAO,oBAAqB,SAAQ,uBAAuB;IACpD,IAAI,GAAG,OAAO,CAAC;IAExB,YAAY,OAA6B;QACrC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC;IAChD,CAAC;CACJ"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SecretsManager — resolves, caches, and injects secrets into framework configuration.
|
|
3
|
+
*
|
|
4
|
+
* Responsibilities:
|
|
5
|
+
* - Resolves which provider to use based on `secrets.provider` in the config
|
|
6
|
+
* - Fetches secrets from the configured provider backend with timeout enforcement
|
|
7
|
+
* - Caches all fetched secrets for the entire test runner invocation (singleton)
|
|
8
|
+
* - Injects resolved secret values into FrameworkConfig via key mappings
|
|
9
|
+
* - Throws SecretsError for unrecognized providers, fetch failures, timeouts, or invalid mappings
|
|
10
|
+
*/
|
|
11
|
+
import { FrameworkConfig } from '../config/schema.js';
|
|
12
|
+
import type { SecretsProvider } from './provider.interface.js';
|
|
13
|
+
export declare class SecretsManager {
|
|
14
|
+
private providers;
|
|
15
|
+
private cache;
|
|
16
|
+
/**
|
|
17
|
+
* Register a secrets provider backend.
|
|
18
|
+
* The provider's name is used to match against `secrets.provider` in config.
|
|
19
|
+
*/
|
|
20
|
+
registerProvider(provider: SecretsProvider): void;
|
|
21
|
+
/**
|
|
22
|
+
* Resolve secrets and inject them into the framework configuration.
|
|
23
|
+
*
|
|
24
|
+
* 1. Determines the provider from `config.secrets.provider`
|
|
25
|
+
* 2. Fetches all secrets defined in `keyMappings`
|
|
26
|
+
* 3. Injects fetched values into the config at the mapped paths
|
|
27
|
+
*
|
|
28
|
+
* @param config - The framework configuration to resolve secrets for
|
|
29
|
+
* @returns The config with secrets injected
|
|
30
|
+
* @throws SecretsError if provider is unrecognized, fetch fails, or mapping is invalid
|
|
31
|
+
*/
|
|
32
|
+
resolve(config: FrameworkConfig): Promise<FrameworkConfig>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a single secret value by key.
|
|
35
|
+
* Returns cached value if available; otherwise fetches from the provider.
|
|
36
|
+
*
|
|
37
|
+
* @param key - The secret key to retrieve
|
|
38
|
+
* @param providerName - Optional provider name override (defaults to first registered)
|
|
39
|
+
* @param timeout - Optional timeout in ms (defaults to 10s)
|
|
40
|
+
* @returns The secret value
|
|
41
|
+
*/
|
|
42
|
+
getSecret(key: string, providerName?: string, timeout?: number): Promise<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Fetch multiple secret values by keys.
|
|
45
|
+
* Returns cached values where available; fetches remaining from the provider.
|
|
46
|
+
*
|
|
47
|
+
* @param keys - Array of secret keys to retrieve
|
|
48
|
+
* @param providerName - Optional provider name override (defaults to first registered)
|
|
49
|
+
* @param timeout - Optional timeout in ms (defaults to 10s)
|
|
50
|
+
* @returns A map of key → secret value pairs
|
|
51
|
+
*/
|
|
52
|
+
getSecrets(keys: string[], providerName?: string, timeout?: number): Promise<Map<string, string>>;
|
|
53
|
+
/**
|
|
54
|
+
* Get the list of registered provider names.
|
|
55
|
+
*/
|
|
56
|
+
getRegisteredProviders(): string[];
|
|
57
|
+
/**
|
|
58
|
+
* Fetch secrets using cache-first strategy.
|
|
59
|
+
* Only fetches uncached keys from the provider.
|
|
60
|
+
*/
|
|
61
|
+
private fetchSecrets;
|
|
62
|
+
/**
|
|
63
|
+
* Get a provider by name. Throws SecretsError if not found.
|
|
64
|
+
*/
|
|
65
|
+
private getProvider;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=secrets-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secrets-manager.d.ts","sourceRoot":"","sources":["../../../src/secrets/secrets-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,eAAe,EAAiB,MAAM,qBAAqB,CAAC;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAkF/D,qBAAa,cAAc;IACvB,OAAO,CAAC,SAAS,CAA2C;IAC5D,OAAO,CAAC,KAAK,CAAkC;IAE/C;;;OAGG;IACH,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,CAEhD;IAED;;;;;;;;;;OAUG;IACG,OAAO,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAoC/D;IAED;;;;;;;;OAQG;IACG,SAAS,CACX,GAAG,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,GAAE,MAA2B,GACrC,OAAO,CAAC,MAAM,CAAC,CA8BjB;IAED;;;;;;;;OAQG;IACG,UAAU,CACZ,IAAI,EAAE,MAAM,EAAE,EACd,YAAY,CAAC,EAAE,MAAM,EACrB,OAAO,GAAE,MAA2B,GACrC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAkD9B;IAED;;OAEG;IACH,sBAAsB,IAAI,MAAM,EAAE,CAEjC;IAED;;;OAGG;YACW,YAAY;IAmD1B;;OAEG;IACH,OAAO,CAAC,WAAW;CAsBtB"}
|