@stigmer/server 3.15.3-dev.20260914121148 → 3.16.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/README.md +3 -3
- package/dist/archive/content-store.d.ts +35 -0
- package/dist/archive/content-store.d.ts.map +1 -0
- package/dist/archive/content-store.js +98 -0
- package/dist/archive/content-store.js.map +1 -0
- package/dist/archive/inflate.d.ts +22 -0
- package/dist/archive/inflate.d.ts.map +1 -0
- package/dist/archive/inflate.js +75 -0
- package/dist/archive/inflate.js.map +1 -0
- package/dist/archive/limits.d.ts +33 -0
- package/dist/archive/limits.d.ts.map +1 -0
- package/dist/archive/limits.js +31 -0
- package/dist/archive/limits.js.map +1 -0
- package/dist/archive/open.d.ts +24 -0
- package/dist/archive/open.d.ts.map +1 -0
- package/dist/archive/open.js +93 -0
- package/dist/archive/open.js.map +1 -0
- package/dist/{domain/skill/storage → archive}/prefilter.d.ts +5 -0
- package/dist/archive/prefilter.d.ts.map +1 -0
- package/dist/archive/prefilter.js.map +1 -0
- package/dist/archive/write.d.ts +8 -0
- package/dist/archive/write.d.ts.map +1 -0
- package/dist/archive/write.js +44 -0
- package/dist/archive/write.js.map +1 -0
- package/dist/authorization/authorizer.d.ts +98 -0
- package/dist/authorization/authorizer.d.ts.map +1 -0
- package/dist/authorization/authorizer.js +156 -0
- package/dist/authorization/authorizer.js.map +1 -0
- package/dist/authorization/derived-tuples.d.ts +42 -0
- package/dist/authorization/derived-tuples.d.ts.map +1 -0
- package/dist/authorization/derived-tuples.js +240 -0
- package/dist/authorization/derived-tuples.js.map +1 -0
- package/dist/authorization/evaluator.d.ts +66 -0
- package/dist/authorization/evaluator.d.ts.map +1 -0
- package/dist/authorization/evaluator.js +153 -0
- package/dist/authorization/evaluator.js.map +1 -0
- package/dist/authorization/facts.d.ts +29 -0
- package/dist/authorization/facts.d.ts.map +1 -0
- package/dist/authorization/facts.js +17 -0
- package/dist/authorization/facts.js.map +1 -0
- package/dist/authorization/lane-admission.d.ts +50 -0
- package/dist/authorization/lane-admission.d.ts.map +1 -0
- package/dist/authorization/lane-admission.js +13 -0
- package/dist/authorization/lane-admission.js.map +1 -0
- package/dist/authorization/list-read-scope.d.ts +18 -0
- package/dist/authorization/list-read-scope.d.ts.map +1 -0
- package/dist/authorization/list-read-scope.js +155 -0
- package/dist/authorization/list-read-scope.js.map +1 -0
- package/dist/authorization/model/agent.d.ts +2 -0
- package/dist/authorization/model/agent.d.ts.map +1 -0
- package/dist/authorization/model/agent.js +42 -0
- package/dist/authorization/model/agent.js.map +1 -0
- package/dist/authorization/model/agent_channel.d.ts +2 -0
- package/dist/authorization/model/agent_channel.d.ts.map +1 -0
- package/dist/authorization/model/agent_channel.js +38 -0
- package/dist/authorization/model/agent_channel.js.map +1 -0
- package/dist/authorization/model/agent_execution.d.ts +2 -0
- package/dist/authorization/model/agent_execution.d.ts.map +1 -0
- package/dist/authorization/model/agent_execution.js +25 -0
- package/dist/authorization/model/agent_execution.js.map +1 -0
- package/dist/authorization/model/agent_instance.d.ts +2 -0
- package/dist/authorization/model/agent_instance.d.ts.map +1 -0
- package/dist/authorization/model/agent_instance.js +47 -0
- package/dist/authorization/model/agent_instance.js.map +1 -0
- package/dist/authorization/model/agent_share.d.ts +2 -0
- package/dist/authorization/model/agent_share.d.ts.map +1 -0
- package/dist/authorization/model/agent_share.js +29 -0
- package/dist/authorization/model/agent_share.js.map +1 -0
- package/dist/authorization/model/api_key.d.ts +2 -0
- package/dist/authorization/model/api_key.d.ts.map +1 -0
- package/dist/authorization/model/api_key.js +27 -0
- package/dist/authorization/model/api_key.js.map +1 -0
- package/dist/authorization/model/artifact.d.ts +2 -0
- package/dist/authorization/model/artifact.d.ts.map +1 -0
- package/dist/authorization/model/artifact.js +27 -0
- package/dist/authorization/model/artifact.js.map +1 -0
- package/dist/authorization/model/channel_app.d.ts +2 -0
- package/dist/authorization/model/channel_app.d.ts.map +1 -0
- package/dist/authorization/model/channel_app.js +28 -0
- package/dist/authorization/model/channel_app.js.map +1 -0
- package/dist/authorization/model/default-of.d.ts +38 -0
- package/dist/authorization/model/default-of.d.ts.map +1 -0
- package/dist/authorization/model/default-of.js +39 -0
- package/dist/authorization/model/default-of.js.map +1 -0
- package/dist/authorization/model/environment.d.ts +2 -0
- package/dist/authorization/model/environment.d.ts.map +1 -0
- package/dist/authorization/model/environment.js +33 -0
- package/dist/authorization/model/environment.js.map +1 -0
- package/dist/authorization/model/execution_context.d.ts +2 -0
- package/dist/authorization/model/execution_context.d.ts.map +1 -0
- package/dist/authorization/model/execution_context.js +19 -0
- package/dist/authorization/model/execution_context.js.map +1 -0
- package/dist/authorization/model/iam_policy.d.ts +2 -0
- package/dist/authorization/model/iam_policy.d.ts.map +1 -0
- package/dist/authorization/model/iam_policy.js +31 -0
- package/dist/authorization/model/iam_policy.js.map +1 -0
- package/dist/authorization/model/identity_account.d.ts +2 -0
- package/dist/authorization/model/identity_account.d.ts.map +1 -0
- package/dist/authorization/model/identity_account.js +25 -0
- package/dist/authorization/model/identity_account.js.map +1 -0
- package/dist/authorization/model/index.d.ts +36 -0
- package/dist/authorization/model/index.d.ts.map +1 -0
- package/dist/authorization/model/index.js +72 -0
- package/dist/authorization/model/index.js.map +1 -0
- package/dist/authorization/model/mcp_server.d.ts +2 -0
- package/dist/authorization/model/mcp_server.d.ts.map +1 -0
- package/dist/authorization/model/mcp_server.js +37 -0
- package/dist/authorization/model/mcp_server.js.map +1 -0
- package/dist/authorization/model/memory.d.ts +2 -0
- package/dist/authorization/model/memory.d.ts.map +1 -0
- package/dist/authorization/model/memory.js +26 -0
- package/dist/authorization/model/memory.js.map +1 -0
- package/dist/authorization/model/oauth_app.d.ts +2 -0
- package/dist/authorization/model/oauth_app.d.ts.map +1 -0
- package/dist/authorization/model/oauth_app.js +30 -0
- package/dist/authorization/model/oauth_app.js.map +1 -0
- package/dist/authorization/model/organization.d.ts +2 -0
- package/dist/authorization/model/organization.d.ts.map +1 -0
- package/dist/authorization/model/organization.js +54 -0
- package/dist/authorization/model/organization.js.map +1 -0
- package/dist/authorization/model/plugin.d.ts +2 -0
- package/dist/authorization/model/plugin.d.ts.map +1 -0
- package/dist/authorization/model/plugin.js +44 -0
- package/dist/authorization/model/plugin.js.map +1 -0
- package/dist/authorization/model/project.d.ts +2 -0
- package/dist/authorization/model/project.d.ts.map +1 -0
- package/dist/authorization/model/project.js +32 -0
- package/dist/authorization/model/project.js.map +1 -0
- package/dist/authorization/model/rewrite.d.ts +127 -0
- package/dist/authorization/model/rewrite.d.ts.map +1 -0
- package/dist/authorization/model/rewrite.js +82 -0
- package/dist/authorization/model/rewrite.js.map +1 -0
- package/dist/authorization/model/schedule.d.ts +2 -0
- package/dist/authorization/model/schedule.d.ts.map +1 -0
- package/dist/authorization/model/schedule.js +29 -0
- package/dist/authorization/model/schedule.js.map +1 -0
- package/dist/authorization/model/session.d.ts +2 -0
- package/dist/authorization/model/session.d.ts.map +1 -0
- package/dist/authorization/model/session.js +38 -0
- package/dist/authorization/model/session.js.map +1 -0
- package/dist/authorization/model/skill.d.ts +2 -0
- package/dist/authorization/model/skill.d.ts.map +1 -0
- package/dist/authorization/model/skill.js +38 -0
- package/dist/authorization/model/skill.js.map +1 -0
- package/dist/authorization/model/workflow.d.ts +2 -0
- package/dist/authorization/model/workflow.d.ts.map +1 -0
- package/dist/authorization/model/workflow.js +38 -0
- package/dist/authorization/model/workflow.js.map +1 -0
- package/dist/authorization/model/workflow_execution.d.ts +2 -0
- package/dist/authorization/model/workflow_execution.d.ts.map +1 -0
- package/dist/authorization/model/workflow_execution.js +32 -0
- package/dist/authorization/model/workflow_execution.js.map +1 -0
- package/dist/authorization/model/workflow_instance.d.ts +2 -0
- package/dist/authorization/model/workflow_instance.d.ts.map +1 -0
- package/dist/authorization/model/workflow_instance.js +92 -0
- package/dist/authorization/model/workflow_instance.js.map +1 -0
- package/dist/authorization/organization-directory.d.ts +13 -0
- package/dist/authorization/organization-directory.d.ts.map +1 -0
- package/dist/authorization/organization-directory.js +83 -0
- package/dist/authorization/organization-directory.js.map +1 -0
- package/dist/authorization/person.d.ts +42 -0
- package/dist/authorization/person.d.ts.map +1 -0
- package/dist/authorization/person.js +19 -0
- package/dist/authorization/person.js.map +1 -0
- package/dist/authorization/posture.d.ts +38 -0
- package/dist/authorization/posture.d.ts.map +1 -0
- package/dist/authorization/posture.js +7 -0
- package/dist/authorization/posture.js.map +1 -0
- package/dist/authorization/schedule-fire-caller.d.ts +12 -0
- package/dist/authorization/schedule-fire-caller.d.ts.map +1 -0
- package/dist/authorization/schedule-fire-caller.js +67 -0
- package/dist/authorization/schedule-fire-caller.js.map +1 -0
- package/dist/authorization/store-test-kit.d.ts +68 -0
- package/dist/authorization/store-test-kit.d.ts.map +1 -0
- package/dist/authorization/store-test-kit.js +311 -0
- package/dist/authorization/store-test-kit.js.map +1 -0
- package/dist/authorization/tuples.d.ts +115 -0
- package/dist/authorization/tuples.d.ts.map +1 -0
- package/dist/authorization/tuples.js +83 -0
- package/dist/authorization/tuples.js.map +1 -0
- package/dist/boot/compose.d.ts.map +1 -1
- package/dist/boot/compose.js +220 -43
- package/dist/boot/compose.js.map +1 -1
- package/dist/boot/inprocess.d.ts +12 -0
- package/dist/boot/inprocess.d.ts.map +1 -1
- package/dist/boot/inprocess.js +68 -21
- package/dist/boot/inprocess.js.map +1 -1
- package/dist/domain/agent/controller.d.ts.map +1 -1
- package/dist/domain/agent/controller.js +9 -0
- package/dist/domain/agent/controller.js.map +1 -1
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts +33 -14
- package/dist/domain/executioncontext/resolve-values-for-caller.d.ts.map +1 -1
- package/dist/domain/executioncontext/resolve-values-for-caller.js +32 -8
- package/dist/domain/executioncontext/resolve-values-for-caller.js.map +1 -1
- package/dist/domain/iampolicy/constants.d.ts +11 -0
- package/dist/domain/iampolicy/constants.d.ts.map +1 -1
- package/dist/domain/iampolicy/constants.js +11 -0
- package/dist/domain/iampolicy/constants.js.map +1 -1
- package/dist/domain/iampolicy/membership.d.ts +72 -1
- package/dist/domain/iampolicy/membership.d.ts.map +1 -1
- package/dist/domain/iampolicy/membership.js +141 -56
- package/dist/domain/iampolicy/membership.js.map +1 -1
- package/dist/domain/identityaccount/actor.d.ts +41 -0
- package/dist/domain/identityaccount/actor.d.ts.map +1 -0
- package/dist/domain/identityaccount/actor.js +34 -0
- package/dist/domain/identityaccount/actor.js.map +1 -0
- package/dist/domain/identityaccount/resolve.d.ts +19 -0
- package/dist/domain/identityaccount/resolve.d.ts.map +1 -1
- package/dist/domain/identityaccount/resolve.js +12 -0
- package/dist/domain/identityaccount/resolve.js.map +1 -1
- package/dist/domain/mcpserver/connect-execution-id.d.ts +5 -0
- package/dist/domain/mcpserver/connect-execution-id.d.ts.map +1 -0
- package/dist/domain/mcpserver/connect-execution-id.js +32 -0
- package/dist/domain/mcpserver/connect-execution-id.js.map +1 -0
- package/dist/domain/mcpserver/connect.d.ts +28 -2
- package/dist/domain/mcpserver/connect.d.ts.map +1 -1
- package/dist/domain/mcpserver/connect.js +27 -7
- package/dist/domain/mcpserver/connect.js.map +1 -1
- package/dist/domain/mcpserver/controller.d.ts.map +1 -1
- package/dist/domain/mcpserver/controller.js +9 -0
- package/dist/domain/mcpserver/controller.js.map +1 -1
- package/dist/domain/mcpserver/engine.d.ts +9 -3
- package/dist/domain/mcpserver/engine.d.ts.map +1 -1
- package/dist/domain/mcpserver/engine.js.map +1 -1
- package/dist/domain/mcpserver/start-connect.js +1 -1
- package/dist/domain/mcpserver/start-connect.js.map +1 -1
- package/dist/domain/platform/controller.d.ts +24 -11
- package/dist/domain/platform/controller.d.ts.map +1 -1
- package/dist/domain/platform/controller.js.map +1 -1
- package/dist/domain/plugin/archive.d.ts +37 -0
- package/dist/domain/plugin/archive.d.ts.map +1 -0
- package/dist/domain/plugin/archive.js +50 -0
- package/dist/domain/plugin/archive.js.map +1 -0
- package/dist/domain/plugin/constants.d.ts +38 -0
- package/dist/domain/plugin/constants.d.ts.map +1 -0
- package/dist/domain/plugin/constants.js +46 -0
- package/dist/domain/plugin/constants.js.map +1 -0
- package/dist/domain/plugin/controller.d.ts +25 -0
- package/dist/domain/plugin/controller.d.ts.map +1 -0
- package/dist/domain/plugin/controller.js +493 -0
- package/dist/domain/plugin/controller.js.map +1 -0
- package/dist/domain/plugin/materialize/agent.d.ts +13 -0
- package/dist/domain/plugin/materialize/agent.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/agent.js +128 -0
- package/dist/domain/plugin/materialize/agent.js.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts +22 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js +31 -0
- package/dist/domain/plugin/materialize/default-agent-instructions.js.map +1 -0
- package/dist/domain/plugin/materialize/identity.d.ts +28 -0
- package/dist/domain/plugin/materialize/identity.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/identity.js +40 -0
- package/dist/domain/plugin/materialize/identity.js.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts +15 -0
- package/dist/domain/plugin/materialize/mcp-servers.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/mcp-servers.js +131 -0
- package/dist/domain/plugin/materialize/mcp-servers.js.map +1 -0
- package/dist/domain/plugin/materialize/plan.d.ts +24 -0
- package/dist/domain/plugin/materialize/plan.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/plan.js +77 -0
- package/dist/domain/plugin/materialize/plan.js.map +1 -0
- package/dist/domain/plugin/materialize/ports.d.ts +42 -0
- package/dist/domain/plugin/materialize/ports.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/ports.js +2 -0
- package/dist/domain/plugin/materialize/ports.js.map +1 -0
- package/dist/domain/plugin/materialize/skills.d.ts +12 -0
- package/dist/domain/plugin/materialize/skills.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/skills.js +44 -0
- package/dist/domain/plugin/materialize/skills.js.map +1 -0
- package/dist/domain/plugin/materialize/workflows.d.ts +15 -0
- package/dist/domain/plugin/materialize/workflows.d.ts.map +1 -0
- package/dist/domain/plugin/materialize/workflows.js +31 -0
- package/dist/domain/plugin/materialize/workflows.js.map +1 -0
- package/dist/domain/plugin/members.d.ts +42 -0
- package/dist/domain/plugin/members.d.ts.map +1 -0
- package/dist/domain/plugin/members.js +97 -0
- package/dist/domain/plugin/members.js.map +1 -0
- package/dist/domain/plugin/overlay/documents.d.ts +31 -0
- package/dist/domain/plugin/overlay/documents.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/documents.js +38 -0
- package/dist/domain/plugin/overlay/documents.js.map +1 -0
- package/dist/domain/plugin/overlay/parse.d.ts +16 -0
- package/dist/domain/plugin/overlay/parse.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/parse.js +79 -0
- package/dist/domain/plugin/overlay/parse.js.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts +10 -0
- package/dist/domain/plugin/overlay/sanitize.d.ts.map +1 -0
- package/dist/domain/plugin/overlay/sanitize.js +103 -0
- package/dist/domain/plugin/overlay/sanitize.js.map +1 -0
- package/dist/domain/plugin/push.d.ts +133 -0
- package/dist/domain/plugin/push.d.ts.map +1 -0
- package/dist/domain/plugin/push.js +800 -0
- package/dist/domain/plugin/push.js.map +1 -0
- package/dist/domain/plugin/search-extractor.d.ts +3 -0
- package/dist/domain/plugin/search-extractor.d.ts.map +1 -0
- package/dist/domain/plugin/search-extractor.js +41 -0
- package/dist/domain/plugin/search-extractor.js.map +1 -0
- package/dist/domain/skill/constants.d.ts +6 -11
- package/dist/domain/skill/constants.d.ts.map +1 -1
- package/dist/domain/skill/constants.js +6 -11
- package/dist/domain/skill/constants.js.map +1 -1
- package/dist/domain/skill/controller.d.ts.map +1 -1
- package/dist/domain/skill/controller.js +33 -30
- package/dist/domain/skill/controller.js.map +1 -1
- package/dist/domain/skill/push.d.ts +9 -10
- package/dist/domain/skill/push.d.ts.map +1 -1
- package/dist/domain/skill/push.js +53 -122
- package/dist/domain/skill/push.js.map +1 -1
- package/dist/domain/skill/search-extractor.d.ts.map +1 -1
- package/dist/domain/skill/search-extractor.js.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.d.ts +26 -29
- package/dist/domain/skill/storage/artifact-storage.d.ts.map +1 -1
- package/dist/domain/skill/storage/artifact-storage.js +6 -103
- package/dist/domain/skill/storage/artifact-storage.js.map +1 -1
- package/dist/domain/skill/storage/zip-gate.d.ts +1 -2
- package/dist/domain/skill/storage/zip-gate.d.ts.map +1 -1
- package/dist/domain/skill/storage/zip-gate.js +56 -126
- package/dist/domain/skill/storage/zip-gate.js.map +1 -1
- package/dist/domain/skill/version-resolution.d.ts +5 -5
- package/dist/domain/skill/version-resolution.d.ts.map +1 -1
- package/dist/domain/skill/version-resolution.js +34 -216
- package/dist/domain/skill/version-resolution.js.map +1 -1
- package/dist/domain/workflow/controller.d.ts.map +1 -1
- package/dist/domain/workflow/controller.js +30 -3
- package/dist/domain/workflow/controller.js.map +1 -1
- package/dist/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/dist/domain/workflowexecution/phases.d.ts +21 -0
- package/dist/domain/workflowexecution/phases.d.ts.map +1 -0
- package/dist/domain/workflowexecution/phases.js +31 -0
- package/dist/domain/workflowexecution/phases.js.map +1 -0
- package/dist/extensions/authorizer.d.ts +10 -5
- package/dist/extensions/authorizer.d.ts.map +1 -1
- package/dist/extensions/drivers.d.ts +4 -1
- package/dist/extensions/drivers.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.d.ts +47 -20
- package/dist/extensions/list-read-scope.d.ts.map +1 -1
- package/dist/extensions/list-read-scope.js +20 -24
- package/dist/extensions/list-read-scope.js.map +1 -1
- package/dist/extensions/organization-directory.d.ts +13 -9
- package/dist/extensions/organization-directory.d.ts.map +1 -1
- package/dist/extensions/organization-directory.js.map +1 -1
- package/dist/extensions/resource-authorization.d.ts +33 -0
- package/dist/extensions/resource-authorization.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.d.ts +45 -18
- package/dist/extensions/schedule-fire-caller.d.ts.map +1 -1
- package/dist/extensions/schedule-fire-caller.js +12 -1
- package/dist/extensions/schedule-fire-caller.js.map +1 -1
- package/dist/identity/oidc-verifier.js +8 -1
- package/dist/identity/oidc-verifier.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/pipeline/apiresource-labels.d.ts +23 -3
- package/dist/pipeline/apiresource-labels.d.ts.map +1 -1
- package/dist/pipeline/apiresource-labels.js +20 -0
- package/dist/pipeline/apiresource-labels.js.map +1 -1
- package/dist/pipeline/apiresource-meta.d.ts +15 -0
- package/dist/pipeline/apiresource-meta.d.ts.map +1 -1
- package/dist/pipeline/apiresource-meta.js +34 -0
- package/dist/pipeline/apiresource-meta.js.map +1 -1
- package/dist/pipeline/errors.d.ts.map +1 -1
- package/dist/pipeline/errors.js.map +1 -1
- package/dist/pipeline/steps/authorization-facts.d.ts +12 -0
- package/dist/pipeline/steps/authorization-facts.d.ts.map +1 -0
- package/dist/pipeline/steps/authorization-facts.js +100 -0
- package/dist/pipeline/steps/authorization-facts.js.map +1 -0
- package/dist/pipeline/steps/delete.d.ts.map +1 -1
- package/dist/pipeline/steps/delete.js +1 -1
- package/dist/pipeline/steps/delete.js.map +1 -1
- package/dist/pipeline/steps/duplicate.d.ts.map +1 -1
- package/dist/pipeline/steps/duplicate.js.map +1 -1
- package/dist/pipeline/steps/guard-memory-capture.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-memory-capture.js +5 -3
- package/dist/pipeline/steps/guard-memory-capture.js.map +1 -1
- package/dist/pipeline/steps/guard-plugin-managed.d.ts +12 -0
- package/dist/pipeline/steps/guard-plugin-managed.d.ts.map +1 -0
- package/dist/pipeline/steps/guard-plugin-managed.js +96 -0
- package/dist/pipeline/steps/guard-plugin-managed.js.map +1 -0
- package/dist/pipeline/steps/guard-reserved-labels.d.ts +16 -2
- package/dist/pipeline/steps/guard-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/guard-reserved-labels.js +11 -7
- package/dist/pipeline/steps/guard-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/helpers.d.ts.map +1 -1
- package/dist/pipeline/steps/helpers.js.map +1 -1
- package/dist/pipeline/steps/index-search.d.ts.map +1 -1
- package/dist/pipeline/steps/index-search.js.map +1 -1
- package/dist/pipeline/steps/load-existing.d.ts.map +1 -1
- package/dist/pipeline/steps/load-existing.js +1 -1
- package/dist/pipeline/steps/load-existing.js.map +1 -1
- package/dist/pipeline/steps/references.d.ts +16 -0
- package/dist/pipeline/steps/references.d.ts.map +1 -1
- package/dist/pipeline/steps/references.js +18 -0
- package/dist/pipeline/steps/references.js.map +1 -1
- package/dist/pipeline/steps/resolve-artifact-source.d.ts +35 -0
- package/dist/pipeline/steps/resolve-artifact-source.d.ts.map +1 -0
- package/dist/pipeline/steps/resolve-artifact-source.js +27 -0
- package/dist/pipeline/steps/resolve-artifact-source.js.map +1 -0
- package/dist/pipeline/steps/server-stamped-reserved-labels.d.ts.map +1 -1
- package/dist/pipeline/steps/server-stamped-reserved-labels.js.map +1 -1
- package/dist/pipeline/steps/slug.d.ts.map +1 -1
- package/dist/pipeline/steps/slug.js.map +1 -1
- package/dist/pipeline/steps/validate-visibility.d.ts +9 -0
- package/dist/pipeline/steps/validate-visibility.d.ts.map +1 -1
- package/dist/pipeline/steps/validate-visibility.js +6 -1
- package/dist/pipeline/steps/validate-visibility.js.map +1 -1
- package/dist/pipeline/steps/validation.d.ts.map +1 -1
- package/dist/pipeline/steps/validation.js.map +1 -1
- package/dist/pipeline/steps/version-archive.d.ts +63 -0
- package/dist/pipeline/steps/version-archive.d.ts.map +1 -0
- package/dist/pipeline/steps/version-archive.js +129 -0
- package/dist/pipeline/steps/version-archive.js.map +1 -0
- package/dist/pipeline/steps/version-history.d.ts +49 -0
- package/dist/pipeline/steps/version-history.d.ts.map +1 -0
- package/dist/pipeline/steps/version-history.js +229 -0
- package/dist/pipeline/steps/version-history.js.map +1 -0
- package/dist/pipeline/steps/visibility-gates.d.ts +8 -0
- package/dist/pipeline/steps/visibility-gates.d.ts.map +1 -1
- package/dist/pipeline/steps/visibility-gates.js +7 -2
- package/dist/pipeline/steps/visibility-gates.js.map +1 -1
- package/dist/query/search/registry.d.ts.map +1 -1
- package/dist/query/search/registry.js +2 -0
- package/dist/query/search/registry.js.map +1 -1
- package/dist/runnerauth/bound-execution.d.ts +27 -0
- package/dist/runnerauth/bound-execution.d.ts.map +1 -0
- package/dist/runnerauth/bound-execution.js +137 -0
- package/dist/runnerauth/bound-execution.js.map +1 -0
- package/dist/runnerauth/built-in-runner-credential-provider.d.ts +28 -0
- package/dist/runnerauth/built-in-runner-credential-provider.d.ts.map +1 -0
- package/dist/runnerauth/built-in-runner-credential-provider.js +217 -0
- package/dist/runnerauth/built-in-runner-credential-provider.js.map +1 -0
- package/dist/runnerauth/constants.d.ts +63 -0
- package/dist/runnerauth/constants.d.ts.map +1 -0
- package/dist/runnerauth/constants.js +63 -0
- package/dist/runnerauth/constants.js.map +1 -0
- package/dist/runnerauth/dispatch-credential.d.ts +38 -0
- package/dist/runnerauth/dispatch-credential.d.ts.map +1 -0
- package/dist/runnerauth/dispatch-credential.js +17 -0
- package/dist/runnerauth/dispatch-credential.js.map +1 -0
- package/dist/runnerauth/runner-credential-provider.d.ts +49 -11
- package/dist/runnerauth/runner-credential-provider.d.ts.map +1 -1
- package/dist/runnerauth/runner-credential-provider.js +16 -4
- package/dist/runnerauth/runner-credential-provider.js.map +1 -1
- package/dist/runnerauth/runner-subject-verifier.d.ts +14 -0
- package/dist/runnerauth/runner-subject-verifier.d.ts.map +1 -0
- package/dist/runnerauth/runner-subject-verifier.js +115 -0
- package/dist/runnerauth/runner-subject-verifier.js.map +1 -0
- package/dist/runnerauth/runnerauth.d.ts +33 -4
- package/dist/runnerauth/runnerauth.d.ts.map +1 -1
- package/dist/runnerauth/runnerauth.js +131 -35
- package/dist/runnerauth/runnerauth.js.map +1 -1
- package/dist/temporal/agentexecution/engine-client.d.ts +13 -0
- package/dist/temporal/agentexecution/engine-client.d.ts.map +1 -1
- package/dist/temporal/agentexecution/engine-client.js +10 -2
- package/dist/temporal/agentexecution/engine-client.js.map +1 -1
- package/dist/temporal/agentexecution/workflow-input.d.ts +13 -0
- package/dist/temporal/agentexecution/workflow-input.d.ts.map +1 -1
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.d.ts.map +1 -1
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js +35 -31
- package/dist/temporal/agentexecution/workflows/invoke-agent-execution.js.map +1 -1
- package/dist/temporal/schedule/run-starter.d.ts +1 -1
- package/dist/temporal/schedule/run-starter.d.ts.map +1 -1
- package/dist/temporal/schedule/run-starter.js +14 -1
- package/dist/temporal/schedule/run-starter.js.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.d.ts +24 -0
- package/dist/temporal/workflowexecution/engine-client.d.ts.map +1 -1
- package/dist/temporal/workflowexecution/engine-client.js +26 -19
- package/dist/temporal/workflowexecution/engine-client.js.map +1 -1
- package/dist/temporal/workflowexecution/workflow-input.d.ts +14 -0
- package/dist/temporal/workflowexecution/workflow-input.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/archive/__tests__/archive.test.ts +233 -0
- package/src/{domain/skill → archive}/__tests__/prefilter.test.ts +1 -1
- package/src/archive/content-store.ts +132 -0
- package/src/archive/inflate.ts +107 -0
- package/src/archive/limits.ts +42 -0
- package/src/archive/open.ts +131 -0
- package/src/{domain/skill/storage → archive}/prefilter.ts +5 -0
- package/src/archive/write.ts +54 -0
- package/src/authorization/README.md +124 -0
- package/src/authorization/__tests__/authorizer.test.ts +719 -0
- package/src/authorization/__tests__/derived-tuples.test.ts +802 -0
- package/src/authorization/__tests__/drivers.ts +70 -0
- package/src/authorization/__tests__/evaluator.test.ts +359 -0
- package/src/authorization/__tests__/facts.test.ts +155 -0
- package/src/authorization/__tests__/fixtures/fga/agent-channel-owner.fga.yaml +112 -0
- package/src/authorization/__tests__/fixtures/fga/agent-share-owner.fga.yaml +109 -0
- package/src/authorization/__tests__/fixtures/fga/artifact-org-and-owner.fga.yaml +128 -0
- package/src/authorization/__tests__/fixtures/fga/blueprint-private-visibility.fga.yaml +410 -0
- package/src/authorization/__tests__/fixtures/fga/channel-app-owner.fga.yaml +125 -0
- package/src/authorization/__tests__/fixtures/fga/channel-participation.fga.yaml +201 -0
- package/src/authorization/__tests__/fixtures/fga/channel-session-visibility.fga.yaml +187 -0
- package/src/authorization/__tests__/fixtures/fga/cross-org-share-creation.fga.yaml +98 -0
- package/src/authorization/__tests__/fixtures/fga/default-instance-inheritance.fga.yaml +271 -0
- package/src/authorization/__tests__/fixtures/fga/memory-subject-only.fga.yaml +72 -0
- package/src/authorization/__tests__/fixtures/fga/org-admin-owner-inheritance.fga.yaml +328 -0
- package/src/authorization/__tests__/fixtures/fga/org-shared-environment.fga.yaml +144 -0
- package/src/authorization/__tests__/fixtures/fga/platform-visibility.fga.yaml +223 -0
- package/src/authorization/__tests__/fixtures/fga/provider-standing-viewer.fga.yaml +40 -0
- package/src/authorization/__tests__/fixtures/fga/public-visibility-setter.fga.yaml +52 -0
- package/src/authorization/__tests__/fixtures/fga/reserved-label-writer.fga.yaml +41 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-owner.fga.yaml +113 -0
- package/src/authorization/__tests__/fixtures/fga/schedule-session-visibility.fga.yaml +214 -0
- package/src/authorization/__tests__/fixtures/fga/session-personal-resource.fga.yaml +117 -0
- package/src/authorization/__tests__/fixtures/fga/workflow-execution-sharing.fga.yaml +192 -0
- package/src/authorization/__tests__/lane-admission.test.ts +115 -0
- package/src/authorization/__tests__/list-read-scope.measure.test.ts +317 -0
- package/src/authorization/__tests__/list-read-scope.test.ts +796 -0
- package/src/authorization/__tests__/organization-directory.test.ts +236 -0
- package/src/authorization/__tests__/person.test.ts +114 -0
- package/src/authorization/__tests__/posture.test.ts +25 -0
- package/src/authorization/__tests__/schedule-fire-caller.test.ts +134 -0
- package/src/authorization/__tests__/store-tests.test.ts +306 -0
- package/src/authorization/__tests__/support.ts +101 -0
- package/src/authorization/__tests__/tuples.test.ts +62 -0
- package/src/authorization/__tests__/wire-permissions.test.ts +154 -0
- package/src/authorization/authorizer.ts +208 -0
- package/src/authorization/derived-tuples.ts +384 -0
- package/src/authorization/evaluator.ts +283 -0
- package/src/authorization/facts.ts +47 -0
- package/src/authorization/lane-admission.ts +73 -0
- package/src/authorization/list-read-scope.ts +216 -0
- package/src/authorization/model/__tests__/registry.test.ts +317 -0
- package/src/authorization/model/agent.ts +64 -0
- package/src/authorization/model/agent_channel.ts +49 -0
- package/src/authorization/model/agent_execution.ts +33 -0
- package/src/authorization/model/agent_instance.ts +66 -0
- package/src/authorization/model/agent_share.ts +40 -0
- package/src/authorization/model/api_key.ts +28 -0
- package/src/authorization/model/artifact.ts +38 -0
- package/src/authorization/model/channel_app.ts +39 -0
- package/src/authorization/model/default-of.ts +99 -0
- package/src/authorization/model/environment.ts +48 -0
- package/src/authorization/model/execution_context.ts +20 -0
- package/src/authorization/model/iam_policy.ts +42 -0
- package/src/authorization/model/identity_account.ts +26 -0
- package/src/authorization/model/index.ts +108 -0
- package/src/authorization/model/mcp_server.ts +59 -0
- package/src/authorization/model/memory.ts +27 -0
- package/src/authorization/model/oauth_app.ts +42 -0
- package/src/authorization/model/organization.ts +55 -0
- package/src/authorization/model/plugin.ts +66 -0
- package/src/authorization/model/project.ts +47 -0
- package/src/authorization/model/rewrite.ts +213 -0
- package/src/authorization/model/schedule.ts +40 -0
- package/src/authorization/model/session.ts +50 -0
- package/src/authorization/model/skill.ts +60 -0
- package/src/authorization/model/workflow.ts +60 -0
- package/src/authorization/model/workflow_execution.ts +44 -0
- package/src/authorization/model/workflow_instance.ts +122 -0
- package/src/authorization/organization-directory.ts +114 -0
- package/src/authorization/person.ts +68 -0
- package/src/authorization/posture.ts +49 -0
- package/src/authorization/schedule-fire-caller.ts +87 -0
- package/src/authorization/store-test-kit.ts +454 -0
- package/src/authorization/tuples.ts +190 -0
- package/src/boot/compose.ts +246 -52
- package/src/boot/inprocess.ts +115 -31
- package/src/domain/agent/controller.ts +11 -0
- package/src/domain/executioncontext/__tests__/executioncontext.test.ts +104 -0
- package/src/domain/executioncontext/__tests__/resolve-values-capability.test.ts +33 -4
- package/src/domain/executioncontext/resolve-values-for-caller.ts +79 -22
- package/src/domain/iampolicy/__tests__/membership.test.ts +357 -3
- package/src/domain/iampolicy/constants.ts +12 -0
- package/src/domain/iampolicy/membership.ts +221 -66
- package/src/domain/identityaccount/__tests__/account-for-stamp.test.ts +111 -0
- package/src/domain/identityaccount/actor.ts +84 -0
- package/src/domain/identityaccount/resolve.ts +31 -0
- package/src/domain/mcpserver/__tests__/connect.test.ts +17 -2
- package/src/domain/mcpserver/connect-execution-id.ts +34 -0
- package/src/domain/mcpserver/connect.ts +38 -3
- package/src/domain/mcpserver/controller.ts +11 -0
- package/src/domain/mcpserver/engine.ts +9 -3
- package/src/domain/mcpserver/start-connect.ts +1 -1
- package/src/domain/platform/controller.ts +24 -11
- package/src/domain/plugin/__tests__/materialize.test.ts +303 -0
- package/src/domain/plugin/__tests__/overlay-parse.test.ts +85 -0
- package/src/domain/plugin/__tests__/plugin.test.ts +796 -0
- package/src/domain/plugin/__tests__/sanitize.test.ts +174 -0
- package/src/domain/plugin/archive.ts +89 -0
- package/src/domain/plugin/constants.ts +53 -0
- package/src/domain/plugin/controller.ts +913 -0
- package/src/domain/plugin/materialize/agent.ts +186 -0
- package/src/domain/plugin/materialize/default-agent-instructions.ts +59 -0
- package/src/domain/plugin/materialize/identity.ts +67 -0
- package/src/domain/plugin/materialize/mcp-servers.ts +175 -0
- package/src/domain/plugin/materialize/plan.ts +124 -0
- package/src/domain/plugin/materialize/ports.ts +53 -0
- package/src/domain/plugin/materialize/skills.ts +68 -0
- package/src/domain/plugin/materialize/workflows.ts +51 -0
- package/src/domain/plugin/members.ts +180 -0
- package/src/domain/plugin/overlay/documents.ts +78 -0
- package/src/domain/plugin/overlay/parse.ts +115 -0
- package/src/domain/plugin/overlay/sanitize.ts +151 -0
- package/src/domain/plugin/push.ts +1062 -0
- package/src/domain/plugin/search-extractor.ts +60 -0
- package/src/domain/skill/constants.ts +11 -14
- package/src/domain/skill/controller.ts +44 -36
- package/src/domain/skill/push.ts +61 -156
- package/src/domain/skill/search-extractor.ts +3 -1
- package/src/domain/skill/storage/artifact-storage.ts +23 -124
- package/src/domain/skill/storage/zip-gate.ts +58 -154
- package/src/domain/skill/version-resolution.ts +67 -269
- package/src/domain/workflow/controller.ts +38 -4
- package/src/domain/workflow/registry/data/task-kind-registry.json +1 -0
- package/src/domain/workflowexecution/__tests__/phases.test.ts +58 -0
- package/src/domain/workflowexecution/phases.ts +33 -0
- package/src/extensions/__tests__/built-in-authorization-composed.test.ts +835 -0
- package/src/extensions/__tests__/composed-support.ts +32 -1
- package/src/extensions/__tests__/extension-composition.test.ts +42 -1
- package/src/extensions/__tests__/list-read-scope.test.ts +137 -33
- package/src/extensions/__tests__/role-reconciliation-composed.test.ts +209 -0
- package/src/extensions/__tests__/tier-truthfulness.test.ts +6 -14
- package/src/extensions/authorizer.ts +10 -5
- package/src/extensions/drivers.ts +4 -1
- package/src/extensions/list-read-scope.ts +67 -45
- package/src/extensions/organization-directory.ts +13 -9
- package/src/extensions/resource-authorization.ts +34 -0
- package/src/extensions/schedule-fire-caller.ts +49 -18
- package/src/identity/__tests__/oidc-verifier.test.ts +22 -0
- package/src/identity/oidc-verifier.ts +8 -1
- package/src/index.ts +51 -1
- package/src/pipeline/__tests__/kind-by-id-prefix.test.ts +75 -0
- package/src/pipeline/__tests__/router-transport.test.ts +1 -3
- package/src/pipeline/apiresource-labels.ts +31 -3
- package/src/pipeline/apiresource-meta.ts +41 -0
- package/src/pipeline/errors.ts +5 -5
- package/src/pipeline/steps/__tests__/authorize-annotation-completeness.test.ts +1 -20
- package/src/pipeline/steps/__tests__/guard-memory-capture.test.ts +58 -44
- package/src/pipeline/steps/__tests__/guard-plugin-managed.test.ts +151 -0
- package/src/pipeline/steps/__tests__/guard-reserved-labels.test.ts +83 -8
- package/src/pipeline/steps/authorization-facts.ts +131 -0
- package/src/pipeline/steps/delete.ts +11 -3
- package/src/pipeline/steps/duplicate.ts +8 -2
- package/src/pipeline/steps/guard-memory-capture.ts +5 -3
- package/src/pipeline/steps/guard-plugin-managed.ts +133 -0
- package/src/pipeline/steps/guard-reserved-labels.ts +29 -8
- package/src/pipeline/steps/helpers.ts +4 -1
- package/src/pipeline/steps/index-search.ts +28 -15
- package/src/pipeline/steps/load-existing.ts +12 -3
- package/src/pipeline/steps/references.ts +36 -2
- package/src/pipeline/steps/resolve-artifact-source.ts +66 -0
- package/src/pipeline/steps/server-stamped-reserved-labels.ts +2 -1
- package/src/pipeline/steps/slug.ts +7 -2
- package/src/pipeline/steps/validate-visibility.ts +9 -2
- package/src/pipeline/steps/validation.ts +3 -1
- package/src/pipeline/steps/version-archive.ts +225 -0
- package/src/pipeline/steps/version-history.ts +362 -0
- package/src/pipeline/steps/visibility-gates.ts +12 -9
- package/src/query/README.md +1 -1
- package/src/query/search/__tests__/criteria.test.ts +6 -7
- package/src/query/search/__tests__/query-store.test.ts +9 -2
- package/src/query/search/__tests__/registry.test.ts +6 -4
- package/src/query/search/registry.ts +6 -1
- package/src/runnerauth/__tests__/bound-execution.test.ts +334 -0
- package/src/runnerauth/__tests__/built-in-runner-credential-provider.test.ts +516 -0
- package/src/runnerauth/__tests__/dispatch-credential.test.ts +94 -0
- package/src/runnerauth/__tests__/runner-credential-provider.test.ts +27 -0
- package/src/runnerauth/__tests__/runner-subject-composed.test.ts +497 -0
- package/src/runnerauth/__tests__/runner-subject-verifier.test.ts +541 -0
- package/src/runnerauth/bound-execution.ts +270 -0
- package/src/runnerauth/built-in-runner-credential-provider.ts +300 -0
- package/src/runnerauth/constants.ts +74 -0
- package/src/runnerauth/dispatch-credential.ts +63 -0
- package/src/runnerauth/runner-credential-provider.ts +60 -11
- package/src/runnerauth/runner-subject-verifier.ts +152 -0
- package/src/runnerauth/runnerauth.ts +148 -38
- package/src/temporal/agentexecution/__tests__/engine-client.test.ts +107 -38
- package/src/temporal/agentexecution/__tests__/invoke-workflow.test.ts +105 -2
- package/src/temporal/agentexecution/engine-client.ts +27 -2
- package/src/temporal/agentexecution/workflow-input.ts +13 -0
- package/src/temporal/agentexecution/workflows/invoke-agent-execution.ts +90 -44
- package/src/temporal/schedule/__tests__/run-starter.test.ts +86 -24
- package/src/temporal/schedule/run-starter.ts +31 -8
- package/src/temporal/workflowexecution/__tests__/engine-client.test.ts +139 -33
- package/src/temporal/workflowexecution/engine-client.ts +48 -21
- package/src/temporal/workflowexecution/workflow-input.ts +14 -0
- package/dist/domain/skill/storage/prefilter.d.ts.map +0 -1
- package/dist/domain/skill/storage/prefilter.js.map +0 -1
- /package/dist/{domain/skill/storage → archive}/prefilter.js +0 -0
|
@@ -0,0 +1,497 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pins the runner-subject lane as the composition root wires it, over
|
|
3
|
+
* real boots, in the three authorization postures the server can be in:
|
|
4
|
+
*
|
|
5
|
+
* - OIDC with no unit Authorizer (the self-host's shape; the BUILT-IN
|
|
6
|
+
* posture): the runner-subject verifier is composed BETWEEN `apikey`
|
|
7
|
+
* and `oidc`. The order is the contract, not a detail: the OIDC
|
|
8
|
+
* verifier claims ANY JWT-shaped token and throws when it cannot
|
|
9
|
+
* verify it, and the server's own runner token is JWT-shaped — placed
|
|
10
|
+
* after `oidc`, the runner verifier would never see its own token,
|
|
11
|
+
* and every runner call would fail as the OIDC verifier's fault. That
|
|
12
|
+
* is exactly what a 3.15.x self-host with sign-in on does today
|
|
13
|
+
* (stigmer#1137: no agent execution can run for anyone), and this
|
|
14
|
+
* file's wire arms are the regression test for it.
|
|
15
|
+
* - trusted-local: no runner verifier is composed. Nothing to
|
|
16
|
+
* delegate; the exchange token stays the decrypt-lane discriminator.
|
|
17
|
+
* - a unit's own Authorizer: no runner verifier is composed. The
|
|
18
|
+
* composition brings its own credential story (its provider, its
|
|
19
|
+
* verifiers), and open source must not stamp identities beside it.
|
|
20
|
+
*
|
|
21
|
+
* The wire arms under the built-in posture prove the whole lane with no
|
|
22
|
+
* engine: a live WORKFLOW execution row (its owner is DIRECT — the
|
|
23
|
+
* creator stamp — so no session is needed) is seeded in the composed
|
|
24
|
+
* server's store, stamped by a person who provisioned over the wire; the
|
|
25
|
+
* server's own key mints the run credential; presenting it on the
|
|
26
|
+
* execution's own `get` is ADMITTED (the runner acts as the person who
|
|
27
|
+
* created the run), and once the row is terminal the same credential is
|
|
28
|
+
* UNAUTHENTICATED. A forged token that names our type is refused by the
|
|
29
|
+
* runner verifier's sentence — never INTERNAL, never the OIDC copy.
|
|
30
|
+
*
|
|
31
|
+
* And the exchange as a MINT GATE (2026-09-16): over the same boot, a
|
|
32
|
+
* second person asking getRunnerScopedToken for Carol's run is
|
|
33
|
+
* PERMISSION_DENIED — the line the live claim check recorded the other
|
|
34
|
+
* way round ("A's key … for B's run: minted") — while Carol is minted a
|
|
35
|
+
* run credential that admits her on the wire, and a run that does not
|
|
36
|
+
* exist is NOT_FOUND with the copy a `get` would answer.
|
|
37
|
+
*
|
|
38
|
+
* Written failing on 2026-09-16; the verifier that follows turns it green. The per-arm
|
|
39
|
+
* proofs live in runner-subject-verifier.test.ts and
|
|
40
|
+
* built-in-runner-credential-provider.test.ts; this file is the entry's
|
|
41
|
+
* definition of done at the composition root.
|
|
42
|
+
*/
|
|
43
|
+
import { mkdtempSync, rmSync } from "node:fs";
|
|
44
|
+
import { tmpdir } from "node:os";
|
|
45
|
+
import path from "node:path";
|
|
46
|
+
import { createServer } from "node:http";
|
|
47
|
+
import type { Server } from "node:http";
|
|
48
|
+
import { once } from "node:events";
|
|
49
|
+
|
|
50
|
+
import { create } from "@bufbuild/protobuf";
|
|
51
|
+
import { Code, ConnectError, createClient } from "@connectrpc/connect";
|
|
52
|
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
|
53
|
+
import { createGrpcTransport } from "@connectrpc/connect-node";
|
|
54
|
+
import { SignJWT, exportJWK, generateKeyPair } from "jose";
|
|
55
|
+
import type { GenerateKeyPairResult } from "jose";
|
|
56
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
57
|
+
|
|
58
|
+
import { WorkflowExecutionSchema } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/api_pb";
|
|
59
|
+
import { ExecutionPhase } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/enum_pb";
|
|
60
|
+
import { WorkflowExecutionQueryController } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/query_pb";
|
|
61
|
+
import { ApiResourceKind } from "@stigmer/protos/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb";
|
|
62
|
+
import { IdentityAccountCommandController } from "@stigmer/protos/ai/stigmer/iam/identityaccount/v1/command_pb";
|
|
63
|
+
import { PlatformQueryController } from "@stigmer/protos/ai/stigmer/platform/v1/server_info_pb";
|
|
64
|
+
|
|
65
|
+
import { loadConfig } from "../../boot/config.js";
|
|
66
|
+
import { composeServer } from "../../boot/compose.js";
|
|
67
|
+
import type { ComposedServer } from "../../boot/compose.js";
|
|
68
|
+
import type { ServerExtension } from "../../extensions/registry.js";
|
|
69
|
+
import {
|
|
70
|
+
baseConfig,
|
|
71
|
+
fakeVerifier,
|
|
72
|
+
silentLogger,
|
|
73
|
+
} from "../../extensions/__tests__/composed-support.js";
|
|
74
|
+
import { authenticateBearerToken } from "../../pipeline/interceptors/auth.js";
|
|
75
|
+
import {
|
|
76
|
+
RUN_CREDENTIAL_NOT_RUNS_PERSON_MESSAGE,
|
|
77
|
+
RUNNER_CREDENTIAL_INVALID_MESSAGE,
|
|
78
|
+
RUNNER_CREDENTIAL_NOT_LIVE_MESSAGE,
|
|
79
|
+
RUNNER_VERIFIER_NAME,
|
|
80
|
+
} from "../constants.js";
|
|
81
|
+
import { isClockedToken, TOKEN_TYPE_EXECUTION_SCOPED } from "../runnerauth.js";
|
|
82
|
+
|
|
83
|
+
const AUDIENCE = "https://api.stigmer.test/";
|
|
84
|
+
const ORG = "runner-subject-org";
|
|
85
|
+
|
|
86
|
+
const segment = (value: unknown): string =>
|
|
87
|
+
Buffer.from(JSON.stringify(value)).toString("base64url");
|
|
88
|
+
|
|
89
|
+
function forgedRunnerToken(executionId: string): string {
|
|
90
|
+
return `${segment({ alg: "HS256", typ: "JWT" })}.${segment({
|
|
91
|
+
token_type: TOKEN_TYPE_EXECUTION_SCOPED,
|
|
92
|
+
execution_id: executionId,
|
|
93
|
+
iat: 1,
|
|
94
|
+
})}.${segment("not-the-servers-mac")}`;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function bearer(token: string): Interceptor {
|
|
98
|
+
return (next) => (request) => {
|
|
99
|
+
request.header.set("authorization", `Bearer ${token}`);
|
|
100
|
+
return next(request);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function transportFor(port: number, token: string): Transport {
|
|
105
|
+
return createGrpcTransport({
|
|
106
|
+
baseUrl: `http://127.0.0.1:${port}`,
|
|
107
|
+
interceptors: [bearer(token)],
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async function failureOf(promise: Promise<unknown>): Promise<ConnectError> {
|
|
112
|
+
try {
|
|
113
|
+
await promise;
|
|
114
|
+
} catch (error) {
|
|
115
|
+
expect(error).toBeInstanceOf(ConnectError);
|
|
116
|
+
return error as ConnectError;
|
|
117
|
+
}
|
|
118
|
+
throw new Error("expected the call to fail");
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** The smallest hermetic issuer the OIDC posture boots against: discovery, JWKS, userinfo. */
|
|
122
|
+
async function startIssuer(): Promise<{
|
|
123
|
+
issuer: string;
|
|
124
|
+
mint(sub: string, email: string): Promise<string>;
|
|
125
|
+
close(): Promise<void>;
|
|
126
|
+
}> {
|
|
127
|
+
const keys: GenerateKeyPairResult = await generateKeyPair("RS256");
|
|
128
|
+
const jwk = {
|
|
129
|
+
...(await exportJWK(keys.publicKey)),
|
|
130
|
+
kid: "test-key",
|
|
131
|
+
alg: "RS256",
|
|
132
|
+
};
|
|
133
|
+
let issuer = "";
|
|
134
|
+
const server: Server = createServer((req, res) => {
|
|
135
|
+
if (req.url === "/.well-known/openid-configuration") {
|
|
136
|
+
res.setHeader("content-type", "application/json");
|
|
137
|
+
res.end(
|
|
138
|
+
JSON.stringify({
|
|
139
|
+
issuer,
|
|
140
|
+
jwks_uri: `${issuer}/jwks`,
|
|
141
|
+
userinfo_endpoint: `${issuer}/userinfo`,
|
|
142
|
+
}),
|
|
143
|
+
);
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (req.url === "/jwks") {
|
|
147
|
+
res.setHeader("content-type", "application/json");
|
|
148
|
+
res.end(JSON.stringify({ keys: [jwk] }));
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (req.url === "/userinfo") {
|
|
152
|
+
const token = (req.headers.authorization ?? "").replace(/^Bearer /, "");
|
|
153
|
+
const claims = JSON.parse(
|
|
154
|
+
Buffer.from(token.split(".")[1] ?? "", "base64url").toString("utf8"),
|
|
155
|
+
) as { sub?: string; email?: string };
|
|
156
|
+
res.setHeader("content-type", "application/json");
|
|
157
|
+
res.end(
|
|
158
|
+
JSON.stringify({
|
|
159
|
+
sub: claims.sub ?? "",
|
|
160
|
+
email: claims.email ?? "",
|
|
161
|
+
given_name: "Runner",
|
|
162
|
+
family_name: "Subject",
|
|
163
|
+
}),
|
|
164
|
+
);
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
res.statusCode = 404;
|
|
168
|
+
res.end();
|
|
169
|
+
});
|
|
170
|
+
server.listen(0, "127.0.0.1");
|
|
171
|
+
await once(server, "listening");
|
|
172
|
+
const address = server.address();
|
|
173
|
+
if (address === null || typeof address === "string") {
|
|
174
|
+
throw new Error("issuer server did not bind a port");
|
|
175
|
+
}
|
|
176
|
+
issuer = `http://127.0.0.1:${address.port}`;
|
|
177
|
+
return {
|
|
178
|
+
issuer,
|
|
179
|
+
mint: (sub, email) =>
|
|
180
|
+
new SignJWT({ email, name: "Runner Subject" })
|
|
181
|
+
.setProtectedHeader({ alg: "RS256", kid: "test-key" })
|
|
182
|
+
.setIssuer(issuer)
|
|
183
|
+
.setAudience(AUDIENCE)
|
|
184
|
+
.setSubject(sub)
|
|
185
|
+
.setIssuedAt()
|
|
186
|
+
.setExpirationTime("5m")
|
|
187
|
+
.sign(keys.privateKey),
|
|
188
|
+
close: async () => {
|
|
189
|
+
server.close();
|
|
190
|
+
await once(server, "close");
|
|
191
|
+
},
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
describe("the built-in posture (OIDC, no unit Authorizer): the runner acts as the run's human", () => {
|
|
196
|
+
let dir: string;
|
|
197
|
+
let issuer: Awaited<ReturnType<typeof startIssuer>>;
|
|
198
|
+
let server: ComposedServer;
|
|
199
|
+
let port: number;
|
|
200
|
+
let carolId: string;
|
|
201
|
+
|
|
202
|
+
beforeAll(async () => {
|
|
203
|
+
issuer = await startIssuer();
|
|
204
|
+
dir = mkdtempSync(path.join(tmpdir(), "runner-subject-oidc-"));
|
|
205
|
+
server = await composeServer({
|
|
206
|
+
config: loadConfig({
|
|
207
|
+
...baseConfig(dir),
|
|
208
|
+
STIGMER_OIDC_ISSUER: issuer.issuer,
|
|
209
|
+
STIGMER_OIDC_AUDIENCE: AUDIENCE,
|
|
210
|
+
}),
|
|
211
|
+
logger: silentLogger,
|
|
212
|
+
extensions: [],
|
|
213
|
+
portOverride: 0,
|
|
214
|
+
host: "127.0.0.1",
|
|
215
|
+
});
|
|
216
|
+
port = await server.start();
|
|
217
|
+
// Carol provisions over the wire, the console's first sign-in; her
|
|
218
|
+
// runs are stamped with her account id from then on.
|
|
219
|
+
const carol = createClient(
|
|
220
|
+
IdentityAccountCommandController,
|
|
221
|
+
transportFor(port, await issuer.mint("auth0|carol", "carol@example.com")),
|
|
222
|
+
);
|
|
223
|
+
carolId = (await carol.provisionMyAccount({})).metadata?.id ?? "";
|
|
224
|
+
expect(carolId).not.toBe("");
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
afterAll(async () => {
|
|
228
|
+
await server.shutdown();
|
|
229
|
+
await issuer.close();
|
|
230
|
+
rmSync(dir, { recursive: true, force: true });
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
async function seedWorkflowExecution(
|
|
234
|
+
id: string,
|
|
235
|
+
phase: ExecutionPhase,
|
|
236
|
+
): Promise<void> {
|
|
237
|
+
await server.store.saveResource(
|
|
238
|
+
ApiResourceKind.workflow_execution,
|
|
239
|
+
id,
|
|
240
|
+
WorkflowExecutionSchema,
|
|
241
|
+
create(WorkflowExecutionSchema, {
|
|
242
|
+
metadata: { id, name: id, org: ORG },
|
|
243
|
+
status: { phase, audit: { specAudit: { createdBy: { id: carolId } } } },
|
|
244
|
+
}),
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
it("the chain is apikey → runner → oidc: ours claims the server's own token before the OIDC verifier can fault on it", () => {
|
|
249
|
+
expect(server.identityVerifiers.map((verifier) => verifier.name)).toEqual([
|
|
250
|
+
"apikey",
|
|
251
|
+
RUNNER_VERIFIER_NAME,
|
|
252
|
+
"oidc",
|
|
253
|
+
]);
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
it("a forged token naming our type is refused by the runner verifier's sentence — never INTERNAL, never the OIDC copy (stigmer#1137's regression arm)", async () => {
|
|
257
|
+
const failure = await failureOf(
|
|
258
|
+
authenticateBearerToken(
|
|
259
|
+
server.identityVerifiers,
|
|
260
|
+
forgedRunnerToken("wex_forged"),
|
|
261
|
+
silentLogger,
|
|
262
|
+
),
|
|
263
|
+
);
|
|
264
|
+
expect(failure.code).toBe(Code.Unauthenticated);
|
|
265
|
+
expect(failure.rawMessage).toBe(RUNNER_CREDENTIAL_INVALID_MESSAGE);
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
it("an OIDC token still walks through to the OIDC verifier — the runner verifier passes on every shape but its own", async () => {
|
|
269
|
+
const identity = await authenticateBearerToken(
|
|
270
|
+
server.identityVerifiers,
|
|
271
|
+
await issuer.mint("auth0|carol", "carol@example.com"),
|
|
272
|
+
silentLogger,
|
|
273
|
+
);
|
|
274
|
+
expect(identity?.identityId).toBe(carolId);
|
|
275
|
+
expect(identity?.callerClass).toBe("user");
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
it("the run credential the server mints for a live run, presented on the run's own read, is ADMITTED as the person who created it", async () => {
|
|
279
|
+
await seedWorkflowExecution(
|
|
280
|
+
"wex_live",
|
|
281
|
+
ExecutionPhase.EXECUTION_IN_PROGRESS,
|
|
282
|
+
);
|
|
283
|
+
const credential = server.runnerAuthService.mintRunCredential("wex_live");
|
|
284
|
+
|
|
285
|
+
const identity = await authenticateBearerToken(
|
|
286
|
+
server.identityVerifiers,
|
|
287
|
+
credential,
|
|
288
|
+
silentLogger,
|
|
289
|
+
);
|
|
290
|
+
expect(identity).toMatchObject({
|
|
291
|
+
identityId: carolId,
|
|
292
|
+
callerClass: "runner",
|
|
293
|
+
email: "carol@example.com",
|
|
294
|
+
rawToken: credential,
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
const asRunner = createClient(
|
|
298
|
+
WorkflowExecutionQueryController,
|
|
299
|
+
transportFor(port, credential),
|
|
300
|
+
);
|
|
301
|
+
const row = await asRunner.get({ value: "wex_live" });
|
|
302
|
+
expect(row.metadata?.id).toBe("wex_live");
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
it("once the run is over, the same credential is UNAUTHENTICATED with the liveness sentence — validity is the row's", async () => {
|
|
306
|
+
await seedWorkflowExecution(
|
|
307
|
+
"wex_done",
|
|
308
|
+
ExecutionPhase.EXECUTION_IN_PROGRESS,
|
|
309
|
+
);
|
|
310
|
+
const credential = server.runnerAuthService.mintRunCredential("wex_done");
|
|
311
|
+
const asRunner = createClient(
|
|
312
|
+
WorkflowExecutionQueryController,
|
|
313
|
+
transportFor(port, credential),
|
|
314
|
+
);
|
|
315
|
+
expect((await asRunner.get({ value: "wex_done" })).metadata?.id).toBe(
|
|
316
|
+
"wex_done",
|
|
317
|
+
);
|
|
318
|
+
|
|
319
|
+
await seedWorkflowExecution("wex_done", ExecutionPhase.EXECUTION_COMPLETED);
|
|
320
|
+
const failure = await failureOf(asRunner.get({ value: "wex_done" }));
|
|
321
|
+
expect(failure.code).toBe(Code.Unauthenticated);
|
|
322
|
+
expect(failure.rawMessage).toBe(RUNNER_CREDENTIAL_NOT_LIVE_MESSAGE);
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
it("a credential bound to one run does not open another — the binding is the capability", async () => {
|
|
326
|
+
await seedWorkflowExecution(
|
|
327
|
+
"wex_mine",
|
|
328
|
+
ExecutionPhase.EXECUTION_IN_PROGRESS,
|
|
329
|
+
);
|
|
330
|
+
await seedWorkflowExecution(
|
|
331
|
+
"wex_other",
|
|
332
|
+
ExecutionPhase.EXECUTION_IN_PROGRESS,
|
|
333
|
+
);
|
|
334
|
+
const credential = server.runnerAuthService.mintRunCredential("wex_mine");
|
|
335
|
+
const asRunner = createClient(
|
|
336
|
+
WorkflowExecutionQueryController,
|
|
337
|
+
transportFor(port, credential),
|
|
338
|
+
);
|
|
339
|
+
// Admitted as Carol, who created both rows — so the read of the OTHER
|
|
340
|
+
// run succeeds AS CAROL: the credential narrows WHO the runner is,
|
|
341
|
+
// not WHICH rows that person may read. Pinned so the reach is stated,
|
|
342
|
+
// not discovered (the cloud's sandbox token has the same reach).
|
|
343
|
+
expect((await asRunner.get({ value: "wex_other" })).metadata?.id).toBe(
|
|
344
|
+
"wex_other",
|
|
345
|
+
);
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
describe("the exchange is a mint gate", () => {
|
|
349
|
+
let bruceToken: string;
|
|
350
|
+
|
|
351
|
+
beforeAll(async () => {
|
|
352
|
+
// A second signed-in person. Provisioning after Carol makes Bruce a
|
|
353
|
+
// member of every organization she created — the roles rule — which
|
|
354
|
+
// is exactly the caller the gate must refuse: a legitimate member
|
|
355
|
+
// asking for someone else's run.
|
|
356
|
+
bruceToken = await issuer.mint("auth0|bruce", "bruce@example.com");
|
|
357
|
+
const bruce = createClient(
|
|
358
|
+
IdentityAccountCommandController,
|
|
359
|
+
transportFor(port, bruceToken),
|
|
360
|
+
);
|
|
361
|
+
expect((await bruce.provisionMyAccount({})).metadata?.id).not.toBe("");
|
|
362
|
+
await seedWorkflowExecution(
|
|
363
|
+
"wex_carols",
|
|
364
|
+
ExecutionPhase.EXECUTION_IN_PROGRESS,
|
|
365
|
+
);
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
it("another member asking for Carol's run is PERMISSION_DENIED — the impersonation path, closed", async () => {
|
|
369
|
+
const platform = createClient(
|
|
370
|
+
PlatformQueryController,
|
|
371
|
+
transportFor(port, bruceToken),
|
|
372
|
+
);
|
|
373
|
+
const failure = await failureOf(
|
|
374
|
+
platform.getRunnerScopedToken({
|
|
375
|
+
scope: { case: "workflowExecutionId", value: "wex_carols" },
|
|
376
|
+
}),
|
|
377
|
+
);
|
|
378
|
+
expect(failure.code).toBe(Code.PermissionDenied);
|
|
379
|
+
expect(failure.rawMessage).toBe(RUN_CREDENTIAL_NOT_RUNS_PERSON_MESSAGE);
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
it("the run's own person is minted a run credential that admits her on the wire", async () => {
|
|
383
|
+
const platform = createClient(
|
|
384
|
+
PlatformQueryController,
|
|
385
|
+
transportFor(
|
|
386
|
+
port,
|
|
387
|
+
await issuer.mint("auth0|carol", "carol@example.com"),
|
|
388
|
+
),
|
|
389
|
+
);
|
|
390
|
+
const minted = await platform.getRunnerScopedToken({
|
|
391
|
+
scope: { case: "workflowExecutionId", value: "wex_carols" },
|
|
392
|
+
});
|
|
393
|
+
expect(minted.runnerScopedToken).not.toBe("");
|
|
394
|
+
expect(minted.tokenType).toBe("Bearer");
|
|
395
|
+
// A run credential has no clock; the proto default says so.
|
|
396
|
+
expect(minted.expiresInSeconds).toBe(0);
|
|
397
|
+
expect(isClockedToken(minted.runnerScopedToken)).toBe(false);
|
|
398
|
+
|
|
399
|
+
const identity = await authenticateBearerToken(
|
|
400
|
+
server.identityVerifiers,
|
|
401
|
+
minted.runnerScopedToken,
|
|
402
|
+
silentLogger,
|
|
403
|
+
);
|
|
404
|
+
expect(identity).toMatchObject({
|
|
405
|
+
identityId: carolId,
|
|
406
|
+
callerClass: "runner",
|
|
407
|
+
});
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
it("a run that does not exist is NOT_FOUND with the copy a `get` would answer — never a hint about who may hold it", async () => {
|
|
411
|
+
const platform = createClient(
|
|
412
|
+
PlatformQueryController,
|
|
413
|
+
transportFor(port, bruceToken),
|
|
414
|
+
);
|
|
415
|
+
const failure = await failureOf(
|
|
416
|
+
platform.getRunnerScopedToken({
|
|
417
|
+
scope: { case: "workflowExecutionId", value: "wex_nowhere" },
|
|
418
|
+
}),
|
|
419
|
+
);
|
|
420
|
+
expect(failure.code).toBe(Code.NotFound);
|
|
421
|
+
expect(failure.rawMessage).toBe(
|
|
422
|
+
"WorkflowExecution not found: wex_nowhere",
|
|
423
|
+
);
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
describe("trusted-local: no runner verifier is composed", () => {
|
|
429
|
+
let dir: string;
|
|
430
|
+
let server: ComposedServer;
|
|
431
|
+
|
|
432
|
+
beforeAll(async () => {
|
|
433
|
+
dir = mkdtempSync(path.join(tmpdir(), "runner-subject-local-"));
|
|
434
|
+
server = await composeServer({
|
|
435
|
+
config: loadConfig(baseConfig(dir)),
|
|
436
|
+
logger: silentLogger,
|
|
437
|
+
extensions: [],
|
|
438
|
+
portOverride: 0,
|
|
439
|
+
host: "127.0.0.1",
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
afterAll(async () => {
|
|
444
|
+
await server.shutdown();
|
|
445
|
+
rmSync(dir, { recursive: true, force: true });
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
it("the chain carries no runner entry — nothing to delegate on a single-operator server", () => {
|
|
449
|
+
expect(
|
|
450
|
+
server.identityVerifiers.map((verifier) => verifier.name),
|
|
451
|
+
).not.toContain(RUNNER_VERIFIER_NAME);
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
it("the server's run credential is an UNCLAIMED bearer here — the exchange token stays the decrypt-lane discriminator it is today", async () => {
|
|
455
|
+
const credential = server.runnerAuthService.mintRunCredential("wex_local");
|
|
456
|
+
expect(
|
|
457
|
+
await authenticateBearerToken(
|
|
458
|
+
server.identityVerifiers,
|
|
459
|
+
credential,
|
|
460
|
+
silentLogger,
|
|
461
|
+
),
|
|
462
|
+
).toBeUndefined();
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
describe("a unit's own Authorizer: no runner verifier is composed", () => {
|
|
467
|
+
let dir: string;
|
|
468
|
+
let server: ComposedServer;
|
|
469
|
+
|
|
470
|
+
beforeAll(async () => {
|
|
471
|
+
dir = mkdtempSync(path.join(tmpdir(), "runner-subject-unit-"));
|
|
472
|
+
const unit: ServerExtension = {
|
|
473
|
+
name: "fake-unit-with-authorizer",
|
|
474
|
+
requireAuthentication: true,
|
|
475
|
+
identityVerifiers: [fakeVerifier],
|
|
476
|
+
authorizer: { authorize: () => Promise.resolve({ kind: "allow" }) },
|
|
477
|
+
};
|
|
478
|
+
server = await composeServer({
|
|
479
|
+
config: loadConfig(baseConfig(dir)),
|
|
480
|
+
logger: silentLogger,
|
|
481
|
+
extensions: [unit],
|
|
482
|
+
portOverride: 0,
|
|
483
|
+
host: "127.0.0.1",
|
|
484
|
+
});
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
afterAll(async () => {
|
|
488
|
+
await server.shutdown();
|
|
489
|
+
rmSync(dir, { recursive: true, force: true });
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
it("the chain is apikey then the unit's verifiers — the composition owns its credential story", () => {
|
|
493
|
+
const names = server.identityVerifiers.map((verifier) => verifier.name);
|
|
494
|
+
expect(names).toEqual(["apikey", fakeVerifier.name]);
|
|
495
|
+
expect(names).not.toContain(RUNNER_VERIFIER_NAME);
|
|
496
|
+
});
|
|
497
|
+
});
|