@intentius/chant 0.57.0 → 0.59.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/dist/audit/catalog.d.ts +51 -1
- package/dist/audit/catalog.d.ts.map +1 -1
- package/dist/audit/core.d.ts +36 -1
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/discover.d.ts +26 -9
- package/dist/audit/discover.d.ts.map +1 -1
- package/dist/audit/lineage.d.ts +10 -0
- package/dist/audit/lineage.d.ts.map +1 -0
- package/dist/audit/prior-art.d.ts +385 -0
- package/dist/audit/prior-art.d.ts.map +1 -0
- package/dist/audit/proof.d.ts +16 -0
- package/dist/audit/proof.d.ts.map +1 -1
- package/dist/audit/report-html.d.ts.map +1 -1
- package/dist/audit/report-model.d.ts +8 -1
- package/dist/audit/report-model.d.ts.map +1 -1
- package/dist/audit/report.d.ts.map +1 -1
- package/dist/audit/rules-doc.d.ts +3 -0
- package/dist/audit/rules-doc.d.ts.map +1 -1
- package/dist/audit/secrets.d.ts +15 -0
- package/dist/audit/secrets.d.ts.map +1 -1
- package/dist/audit/terraform-state.d.ts +46 -0
- package/dist/audit/terraform-state.d.ts.map +1 -0
- package/dist/build.d.ts +17 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/claimed-fields.d.ts +161 -0
- package/dist/claimed-fields.d.ts.map +1 -0
- package/dist/cli/build-params-cli.d.ts +2 -2
- package/dist/cli/command-group.d.ts +14 -0
- package/dist/cli/command-group.d.ts.map +1 -1
- package/dist/cli/commands/audit.d.ts +17 -1
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/carve-bridge.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-docs.d.ts +1 -1
- package/dist/cli/commands/check-lexicon-examples.d.ts +16 -6
- package/dist/cli/commands/check-lexicon-examples.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts +1 -0
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/project.d.ts +7 -0
- package/dist/cli/commands/init-lexicon/templates/project.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts +13 -0
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/onboard.d.ts +2 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +82 -16
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts +49 -42
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts +12 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/op-tools.d.ts +16 -1
- package/dist/cli/mcp/op-tools.d.ts.map +1 -1
- package/dist/cli/mcp/resource-handlers.d.ts.map +1 -1
- package/dist/cli/mcp/resources/context.d.ts.map +1 -1
- package/dist/cli/plugins.d.ts +22 -0
- package/dist/cli/plugins.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +40 -9
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/codegen/generate-post-synth-barrel.d.ts +1 -1
- package/dist/components/auto-release.d.ts +10 -20
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/capability.d.ts +4 -4
- package/dist/components/cli-support.d.ts +24 -22
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/component.d.ts +21 -6
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/driver-output.d.ts.map +1 -1
- package/dist/components/driver.d.ts +73 -37
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest-persistence.d.ts +1 -9
- package/dist/components/manifest-persistence.d.ts.map +1 -1
- package/dist/components/run-progress.d.ts +6 -6
- package/dist/components/run-progress.d.ts.map +1 -1
- package/dist/components/verbs/run-agent.d.ts +10 -22
- package/dist/components/verbs/run-agent.d.ts.map +1 -1
- package/dist/components/verbs/verify.d.ts +2 -2
- package/dist/deep-observation.d.ts +17 -0
- package/dist/deep-observation.d.ts.map +1 -1
- package/dist/detectLexicon.d.ts +13 -0
- package/dist/detectLexicon.d.ts.map +1 -1
- package/dist/discovery/files.d.ts +4 -4
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/discovery/param-deps.d.ts +33 -0
- package/dist/discovery/param-deps.d.ts.map +1 -1
- package/dist/discovery/sandbox/bundle.d.ts.map +1 -1
- package/dist/discovery/sandbox/config-wire.d.ts +2 -2
- package/dist/fold/foldable-helpers.d.ts +5 -1
- package/dist/fold/foldable-helpers.d.ts.map +1 -1
- package/dist/fold-provenance.d.ts +236 -0
- package/dist/fold-provenance.d.ts.map +1 -0
- package/dist/graph-ops.d.ts +1 -1
- package/dist/held-elsewhere.d.ts +85 -0
- package/dist/held-elsewhere.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kubectl-context.d.ts +3 -3
- package/dist/lexicon-config.d.ts +4 -4
- package/dist/lexicon-plugin-helpers.d.ts +1 -1
- package/dist/lexicon.d.ts +273 -16
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/change-set.d.ts +13 -0
- package/dist/lifecycle/change-set.d.ts.map +1 -1
- package/dist/lifecycle/deep-diff.d.ts +133 -6
- package/dist/lifecycle/deep-diff.d.ts.map +1 -1
- package/dist/lifecycle/deep-observe.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +79 -3
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +1 -0
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.d.ts +2 -2
- package/dist/lifecycle/run-ledger.d.ts +53 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -0
- package/dist/lifecycle/symptoms.d.ts +3 -3
- package/dist/lifecycle/symptoms.d.ts.map +1 -1
- package/dist/lint/config.d.ts +81 -2
- package/dist/lint/config.d.ts.map +1 -1
- package/dist/lint/post-synth.d.ts +55 -2
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.d.ts +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.d.ts.map +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.d.ts +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.d.ts.map +1 -1
- package/dist/lint/rules/comp/comp004-gate-needs-durable-runtime.d.ts +44 -0
- package/dist/lint/rules/comp/comp004-gate-needs-durable-runtime.d.ts.map +1 -0
- package/dist/lint/rules/comp/index.d.ts +1 -1
- package/dist/lint/rules/comp/index.d.ts.map +1 -1
- package/dist/lint/rules/op/index.d.ts +16 -0
- package/dist/lint/rules/op/index.d.ts.map +1 -0
- package/dist/lint/rules/op/ops012-activity-contract.d.ts +27 -0
- package/dist/lint/rules/op/ops012-activity-contract.d.ts.map +1 -0
- package/dist/lint/rules/op/ops013-step-output-ref.d.ts +61 -0
- package/dist/lint/rules/op/ops013-step-output-ref.d.ts.map +1 -0
- package/dist/lint/rules/op/ops014-converge-rule-refusals.d.ts +55 -0
- package/dist/lint/rules/op/ops014-converge-rule-refusals.d.ts.map +1 -0
- package/dist/lint/rules/op/support.d.ts +12 -0
- package/dist/lint/rules/op/support.d.ts.map +1 -0
- package/dist/lint/suppressions.d.ts +108 -0
- package/dist/lint/suppressions.d.ts.map +1 -0
- package/dist/live-endpoint.d.ts +1 -1
- package/dist/op/activities/activity-contracts.d.ts +54 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -0
- package/dist/op/activities/apply.d.ts +262 -0
- package/dist/op/activities/apply.d.ts.map +1 -0
- package/dist/op/activities/build.d.ts +13 -0
- package/dist/op/activities/build.d.ts.map +1 -0
- package/dist/op/activities/converge.d.ts +110 -0
- package/dist/op/activities/converge.d.ts.map +1 -0
- package/dist/op/activities/env-teardown.d.ts +76 -0
- package/dist/op/activities/env-teardown.d.ts.map +1 -0
- package/dist/op/activities/guard-validate.d.ts +64 -0
- package/dist/op/activities/guard-validate.d.ts.map +1 -0
- package/dist/op/activities/http-check.d.ts +34 -0
- package/dist/op/activities/http-check.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +31 -0
- package/dist/op/activities/index.d.ts.map +1 -0
- package/dist/op/activities/lexicon-upgrade.d.ts +182 -0
- package/dist/op/activities/lexicon-upgrade.d.ts.map +1 -0
- package/dist/op/activities/lifecycle.d.ts +42 -0
- package/dist/op/activities/lifecycle.d.ts.map +1 -0
- package/dist/op/activities/pipeline-audit.d.ts +84 -0
- package/dist/op/activities/pipeline-audit.d.ts.map +1 -0
- package/dist/op/activities/policy.d.ts +17 -0
- package/dist/op/activities/policy.d.ts.map +1 -0
- package/dist/op/activities/reconcile.d.ts +149 -0
- package/dist/op/activities/reconcile.d.ts.map +1 -0
- package/dist/op/activities/shell.d.ts +13 -0
- package/dist/op/activities/shell.d.ts.map +1 -0
- package/dist/op/activities/teardown.d.ts +10 -0
- package/dist/op/activities/teardown.d.ts.map +1 -0
- package/dist/op/activities/util.d.ts +7 -0
- package/dist/op/activities/util.d.ts.map +1 -0
- package/dist/op/activities/wait.d.ts +28 -0
- package/dist/op/activities/wait.d.ts.map +1 -0
- package/dist/op/activities/workflow-audit.d.ts +92 -0
- package/dist/op/activities/workflow-audit.d.ts.map +1 -0
- package/dist/op/activity-contract-registry.d.ts +76 -0
- package/dist/op/activity-contract-registry.d.ts.map +1 -0
- package/dist/op/activity-contract.d.ts +25 -18
- package/dist/op/activity-contract.d.ts.map +1 -1
- package/dist/op/activity-failure.d.ts +28 -0
- package/dist/op/activity-failure.d.ts.map +1 -0
- package/dist/op/activity-profiles.d.ts +118 -0
- package/dist/op/activity-profiles.d.ts.map +1 -0
- package/dist/op/activity-registry.d.ts +22 -38
- package/dist/op/activity-registry.d.ts.map +1 -1
- package/dist/op/activity-runtime.d.ts +3 -14
- package/dist/op/activity-runtime.d.ts.map +1 -1
- package/dist/op/builders.d.ts +85 -30
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/change-signal.d.ts +91 -0
- package/dist/op/change-signal.d.ts.map +1 -0
- package/dist/op/composites/apply-op.d.ts +118 -0
- package/dist/op/composites/apply-op.d.ts.map +1 -0
- package/dist/op/composites/converge-op.d.ts +120 -0
- package/dist/op/composites/converge-op.d.ts.map +1 -0
- package/dist/op/composites/index.d.ts +26 -0
- package/dist/op/composites/index.d.ts.map +1 -0
- package/dist/op/composites/lexicon-upgrade-op.d.ts +78 -0
- package/dist/op/composites/lexicon-upgrade-op.d.ts.map +1 -0
- package/dist/op/composites/pipeline-audit-op.d.ts +50 -0
- package/dist/op/composites/pipeline-audit-op.d.ts.map +1 -0
- package/dist/op/composites/reconcile-op.d.ts +57 -0
- package/dist/op/composites/reconcile-op.d.ts.map +1 -0
- package/dist/op/composites/watch-op.d.ts +60 -0
- package/dist/op/composites/watch-op.d.ts.map +1 -0
- package/dist/op/composites/workflow-audit-op.d.ts +57 -0
- package/dist/op/composites/workflow-audit-op.d.ts.map +1 -0
- package/dist/op/converge-rule.d.ts +12 -10
- package/dist/op/converge-rule.d.ts.map +1 -1
- package/dist/op/cron.d.ts +51 -0
- package/dist/op/cron.d.ts.map +1 -0
- package/dist/op/discover.d.ts +9 -0
- package/dist/op/discover.d.ts.map +1 -1
- package/dist/op/duration.d.ts +11 -0
- package/dist/op/duration.d.ts.map +1 -0
- package/dist/op/emulator-lifecycle.d.ts.map +1 -1
- package/dist/op/gate-name.d.ts +40 -0
- package/dist/op/gate-name.d.ts.map +1 -0
- package/dist/op/gate-summary.d.ts +43 -0
- package/dist/op/gate-summary.d.ts.map +1 -0
- package/dist/op/gate.d.ts +90 -0
- package/dist/op/gate.d.ts.map +1 -0
- package/dist/op/generate-pipeline.d.ts +9 -0
- package/dist/op/generate-pipeline.d.ts.map +1 -1
- package/dist/op/index.d.ts +29 -9
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/local-executor.d.ts +114 -28
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-output.d.ts +11 -1
- package/dist/op/local-output.d.ts.map +1 -1
- package/dist/op/op-ir.d.ts +185 -0
- package/dist/op/op-ir.d.ts.map +1 -0
- package/dist/op/op-verb-class.d.ts +10 -2
- package/dist/op/op-verb-class.d.ts.map +1 -1
- package/dist/op/operator.d.ts +93 -5
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/receipt-store.d.ts +1 -1
- package/dist/op/receipt-store.d.ts.map +1 -1
- package/dist/op/resource.d.ts +15 -1
- package/dist/op/resource.d.ts.map +1 -1
- package/dist/op/runtime.d.ts +200 -0
- package/dist/op/runtime.d.ts.map +1 -0
- package/dist/op/runtimes/local.d.ts +29 -0
- package/dist/op/runtimes/local.d.ts.map +1 -0
- package/dist/op/step-output-ref.d.ts +15 -13
- package/dist/op/step-output-ref.d.ts.map +1 -1
- package/dist/op/types.d.ts +96 -29
- package/dist/op/types.d.ts.map +1 -1
- package/dist/ownership.d.ts +1 -1
- package/dist/provenance.d.ts +21 -0
- package/dist/provenance.d.ts.map +1 -1
- package/dist/serializer-walker.d.ts.map +1 -1
- package/dist/terraform/bridge.d.ts +26 -7
- package/dist/terraform/bridge.d.ts.map +1 -1
- package/dist/terraform/carve-provider.d.ts +28 -2
- package/dist/terraform/carve-provider.d.ts.map +1 -1
- package/dist/terraform/data-source-shape.d.ts +77 -0
- package/dist/terraform/data-source-shape.d.ts.map +1 -0
- package/dist/terraform/graph.d.ts.map +1 -1
- package/dist/terraform/providers/kubernetes.d.ts +5 -0
- package/dist/terraform/providers/kubernetes.d.ts.map +1 -1
- package/dist/terraform/tier-map.d.ts +16 -4
- package/dist/terraform/tier-map.d.ts.map +1 -1
- package/dist/terraform/types.d.ts +8 -0
- package/dist/terraform/types.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/audit/catalog.test.ts +79 -3
- package/src/audit/catalog.ts +111 -13
- package/src/audit/core.test.ts +26 -0
- package/src/audit/core.ts +84 -18
- package/src/audit/discover.test.ts +39 -0
- package/src/audit/discover.ts +202 -18
- package/src/audit/lineage.ts +100 -0
- package/src/audit/prior-art.ts +153 -0
- package/src/audit/proof.test.ts +67 -0
- package/src/audit/proof.ts +70 -0
- package/src/audit/report-html.ts +9 -4
- package/src/audit/report-model.ts +16 -2
- package/src/audit/report.test.ts +33 -0
- package/src/audit/report.ts +5 -3
- package/src/audit/rules-doc.test.ts +34 -2
- package/src/audit/rules-doc.ts +82 -9
- package/src/audit/secrets.ts +15 -3
- package/src/audit/terraform-state.test.ts +144 -0
- package/src/audit/terraform-state.ts +131 -0
- package/src/build.ts +31 -1
- package/src/claimed-fields.test.ts +145 -0
- package/src/claimed-fields.ts +208 -0
- package/src/cli/build-params-cli.ts +2 -2
- package/src/cli/command-group.ts +14 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/.terraform/providers/lock.txt +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/main.tf +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/modules/foo/main.tf +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/variables.tf +3 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/package.json +13 -4
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/docs-cli.ts +4 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/package.ts +1 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/package-cli.ts +21 -0
- package/src/cli/commands/__snapshots__/init-lexicon.test.ts.snap +1 -0
- package/src/cli/commands/audit.test.ts +191 -11
- package/src/cli/commands/audit.ts +78 -28
- package/src/cli/commands/build.test.ts +330 -9
- package/src/cli/commands/build.ts +170 -24
- package/src/cli/commands/carve-bridge.test.ts +237 -14
- package/src/cli/commands/carve-bridge.ts +21 -17
- package/src/cli/commands/carve-emit-k8s.test.ts +17 -10
- package/src/cli/commands/check-lexicon-docs.ts +1 -1
- package/src/cli/commands/check-lexicon-examples.test.ts +29 -1
- package/src/cli/commands/check-lexicon-examples.ts +42 -10
- package/src/cli/commands/init-lexicon/templates/codegen.ts +9 -0
- package/src/cli/commands/init-lexicon/templates/project.ts +44 -4
- package/src/cli/commands/init-lexicon.test.ts +97 -2
- package/src/cli/commands/init-lexicon.ts +4 -2
- package/src/cli/commands/init.test.ts +35 -1
- package/src/cli/commands/init.ts +14 -3
- package/src/cli/commands/lint.test.ts +194 -1
- package/src/cli/commands/lint.ts +205 -7
- package/src/cli/commands/onboard.test.ts +75 -0
- package/src/cli/commands/onboard.ts +54 -23
- package/src/cli/handlers/build.test.ts +81 -1
- package/src/cli/handlers/build.ts +15 -1
- package/src/cli/handlers/graph.test.ts +3 -3
- package/src/cli/handlers/lifecycle.test.ts +195 -12
- package/src/cli/handlers/lifecycle.ts +123 -6
- package/src/cli/handlers/misc.ts +1 -1
- package/src/cli/handlers/operator.test.ts +183 -11
- package/src/cli/handlers/operator.ts +341 -55
- package/src/cli/handlers/run.test.ts +568 -1295
- package/src/cli/handlers/run.ts +446 -912
- package/src/cli/main.test.ts +22 -16
- package/src/cli/main.ts +66 -33
- package/src/cli/mcp/op-tools.ts +147 -88
- package/src/cli/mcp/resource-handlers.ts +10 -37
- package/src/cli/mcp/resources/context.ts +11 -12
- package/src/cli/mcp/server.test.ts +25 -27
- package/src/cli/mcp/server.ts +2 -2
- package/src/cli/plugins.test.ts +68 -2
- package/src/cli/plugins.ts +39 -0
- package/src/cli/registry.ts +40 -9
- package/src/codegen/docs.ts +1 -1
- package/src/codegen/generate-post-synth-barrel.test.ts +1 -1
- package/src/codegen/generate-post-synth-barrel.ts +1 -1
- package/src/components/README.md +4 -3
- package/src/components/__fixtures__/neo4j-fanout.json +1 -1
- package/src/components/auto-release.test.ts +4 -20
- package/src/components/auto-release.ts +17 -42
- package/src/components/capability.ts +4 -4
- package/src/components/cli-support.test.ts +28 -12
- package/src/components/cli-support.ts +60 -47
- package/src/components/component-schema.test.ts +18 -2
- package/src/components/component.schema.json +18 -5
- package/src/components/component.test.ts +2 -2
- package/src/components/component.ts +27 -7
- package/src/components/config-defaults.test.ts +2 -2
- package/src/components/driver-output.ts +14 -2
- package/src/components/driver.test.ts +109 -20
- package/src/components/driver.ts +201 -84
- package/src/components/index.ts +1 -6
- package/src/components/manifest-persistence.test.ts +2 -20
- package/src/components/manifest-persistence.ts +4 -24
- package/src/components/pilots/neo4j-fanout.pilot.ts +3 -3
- package/src/components/pilots/pilots-lint-clean.test.ts +11 -10
- package/src/components/run-progress.ts +6 -6
- package/src/components/verbs/run-agent.test.ts +19 -0
- package/src/components/verbs/run-agent.ts +12 -24
- package/src/components/verbs/verify.ts +2 -2
- package/src/deep-observation.test.ts +75 -0
- package/src/deep-observation.ts +48 -0
- package/src/detectLexicon.ts +18 -1
- package/src/discovery/collect.test.ts +3 -3
- package/src/discovery/files.ts +4 -4
- package/src/discovery/fold-import.test.ts +1 -1
- package/src/discovery/fold-import.ts +105 -2
- package/src/discovery/param-deps.test.ts +112 -1
- package/src/discovery/param-deps.ts +193 -0
- package/src/discovery/sandbox/bundle.ts +15 -1
- package/src/discovery/sandbox/config-wire.test.ts +2 -2
- package/src/discovery/sandbox/config-wire.ts +2 -2
- package/src/fold/fold.test.ts +56 -0
- package/src/fold/foldable-helpers.ts +82 -2
- package/src/fold-provenance-exclusion.test.ts +186 -0
- package/src/fold-provenance.test.ts +495 -0
- package/src/fold-provenance.ts +441 -0
- package/src/graph-ops.test.ts +3 -3
- package/src/graph-ops.ts +1 -1
- package/src/held-elsewhere.test.ts +102 -0
- package/src/held-elsewhere.ts +114 -0
- package/src/index.ts +3 -0
- package/src/kubectl-context.ts +3 -3
- package/src/lexicon-config.test.ts +5 -5
- package/src/lexicon-config.ts +4 -4
- package/src/lexicon-plugin-helpers.ts +1 -1
- package/src/lexicon.ts +296 -16
- package/src/lifecycle/change-set.test.ts +49 -0
- package/src/lifecycle/change-set.ts +67 -0
- package/src/lifecycle/converge-ledger.ts +1 -1
- package/src/lifecycle/deep-diff.test.ts +267 -14
- package/src/lifecycle/deep-diff.ts +217 -14
- package/src/lifecycle/deep-observe.test.ts +3 -1
- package/src/lifecycle/deep-observe.ts +16 -6
- package/src/lifecycle/gate-ledger.test.ts +74 -2
- package/src/lifecycle/gate-ledger.ts +154 -36
- package/src/lifecycle/index.ts +1 -0
- package/src/lifecycle/release-ledger.ts +2 -2
- package/src/lifecycle/run-ledger.test.ts +268 -0
- package/src/lifecycle/run-ledger.ts +201 -0
- package/src/lifecycle/symptoms.ts +3 -3
- package/src/lint/config.test.ts +82 -1
- package/src/lint/config.ts +112 -3
- package/src/lint/pipeline-change-gate.test.ts +2 -2
- package/src/lint/policy.test.ts +1 -1
- package/src/lint/post-synth.test.ts +31 -0
- package/src/lint/post-synth.ts +54 -1
- package/src/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.ts +2 -2
- package/src/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.ts +1 -1
- package/src/lint/rules/comp/comp.test.ts +27 -1
- package/src/lint/rules/comp/comp004-gate-needs-durable-runtime.ts +76 -0
- package/src/lint/rules/comp/index.ts +3 -3
- package/src/lint/rules/op/index.ts +23 -0
- package/src/lint/rules/op/ops012-activity-contract.test.ts +161 -0
- package/src/lint/rules/op/ops012-activity-contract.ts +64 -0
- package/src/lint/rules/op/ops013-step-output-ref.test.ts +237 -0
- package/src/lint/rules/op/ops013-step-output-ref.ts +98 -0
- package/src/lint/rules/op/ops014-converge-rule-refusals.test.ts +263 -0
- package/src/lint/rules/op/ops014-converge-rule-refusals.ts +179 -0
- package/src/lint/rules/op/support.ts +11 -0
- package/src/lint/suppressions.test.ts +163 -0
- package/src/lint/suppressions.ts +204 -0
- package/src/live-endpoint.ts +1 -1
- package/src/op/activities/activity-contracts.ts +66 -0
- package/src/op/activities/apply.test.ts +567 -0
- package/src/op/activities/apply.ts +662 -0
- package/src/op/activities/build.ts +26 -0
- package/src/op/activities/converge.test.ts +330 -0
- package/src/op/activities/converge.ts +449 -0
- package/src/op/activities/env-teardown.test.ts +187 -0
- package/src/op/activities/env-teardown.ts +171 -0
- package/src/op/activities/guard-validate.test.ts +139 -0
- package/src/op/activities/guard-validate.ts +223 -0
- package/src/op/activities/http-check.test.ts +48 -0
- package/src/op/activities/http-check.ts +55 -0
- package/src/op/activities/index.ts +119 -0
- package/src/op/activities/lexicon-upgrade.test.ts +492 -0
- package/src/op/activities/lexicon-upgrade.ts +673 -0
- package/src/op/activities/lifecycle.ts +85 -0
- package/src/op/activities/pipeline-audit.test.ts +67 -0
- package/src/op/activities/pipeline-audit.ts +201 -0
- package/src/op/activities/policy.test.ts +19 -0
- package/src/op/activities/policy.ts +37 -0
- package/src/op/activities/reconcile.test.ts +161 -0
- package/src/op/activities/reconcile.ts +354 -0
- package/src/op/activities/shell.ts +26 -0
- package/src/op/activities/teardown.ts +22 -0
- package/src/op/activities/util.ts +6 -0
- package/src/op/activities/wait.ts +69 -0
- package/src/op/activities/workflow-audit.test.ts +90 -0
- package/src/op/activities/workflow-audit.ts +203 -0
- package/src/op/activity-contract-registry.test.ts +98 -0
- package/src/op/activity-contract-registry.ts +114 -0
- package/src/op/activity-contract.test.ts +1 -1
- package/src/op/activity-contract.ts +37 -33
- package/src/op/activity-failure.ts +34 -0
- package/src/op/activity-profiles.test.ts +56 -0
- package/src/op/activity-profiles.ts +116 -0
- package/src/op/activity-registry.test.ts +37 -28
- package/src/op/activity-registry.ts +27 -56
- package/src/op/activity-runtime.ts +3 -47
- package/src/op/builders-exports.test.ts +0 -49
- package/src/op/builders-typed.test.ts +164 -0
- package/src/op/builders.ts +125 -41
- package/src/op/change-signal.test.ts +117 -0
- package/src/op/change-signal.ts +169 -0
- package/src/op/composites/apply-op.ts +218 -0
- package/src/op/composites/composites.test.ts +379 -0
- package/src/op/composites/converge-op.test.ts +168 -0
- package/src/op/composites/converge-op.ts +214 -0
- package/src/op/composites/index.ts +26 -0
- package/src/op/composites/lexicon-upgrade-op.test.ts +68 -0
- package/src/op/composites/lexicon-upgrade-op.ts +134 -0
- package/src/op/composites/pipeline-audit-op.test.ts +25 -0
- package/src/op/composites/pipeline-audit-op.ts +78 -0
- package/src/op/composites/reconcile-op.test.ts +51 -0
- package/src/op/composites/reconcile-op.ts +110 -0
- package/src/op/composites/watch-op.ts +108 -0
- package/src/op/composites/workflow-audit-op.test.ts +25 -0
- package/src/op/composites/workflow-audit-op.ts +88 -0
- package/src/op/converge-rule.ts +12 -10
- package/src/op/cron.test.ts +128 -0
- package/src/op/cron.ts +149 -0
- package/src/op/discover-root.test.ts +105 -1
- package/src/op/discover.test.ts +6 -2
- package/src/op/discover.ts +84 -16
- package/src/op/duration.ts +21 -0
- package/src/op/effect-step.test.ts +29 -14
- package/src/op/emulator-lifecycle.ts +1 -2
- package/src/op/gate-name.test.ts +65 -0
- package/src/op/gate-name.ts +60 -0
- package/src/op/gate-summary.ts +84 -0
- package/src/op/gate.ts +155 -0
- package/src/op/generate-pipeline.test.ts +65 -3
- package/src/op/generate-pipeline.ts +19 -2
- package/src/op/index.ts +48 -8
- package/src/op/local-executor.test.ts +178 -34
- package/src/op/local-executor.ts +371 -102
- package/src/op/local-output.test.ts +95 -11
- package/src/op/local-output.ts +33 -4
- package/src/op/op-ir.test.ts +292 -0
- package/src/op/op-ir.ts +419 -0
- package/src/op/op-verb-class.test.ts +2 -2
- package/src/op/op-verb-class.ts +19 -5
- package/src/op/op.test.ts +28 -7
- package/src/op/operator.test.ts +543 -6
- package/src/op/operator.ts +203 -20
- package/src/op/receipt-store.ts +1 -1
- package/src/op/resource.ts +20 -2
- package/src/op/runtime.ts +203 -0
- package/src/op/runtimes/local.test.ts +181 -0
- package/src/op/runtimes/local.ts +212 -0
- package/src/op/step-output-ref.ts +15 -13
- package/src/op/types.ts +106 -26
- package/src/ownership.ts +1 -1
- package/src/provenance.test.ts +6 -0
- package/src/provenance.ts +21 -1
- package/src/serializer-walker.test.ts +42 -0
- package/src/serializer-walker.ts +21 -2
- package/src/terraform/aws-resources.test.ts +13 -4
- package/src/terraform/bridge.test.ts +22 -9
- package/src/terraform/bridge.ts +89 -28
- package/src/terraform/carve-provider.ts +38 -2
- package/src/terraform/data-source-shape.ts +95 -0
- package/src/terraform/graph.ts +35 -7
- package/src/terraform/providers/kubernetes.ts +48 -2
- package/src/terraform/tier-map.ts +21 -6
- package/src/terraform/types.ts +8 -0
- package/dist/cli/handlers/op-progress.d.ts +0 -90
- package/dist/cli/handlers/op-progress.d.ts.map +0 -1
- package/dist/cli/handlers/run-client.d.ts +0 -127
- package/dist/cli/handlers/run-client.d.ts.map +0 -1
- package/dist/cli/handlers/run-report.d.ts +0 -5
- package/dist/cli/handlers/run-report.d.ts.map +0 -1
- package/dist/components/temporal-codegen-loader.d.ts +0 -27
- package/dist/components/temporal-codegen-loader.d.ts.map +0 -1
- package/dist/lint/rules/comp/comp004-gate-needs-temporal.d.ts +0 -37
- package/dist/lint/rules/comp/comp004-gate-needs-temporal.d.ts.map +0 -1
- package/src/cli/handlers/op-progress.test.ts +0 -268
- package/src/cli/handlers/op-progress.ts +0 -248
- package/src/cli/handlers/run-client.test.ts +0 -82
- package/src/cli/handlers/run-client.ts +0 -219
- package/src/cli/handlers/run-report.test.ts +0 -62
- package/src/cli/handlers/run-report.ts +0 -122
- package/src/components/temporal-codegen-loader.ts +0 -41
- package/src/lint/rules/comp/comp004-gate-needs-temporal.ts +0 -66
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prior art for chant's audit rules.
|
|
3
|
+
*
|
|
4
|
+
* Most of what `chant audit` checks has been checked before by a dedicated
|
|
5
|
+
* open-source tool: zizmor and poutine for GitHub Actions, hadolint for
|
|
6
|
+
* Dockerfiles, cfn-lint and cfn_nag for CloudFormation, kube-linter and
|
|
7
|
+
* kube-score for Kubernetes manifests, gitleaks for secrets, and so on. chant's
|
|
8
|
+
* rules were written independently against the emitted output, but the ideas
|
|
9
|
+
* are shared, and the people who wrote them down first deserve the credit.
|
|
10
|
+
*
|
|
11
|
+
* A rule declares its lineage as `Lineage[]` on its `RuleMeta` entry: which
|
|
12
|
+
* tool, which upstream rule, where it is documented, and how the two relate.
|
|
13
|
+
* `PRIOR_ART` is the registry those entries key into, so a tool is named,
|
|
14
|
+
* linked and licensed once. The audit rules reference renders both, the
|
|
15
|
+
* markdown and HTML reports credit the tool beside the finding, and the SARIF
|
|
16
|
+
* and JSON outputs carry the entries verbatim for consumers.
|
|
17
|
+
*
|
|
18
|
+
* Lineage is credit, not authority. `authority` (./catalog.ts) is a standard
|
|
19
|
+
* or vendor document that says a finding matters; lineage is a tool that
|
|
20
|
+
* checks the same condition. The two are independent: a rule may have either,
|
|
21
|
+
* both, or neither, and lineage never changes a rule's category or tier.
|
|
22
|
+
*/
|
|
23
|
+
/** How a chant rule relates to the upstream check it credits. */
|
|
24
|
+
export type LineageRelation =
|
|
25
|
+
/** Same condition, same scope. */
|
|
26
|
+
"equivalent"
|
|
27
|
+
/** The core condition is shared; one side is narrower or broader, or a different dialect of the same control. */
|
|
28
|
+
| "overlaps"
|
|
29
|
+
/** chant checks a strict superset of the upstream check. */
|
|
30
|
+
| "extends";
|
|
31
|
+
/** One credit: an upstream tool's rule that checks what this chant rule checks. */
|
|
32
|
+
export interface Lineage {
|
|
33
|
+
/** A key of {@link PRIOR_ART}. */
|
|
34
|
+
tool: PriorArtTool;
|
|
35
|
+
/** The upstream rule id or check name, in the tool's own vocabulary (e.g. `template-injection`, `DL3007`, `CKV_AWS_18`). Omitted when the tool has no per-rule ids. */
|
|
36
|
+
rule?: string;
|
|
37
|
+
/** Where the upstream rule is documented. */
|
|
38
|
+
url: string;
|
|
39
|
+
relation: LineageRelation;
|
|
40
|
+
}
|
|
41
|
+
/** A tool (or, for a few families, a vendor validator) that chant's rules credit. */
|
|
42
|
+
export interface PriorArtEntry {
|
|
43
|
+
name: string;
|
|
44
|
+
url: string;
|
|
45
|
+
/** SPDX identifier where confirmed, else "unverified" or "n/a" for documentation. */
|
|
46
|
+
license: string;
|
|
47
|
+
/** What kind of thing this is, so the rendered credit is honest about it. */
|
|
48
|
+
kind: "scanner" | "vendor-validator" | "specification";
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The registry of prior art. Keys are the slugs `Lineage.tool` uses. Populated
|
|
52
|
+
* from the per-family research recorded in the PR that introduced lineage; the
|
|
53
|
+
* prior-art sweep (scripts/prior-art-sweep.ts) reads the same table.
|
|
54
|
+
*/
|
|
55
|
+
export declare const PRIOR_ART: {
|
|
56
|
+
readonly checkov: {
|
|
57
|
+
readonly name: "Checkov";
|
|
58
|
+
readonly url: "https://www.checkov.io/";
|
|
59
|
+
readonly license: "Apache-2.0";
|
|
60
|
+
readonly kind: "scanner";
|
|
61
|
+
};
|
|
62
|
+
readonly kics: {
|
|
63
|
+
readonly name: "KICS";
|
|
64
|
+
readonly url: "https://docs.kics.io/";
|
|
65
|
+
readonly license: "Apache-2.0";
|
|
66
|
+
readonly kind: "scanner";
|
|
67
|
+
};
|
|
68
|
+
readonly zizmor: {
|
|
69
|
+
readonly name: "zizmor";
|
|
70
|
+
readonly url: "https://docs.zizmor.sh/";
|
|
71
|
+
readonly license: "MIT";
|
|
72
|
+
readonly kind: "scanner";
|
|
73
|
+
};
|
|
74
|
+
readonly "cfn-nag": {
|
|
75
|
+
readonly name: "cfn_nag";
|
|
76
|
+
readonly url: "https://github.com/stelligent/cfn_nag";
|
|
77
|
+
readonly license: "MIT";
|
|
78
|
+
readonly kind: "scanner";
|
|
79
|
+
};
|
|
80
|
+
readonly "gitlab-docs": {
|
|
81
|
+
readonly name: "GitLab CI/CD YAML reference";
|
|
82
|
+
readonly url: "https://docs.gitlab.com/ci/yaml/";
|
|
83
|
+
readonly license: "CC-BY-SA-4.0";
|
|
84
|
+
readonly kind: "specification";
|
|
85
|
+
};
|
|
86
|
+
readonly "guard-rules-registry": {
|
|
87
|
+
readonly name: "AWS Guard Rules Registry";
|
|
88
|
+
readonly url: "https://github.com/aws-cloudformation/aws-guard-rules-registry";
|
|
89
|
+
readonly license: "Apache-2.0";
|
|
90
|
+
readonly kind: "scanner";
|
|
91
|
+
};
|
|
92
|
+
readonly polaris: {
|
|
93
|
+
readonly name: "Fairwinds Polaris";
|
|
94
|
+
readonly url: "https://polaris.docs.fairwinds.com/";
|
|
95
|
+
readonly license: "Apache-2.0";
|
|
96
|
+
readonly kind: "scanner";
|
|
97
|
+
};
|
|
98
|
+
readonly "kube-linter": {
|
|
99
|
+
readonly name: "KubeLinter";
|
|
100
|
+
readonly url: "https://github.com/stackrox/kube-linter";
|
|
101
|
+
readonly license: "Apache-2.0";
|
|
102
|
+
readonly kind: "scanner";
|
|
103
|
+
};
|
|
104
|
+
readonly "kube-score": {
|
|
105
|
+
readonly name: "kube-score";
|
|
106
|
+
readonly url: "https://github.com/zegl/kube-score";
|
|
107
|
+
readonly license: "MIT";
|
|
108
|
+
readonly kind: "scanner";
|
|
109
|
+
};
|
|
110
|
+
readonly "psrule-azure": {
|
|
111
|
+
readonly name: "PSRule for Azure";
|
|
112
|
+
readonly url: "https://azure.github.io/PSRule.Rules.Azure/";
|
|
113
|
+
readonly license: "MIT";
|
|
114
|
+
readonly kind: "scanner";
|
|
115
|
+
};
|
|
116
|
+
readonly "gcp-policy-library": {
|
|
117
|
+
readonly name: "Google Cloud Policy Library";
|
|
118
|
+
readonly url: "https://github.com/GoogleCloudPlatform/policy-library";
|
|
119
|
+
readonly license: "Apache-2.0";
|
|
120
|
+
readonly kind: "scanner";
|
|
121
|
+
};
|
|
122
|
+
readonly poutine: {
|
|
123
|
+
readonly name: "poutine";
|
|
124
|
+
readonly url: "https://boostsecurityio.github.io/poutine/";
|
|
125
|
+
readonly license: "Apache-2.0";
|
|
126
|
+
readonly kind: "scanner";
|
|
127
|
+
};
|
|
128
|
+
readonly scorecard: {
|
|
129
|
+
readonly name: "OpenSSF Scorecard";
|
|
130
|
+
readonly url: "https://github.com/ossf/scorecard";
|
|
131
|
+
readonly license: "Apache-2.0";
|
|
132
|
+
readonly kind: "scanner";
|
|
133
|
+
};
|
|
134
|
+
readonly "cfn-lint": {
|
|
135
|
+
readonly name: "cfn-lint";
|
|
136
|
+
readonly url: "https://github.com/aws-cloudformation/cfn-lint";
|
|
137
|
+
readonly license: "MIT-0";
|
|
138
|
+
readonly kind: "scanner";
|
|
139
|
+
};
|
|
140
|
+
readonly "controlplane-docs": {
|
|
141
|
+
readonly name: "Control Plane reference documentation";
|
|
142
|
+
readonly url: "https://docs.controlplane.com";
|
|
143
|
+
readonly license: "n/a";
|
|
144
|
+
readonly kind: "specification";
|
|
145
|
+
};
|
|
146
|
+
readonly gitleaks: {
|
|
147
|
+
readonly name: "gitleaks";
|
|
148
|
+
readonly url: "https://github.com/gitleaks/gitleaks";
|
|
149
|
+
readonly license: "MIT";
|
|
150
|
+
readonly kind: "scanner";
|
|
151
|
+
};
|
|
152
|
+
readonly octoscan: {
|
|
153
|
+
readonly name: "octoscan";
|
|
154
|
+
readonly url: "https://github.com/synacktiv/octoscan";
|
|
155
|
+
readonly license: "GPL-3.0";
|
|
156
|
+
readonly kind: "scanner";
|
|
157
|
+
};
|
|
158
|
+
readonly "detect-secrets": {
|
|
159
|
+
readonly name: "detect-secrets";
|
|
160
|
+
readonly url: "https://github.com/Yelp/detect-secrets";
|
|
161
|
+
readonly license: "Apache-2.0";
|
|
162
|
+
readonly kind: "scanner";
|
|
163
|
+
};
|
|
164
|
+
readonly actionlint: {
|
|
165
|
+
readonly name: "actionlint";
|
|
166
|
+
readonly url: "https://github.com/rhysd/actionlint";
|
|
167
|
+
readonly license: "MIT";
|
|
168
|
+
readonly kind: "scanner";
|
|
169
|
+
};
|
|
170
|
+
readonly trufflehog: {
|
|
171
|
+
readonly name: "TruffleHog";
|
|
172
|
+
readonly url: "https://github.com/trufflesecurity/trufflehog";
|
|
173
|
+
readonly license: "AGPL-3.0";
|
|
174
|
+
readonly kind: "scanner";
|
|
175
|
+
};
|
|
176
|
+
readonly "gixy-ng": {
|
|
177
|
+
readonly name: "gixy-ng (maintained Gixy fork)";
|
|
178
|
+
readonly url: "https://github.com/dvershinin/gixy";
|
|
179
|
+
readonly license: "MPL-2.0";
|
|
180
|
+
readonly kind: "scanner";
|
|
181
|
+
};
|
|
182
|
+
readonly kubesec: {
|
|
183
|
+
readonly name: "kubesec";
|
|
184
|
+
readonly url: "https://kubesec.io/";
|
|
185
|
+
readonly license: "Apache-2.0";
|
|
186
|
+
readonly kind: "scanner";
|
|
187
|
+
};
|
|
188
|
+
readonly datree: {
|
|
189
|
+
readonly name: "Datree";
|
|
190
|
+
readonly url: "https://hub.datree.io/built-in-rules";
|
|
191
|
+
readonly license: "Apache-2.0";
|
|
192
|
+
readonly kind: "scanner";
|
|
193
|
+
};
|
|
194
|
+
readonly "helm-lint": {
|
|
195
|
+
readonly name: "helm lint";
|
|
196
|
+
readonly url: "https://helm.sh/docs/helm/helm_lint/";
|
|
197
|
+
readonly license: "Apache-2.0";
|
|
198
|
+
readonly kind: "vendor-validator";
|
|
199
|
+
};
|
|
200
|
+
readonly "cedar-validator": {
|
|
201
|
+
readonly name: "Cedar policy validator";
|
|
202
|
+
readonly url: "https://docs.cedarpolicy.com/policies/validation.html";
|
|
203
|
+
readonly license: "Apache-2.0";
|
|
204
|
+
readonly kind: "vendor-validator";
|
|
205
|
+
};
|
|
206
|
+
readonly "flux-docs": {
|
|
207
|
+
readonly name: "Flux Kustomization API reference";
|
|
208
|
+
readonly url: "https://fluxcd.io/flux/components/kustomize/kustomizations/";
|
|
209
|
+
readonly license: "n/a";
|
|
210
|
+
readonly kind: "specification";
|
|
211
|
+
};
|
|
212
|
+
readonly hadolint: {
|
|
213
|
+
readonly name: "hadolint";
|
|
214
|
+
readonly url: "https://github.com/hadolint/hadolint";
|
|
215
|
+
readonly license: "GPL-3.0";
|
|
216
|
+
readonly kind: "scanner";
|
|
217
|
+
};
|
|
218
|
+
readonly "agent-audit": {
|
|
219
|
+
readonly name: "agent-audit";
|
|
220
|
+
readonly url: "https://github.com/piiiico/agent-audit";
|
|
221
|
+
readonly license: "MIT";
|
|
222
|
+
readonly kind: "scanner";
|
|
223
|
+
};
|
|
224
|
+
readonly "arm-ttk": {
|
|
225
|
+
readonly name: "ARM Template Toolkit (arm-ttk)";
|
|
226
|
+
readonly url: "https://github.com/Azure/arm-ttk";
|
|
227
|
+
readonly license: "MIT";
|
|
228
|
+
readonly kind: "scanner";
|
|
229
|
+
};
|
|
230
|
+
readonly "bicep-linter": {
|
|
231
|
+
readonly name: "Bicep linter";
|
|
232
|
+
readonly url: "https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/linter";
|
|
233
|
+
readonly license: "MIT";
|
|
234
|
+
readonly kind: "scanner";
|
|
235
|
+
};
|
|
236
|
+
readonly "cedar-cli": {
|
|
237
|
+
readonly name: "Cedar CLI";
|
|
238
|
+
readonly url: "https://github.com/cedar-policy/cedar/tree/main/cedar-policy-cli";
|
|
239
|
+
readonly license: "Apache-2.0";
|
|
240
|
+
readonly kind: "vendor-validator";
|
|
241
|
+
};
|
|
242
|
+
readonly dockle: {
|
|
243
|
+
readonly name: "Dockle";
|
|
244
|
+
readonly url: "https://github.com/goodwithtech/dockle";
|
|
245
|
+
readonly license: "Apache-2.0";
|
|
246
|
+
readonly kind: "scanner";
|
|
247
|
+
};
|
|
248
|
+
readonly "mcp-audit": {
|
|
249
|
+
readonly name: "mcp-audit (APIsec)";
|
|
250
|
+
readonly url: "https://github.com/apisec-inc/mcp-audit";
|
|
251
|
+
readonly license: "MIT";
|
|
252
|
+
readonly kind: "scanner";
|
|
253
|
+
};
|
|
254
|
+
readonly "render-docs": {
|
|
255
|
+
readonly name: "Render Blueprint YAML reference";
|
|
256
|
+
readonly url: "https://render.com/docs/blueprint-spec";
|
|
257
|
+
readonly license: "n/a";
|
|
258
|
+
readonly kind: "specification";
|
|
259
|
+
};
|
|
260
|
+
readonly "agent-scan": {
|
|
261
|
+
readonly name: "Snyk Agent Scan (formerly mcp-scan)";
|
|
262
|
+
readonly url: "https://github.com/invariantlabs-ai/mcp-scan";
|
|
263
|
+
readonly license: "Apache-2.0";
|
|
264
|
+
readonly kind: "scanner";
|
|
265
|
+
};
|
|
266
|
+
readonly "cedar-docs": {
|
|
267
|
+
readonly name: "Cedar policy language reference";
|
|
268
|
+
readonly url: "https://docs.cedarpolicy.com/policies/json-format.html";
|
|
269
|
+
readonly license: "n/a";
|
|
270
|
+
readonly kind: "specification";
|
|
271
|
+
};
|
|
272
|
+
readonly "cedar-policy-crate": {
|
|
273
|
+
readonly name: "cedar-policy crate (PolicySet loader)";
|
|
274
|
+
readonly url: "https://docs.rs/cedar-policy/latest/cedar_policy/";
|
|
275
|
+
readonly license: "Apache-2.0";
|
|
276
|
+
readonly kind: "vendor-validator";
|
|
277
|
+
};
|
|
278
|
+
readonly "chart-testing": {
|
|
279
|
+
readonly name: "chart-testing (ct)";
|
|
280
|
+
readonly url: "https://github.com/helm/chart-testing";
|
|
281
|
+
readonly license: "Apache-2.0";
|
|
282
|
+
readonly kind: "vendor-validator";
|
|
283
|
+
};
|
|
284
|
+
readonly "fly-docs": {
|
|
285
|
+
readonly name: "Fly Machines API reference";
|
|
286
|
+
readonly url: "https://fly.io/docs/machines/api/machines-resource/";
|
|
287
|
+
readonly license: "n/a";
|
|
288
|
+
readonly kind: "specification";
|
|
289
|
+
};
|
|
290
|
+
readonly gixy: {
|
|
291
|
+
readonly name: "Gixy";
|
|
292
|
+
readonly url: "https://github.com/yandex/gixy";
|
|
293
|
+
readonly license: "MPL-2.0";
|
|
294
|
+
readonly kind: "scanner";
|
|
295
|
+
};
|
|
296
|
+
readonly "kube-bench": {
|
|
297
|
+
readonly name: "kube-bench";
|
|
298
|
+
readonly url: "https://github.com/aquasecurity/kube-bench";
|
|
299
|
+
readonly license: "Apache-2.0";
|
|
300
|
+
readonly kind: "scanner";
|
|
301
|
+
};
|
|
302
|
+
readonly pluto: {
|
|
303
|
+
readonly name: "Pluto";
|
|
304
|
+
readonly url: "https://github.com/FairwindsOps/pluto";
|
|
305
|
+
readonly license: "Apache-2.0";
|
|
306
|
+
readonly kind: "scanner";
|
|
307
|
+
};
|
|
308
|
+
readonly choudoufu: {
|
|
309
|
+
readonly name: "choudoufu";
|
|
310
|
+
readonly url: "https://github.com/INTENTIUS/choudoufu";
|
|
311
|
+
readonly license: "MPL-2.0";
|
|
312
|
+
readonly kind: "scanner";
|
|
313
|
+
};
|
|
314
|
+
readonly "tflint-ruleset-terraform": {
|
|
315
|
+
readonly name: "tflint-ruleset-terraform";
|
|
316
|
+
readonly url: "https://github.com/terraform-linters/tflint-ruleset-terraform";
|
|
317
|
+
readonly license: "MPL-2.0";
|
|
318
|
+
readonly kind: "scanner";
|
|
319
|
+
};
|
|
320
|
+
readonly "terraform-sentinel-policies": {
|
|
321
|
+
readonly name: "HashiCorp reference Sentinel policies";
|
|
322
|
+
readonly url: "https://github.com/hashicorp/terraform-sentinel-policies";
|
|
323
|
+
readonly license: "MPL-2.0";
|
|
324
|
+
readonly kind: "specification";
|
|
325
|
+
};
|
|
326
|
+
readonly "hashicorp-style-guide": {
|
|
327
|
+
readonly name: "HashiCorp Terraform style guide";
|
|
328
|
+
readonly url: "https://developer.hashicorp.com/terraform/language/style";
|
|
329
|
+
readonly license: "n/a";
|
|
330
|
+
readonly kind: "specification";
|
|
331
|
+
};
|
|
332
|
+
readonly "aws-terraform-prescriptive-guidance": {
|
|
333
|
+
readonly name: "AWS prescriptive guidance for Terraform";
|
|
334
|
+
readonly url: "https://docs.aws.amazon.com/prescriptive-guidance/latest/terraform-aws-provider-best-practices/";
|
|
335
|
+
readonly license: "n/a";
|
|
336
|
+
readonly kind: "specification";
|
|
337
|
+
};
|
|
338
|
+
readonly "gcp-terraform-best-practices": {
|
|
339
|
+
readonly name: "Google Cloud Terraform best-practices series";
|
|
340
|
+
readonly url: "https://docs.cloud.google.com/docs/terraform/best-practices/general-style-structure";
|
|
341
|
+
readonly license: "n/a";
|
|
342
|
+
readonly kind: "specification";
|
|
343
|
+
};
|
|
344
|
+
readonly "tflint-ruleset-redeploy": {
|
|
345
|
+
readonly name: "tflint-ruleset-redeploy";
|
|
346
|
+
readonly url: "https://github.com/RedeployAB/tflint-ruleset-redeploy";
|
|
347
|
+
readonly license: "0BSD";
|
|
348
|
+
readonly kind: "scanner";
|
|
349
|
+
};
|
|
350
|
+
readonly "tflint-ruleset-avm": {
|
|
351
|
+
readonly name: "tflint-ruleset-avm (Azure Verified Modules)";
|
|
352
|
+
readonly url: "https://github.com/Azure/tflint-ruleset-avm";
|
|
353
|
+
readonly license: "MIT";
|
|
354
|
+
readonly kind: "scanner";
|
|
355
|
+
};
|
|
356
|
+
readonly tfsec: {
|
|
357
|
+
readonly name: "tfsec";
|
|
358
|
+
readonly url: "https://github.com/aquasecurity/tfsec";
|
|
359
|
+
readonly license: "MIT";
|
|
360
|
+
readonly kind: "scanner";
|
|
361
|
+
};
|
|
362
|
+
readonly semgrep: {
|
|
363
|
+
readonly name: "Semgrep Registry rules";
|
|
364
|
+
readonly url: "https://github.com/semgrep/semgrep-rules";
|
|
365
|
+
readonly license: "Semgrep Rules License v1.0 (proprietary, not an SPDX id)";
|
|
366
|
+
readonly kind: "scanner";
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
export type PriorArtTool = keyof typeof PRIOR_ART;
|
|
370
|
+
/**
|
|
371
|
+
* Attach lineage to a catalog in place. A lexicon keeps its lineage in a
|
|
372
|
+
* sibling `audit-lineage.ts` (one `Record<ruleId, Lineage[]>`) and calls this
|
|
373
|
+
* once at the bottom of its `audit-catalog.ts`, so the prose metadata and the
|
|
374
|
+
* credits stay next to each other but the credits can be regenerated by the
|
|
375
|
+
* prior-art sweep without touching the rule text. Throws at module load if the
|
|
376
|
+
* lineage names a rule the catalog does not have: a stale id is a bug, not a
|
|
377
|
+
* silent no-op.
|
|
378
|
+
*/
|
|
379
|
+
export declare function applyLineage<T extends {
|
|
380
|
+
id: string;
|
|
381
|
+
lineage?: Lineage[];
|
|
382
|
+
}>(catalog: Record<string, T>, lineage: Record<string, Lineage[]>): void;
|
|
383
|
+
/** Render one lineage entry as "tool rule (relation)" for prose contexts. */
|
|
384
|
+
export declare function lineageLabel(l: Lineage): string;
|
|
385
|
+
//# sourceMappingURL=prior-art.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prior-art.d.ts","sourceRoot":"","sources":["../../src/audit/prior-art.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,iEAAiE;AACjE,MAAM,MAAM,eAAe;AACzB,kCAAkC;AAChC,YAAY;AACd,iHAAiH;GAC/G,UAAU;AACZ,4DAA4D;GAC1D,SAAS,CAAC;AAEd,mFAAmF;AACnF,MAAM,WAAW,OAAO;IACtB,kCAAkC;IAClC,IAAI,EAAE,YAAY,CAAC;IACnB,uKAAuK;IACvK,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,qFAAqF;IACrF,OAAO,EAAE,MAAM,CAAC;IAChB,6EAA6E;IAC7E,IAAI,EAAE,SAAS,GAAG,kBAAkB,GAAG,eAAe,CAAC;CACxD;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE4B,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,EACxE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,GACjC,IAAI,CAMN;AAED,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAG/C"}
|
package/dist/audit/proof.d.ts
CHANGED
|
@@ -46,6 +46,22 @@ export declare function extractUnpinnedActions(content: string): Array<{
|
|
|
46
46
|
}>;
|
|
47
47
|
/** Extract unpinned `image:` references (deduped) from CI YAML. */
|
|
48
48
|
export declare function extractUnpinnedImages(content: string): string[];
|
|
49
|
+
/** One `name = "${expr}"` line, split into the parts the fix reassembles. */
|
|
50
|
+
export interface InterpolationOnlyLine {
|
|
51
|
+
/** The attribute's name. */
|
|
52
|
+
name: string;
|
|
53
|
+
/** The expression inside the interpolation, without the `${` and `}`. */
|
|
54
|
+
expr: string;
|
|
55
|
+
/** The same line with the quotes and the `${}` taken off. */
|
|
56
|
+
unwrapped: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Parse a line whose whole value is one interpolation. Exported because a rule
|
|
60
|
+
* and its fix have to agree on what counts: the terraform lexicon's TF016
|
|
61
|
+
* check calls this over a block's source text, and `unwrapInterpolations`
|
|
62
|
+
* below rewrites exactly the lines it accepts.
|
|
63
|
+
*/
|
|
64
|
+
export declare function interpolationOnlyLine(line: string): InterpolationOnlyLine | undefined;
|
|
49
65
|
/**
|
|
50
66
|
* Produce a deterministic fix + diff for a finding, if one is mechanical.
|
|
51
67
|
* Returns `applied: false` with guidance for non-deterministic findings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../src/audit/proof.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACjE,2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACtD,4HAA4H;IAC5H,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;;OAMG;IACH,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,GAAG,UAAU,CAAC;CACzD;AAUD,mFAAmF;AACnF,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC,CAc9F;AA4BD,mEAAmE;AACnE,wBAAgB,qBAAqB,CAAC,OAA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AAM,CAAC;IACb,6DAA6D;IAC7D,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CASrF;AAaD;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,YAAiB,GAAG,WAAW,CAkD/F;AAqCD,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,SAAI,GAAG,MAAM,CAwD/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-html.d.ts","sourceRoot":"","sources":["../../src/audit/report-html.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAqC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAoF,MAAM,gBAAgB,CAAC;AAEjM,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,yDAAyD;AACzD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"report-html.d.ts","sourceRoot":"","sources":["../../src/audit/report-html.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,OAAO,EAAqC,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAoF,MAAM,gBAAgB,CAAC;AAEjM,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,yDAAyD;AACzD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAwJD,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,iBAAsB,GAAG,MAAM,CAoCzF"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { AuditFinding } from "./core.js";
|
|
8
8
|
import type { UnclaimedFile } from "./discover.js";
|
|
9
|
-
import { type Authority, type Category, type FixKind, type RuleMeta, type Tier } from "./catalog.js";
|
|
9
|
+
import { type Authority, type Category, type FixKind, type Lineage, type RuleMeta, type Tier } from "./catalog.js";
|
|
10
10
|
import { type ProveOptions } from "./proof.js";
|
|
11
11
|
import type { Severity } from "../lint/rule.js";
|
|
12
12
|
/**
|
|
@@ -84,6 +84,11 @@ export interface SerializedFinding {
|
|
|
84
84
|
line?: number;
|
|
85
85
|
/** Redaction-safe fingerprint of a flagged value, when applicable (see `secrets.ts`). */
|
|
86
86
|
fingerprint?: string;
|
|
87
|
+
/** Set when the finding is an absence rather than a defect — see `PostSynthDiagnostic.missing` (chant #2113). */
|
|
88
|
+
missing?: {
|
|
89
|
+
kind: string;
|
|
90
|
+
scope: string;
|
|
91
|
+
};
|
|
87
92
|
lexicon: string;
|
|
88
93
|
tier: Tier;
|
|
89
94
|
fixKind: FixKind;
|
|
@@ -92,6 +97,8 @@ export interface SerializedFinding {
|
|
|
92
97
|
title: string;
|
|
93
98
|
remediation: string;
|
|
94
99
|
authority: Authority[];
|
|
100
|
+
/** Prior art: upstream tools whose rules check the same condition (credit, not authority). */
|
|
101
|
+
lineage: Lineage[];
|
|
95
102
|
/** Link to this rule's entry in the audit rules reference. */
|
|
96
103
|
docUrl: string;
|
|
97
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-model.d.ts","sourceRoot":"","sources":["../../src/audit/report-model.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAA4B,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"report-model.d.ts","sourceRoot":"","sources":["../../src/audit/report-model.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAA4B,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1I,OAAO,EAAy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,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;CAAO,GAC7H,eAAe,CA8BjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/audit/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/audit/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAgB5C,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,iEAAiE;IACjE,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACxC,8EAA8E;IAC9E,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACnC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACtB;AAoDD,0CAA0C;AAC1C,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,aAAkB,GAAG,MAAM,CAqCzF"}
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
* Each rule gets an `### <ID>` heading, which Starlight slugifies to `#<id>`
|
|
7
7
|
* (lowercased) — the anchor `ruleDocUrl()` links to.
|
|
8
8
|
*/
|
|
9
|
+
import { type RuleMeta } from "./catalog.js";
|
|
10
|
+
/** Exported for `rules-doc.test.ts` to exercise the alias/deprecated rendering directly against a synthetic `RuleMeta`, without needing a real catalog entry to carry either (chant #2113). */
|
|
11
|
+
export declare function ruleBlock(m: RuleMeta): string;
|
|
9
12
|
/**
|
|
10
13
|
* Render the full audit rules reference page (frontmatter + body). Aggregates
|
|
11
14
|
* the catalog across every audit lexicon (#687) — each provider's rule metadata
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAoE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAqE5G,+LAA+L;AAC/L,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,CAY7C;AAiCD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAqB5D"}
|
package/dist/audit/secrets.d.ts
CHANGED
|
@@ -75,6 +75,21 @@ export declare function fingerprintSecret(value: string): string;
|
|
|
75
75
|
* throwing.
|
|
76
76
|
*/
|
|
77
77
|
export declare function parseSecretsConfig(content: string): SecretsScanOptions;
|
|
78
|
+
/**
|
|
79
|
+
* Shannon entropy in bits per character. Exported so a lexicon's own
|
|
80
|
+
* secret-shape heuristic can score a candidate on the same scale this
|
|
81
|
+
* module's SEC010 catch-all uses (the terraform lexicon's
|
|
82
|
+
* `lint/secret-shape.ts`, #2110) instead of inventing a second one.
|
|
83
|
+
*/
|
|
84
|
+
export declare function shannonEntropy(s: string): number;
|
|
85
|
+
/**
|
|
86
|
+
* Cheap, format-agnostic "this doesn't look like a real secret" filter.
|
|
87
|
+
* Exported for the same reason {@link shannonEntropy} is: the placeholder
|
|
88
|
+
* vocabulary a scanner has to ignore (`changeme`, `example`, `your-api-key`,
|
|
89
|
+
* a run of one repeated character) is the same wherever the candidate came
|
|
90
|
+
* from, and a second copy of this list would drift from this one.
|
|
91
|
+
*/
|
|
92
|
+
export declare function looksLikePlaceholder(value: string): boolean;
|
|
78
93
|
/** The high-entropy catch-all's rule id (kept distinct so callers can special-case it). */
|
|
79
94
|
export declare const ENTROPY_RULE_ID = "SEC010";
|
|
80
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/audit/secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,gEAAgE;IAChE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,0GAA0G;IAC1G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yFAAyF;IACzF,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B;AAOD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,E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B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAK9D;AAqED,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,IAAI,GAAE,kBAAuB,GAAG,YAAY,EAAE,CAmEpG"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TF023 (#2110): Terraform state, or the `.terraform/` working directory,
|
|
3
|
+
* committed to the repository.
|
|
4
|
+
*
|
|
5
|
+
* Every other rule in the TF family is a post-synth check over a parsed root
|
|
6
|
+
* module, contributed by the terraform lexicon. This one is not about HCL at
|
|
7
|
+
* all: the finding is that a path exists in version control, so there is
|
|
8
|
+
* nothing for `chant build` to check and nothing for the lexicon's parser to
|
|
9
|
+
* read. It therefore takes the shape `secrets.ts` established and `wrangler.ts`
|
|
10
|
+
* and `nginx.ts` copied, a path detector plus a check over the discovered file
|
|
11
|
+
* list, called from the audit CLI beside `scanForSecrets`, with its catalog
|
|
12
|
+
* entry in core's own `RULE_CATALOG` (./catalog.ts) rather than a lexicon's.
|
|
13
|
+
* It runs whether or not the terraform lexicon is installed.
|
|
14
|
+
*
|
|
15
|
+
* A state file is a committed secret store: it records every attribute of every
|
|
16
|
+
* managed resource, including the ones providers mark sensitive, in plaintext
|
|
17
|
+
* JSON. `.terraform/` is milder (providers and vendored modules) but is still
|
|
18
|
+
* hundreds of megabytes of machine-generated content, and it can hold a
|
|
19
|
+
* `terraform.tfstate` of its own for the workspace-local backend.
|
|
20
|
+
*
|
|
21
|
+
* Pure: no fs, no network, no Node-only global, so it is Workers-safe (epic #350). The
|
|
22
|
+
* walk that decides which paths reach here is `discover.ts`'s
|
|
23
|
+
* `collectCandidates`, which is also where a locally ignored path is dropped:
|
|
24
|
+
* see `isTerraformStatePath` there and `gitignoreCoversTerraformState` below.
|
|
25
|
+
*/
|
|
26
|
+
import type { AuditFinding } from "./core.js";
|
|
27
|
+
/** The minimal file shape the check needs (matches `discover.ts`'s `RepoFile`). */
|
|
28
|
+
export interface ScannableFile {
|
|
29
|
+
path: string;
|
|
30
|
+
content: string;
|
|
31
|
+
}
|
|
32
|
+
/** `terraform.tfstate`, `terraform.tfstate.backup`, and any other `*.tfstate`. */
|
|
33
|
+
export declare function isTerraformStateFile(path: string): boolean;
|
|
34
|
+
/** The `.terraform` working directory itself, or anything inside it. */
|
|
35
|
+
export declare function isTerraformWorkDir(path: string): boolean;
|
|
36
|
+
/** Either of the two shapes TF023 reports. */
|
|
37
|
+
export declare function isTerraformStatePath(path: string): boolean;
|
|
38
|
+
export declare function gitignoreCoversTerraformState(gitignore: string, path: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Report TF023 for every committed state file and `.terraform/` directory in
|
|
41
|
+
* the file list. One finding per path, and one for the `.terraform` directory
|
|
42
|
+
* as a whole rather than per file inside it: a vendored provider binary is not
|
|
43
|
+
* a separate finding from the directory that holds it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function auditTerraformState(files: ScannableFile[]): AuditFinding[];
|
|
46
|
+
//# sourceMappingURL=terraform-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terraform-state.d.ts","sourceRoot":"","sources":["../../src/audit/terraform-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,mFAAmF;AACnF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED,8CAA8C;AAC9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAoBD,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CActF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE,CAuC1E"}
|
package/dist/build.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import type { Serializer, SerializerResult } from "./serializer.js";
|
|
|
3
3
|
import type { OwnershipMarker } from "./ownership.js";
|
|
4
4
|
import type { BuildError } from "./errors.js";
|
|
5
5
|
import type { IntrinsicDef, BuildRootContributor } from "./lexicon.js";
|
|
6
|
-
import type
|
|
6
|
+
import { type BuildParamProvenance } from "./provenance.js";
|
|
7
|
+
import { type FoldProvenance } from "./fold-provenance.js";
|
|
7
8
|
import { DiscoveryError } from "./errors.js";
|
|
8
9
|
import { LexiconOutput } from "./lexicon-output.js";
|
|
9
10
|
import { type FoldDecision } from "./discovery/index.js";
|
|
@@ -179,6 +180,21 @@ export interface BuildResult {
|
|
|
179
180
|
* supplies none.
|
|
180
181
|
*/
|
|
181
182
|
buildParams: BuildParamProvenance[];
|
|
183
|
+
/**
|
|
184
|
+
* chant #2161 — emitted property path to origin, per entity: which composite
|
|
185
|
+
* parameter produced the field, which literal the composite fixes, which the
|
|
186
|
+
* author declared directly, and which this build could not attribute.
|
|
187
|
+
*
|
|
188
|
+
* Beside the output on purpose, and never inside it. Nothing here is passed
|
|
189
|
+
* to a serializer, so it cannot reach the document an applier writes; see
|
|
190
|
+
* ./fold-provenance.ts's module doc and `fold-provenance-exclusion.test.ts`.
|
|
191
|
+
*
|
|
192
|
+
* Every entity with properties appears. The origins are as fine as the build
|
|
193
|
+
* managed: a run build, or a fold build over a factory outside the
|
|
194
|
+
* interpretable subset, records `unknown` for a composite's fields rather
|
|
195
|
+
* than guessing.
|
|
196
|
+
*/
|
|
197
|
+
foldProvenance: FoldProvenance;
|
|
182
198
|
}
|
|
183
199
|
/**
|
|
184
200
|
* Partitions entities by their lexicon field.
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAyB,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAyB,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAiC,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AAQlE,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAmB,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAKvF;;GAEG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