@intentius/chant-lexicon-terraform 0.124.54 → 0.124.56
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 +7 -4
- package/dist/ci-setup.d.ts +11 -0
- package/dist/ci-setup.d.ts.map +1 -0
- package/dist/ci-setup.js +41 -0
- package/dist/components/capability-plugin.d.ts +40 -6
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/capability-plugin.js +174 -30
- package/dist/components/compose-group.d.ts +1 -1
- package/dist/components/compose-group.d.ts.map +1 -1
- package/dist/components/compose-group.js +1 -1
- package/dist/components/release-inputs.d.ts +29 -0
- package/dist/components/release-inputs.d.ts.map +1 -0
- package/dist/components/release-inputs.js +57 -0
- package/dist/components/trace-facts.d.ts +16 -0
- package/dist/components/trace-facts.d.ts.map +1 -0
- package/dist/components/trace-facts.js +19 -0
- package/dist/cone.d.ts +53 -0
- package/dist/cone.d.ts.map +1 -0
- package/dist/cone.js +119 -0
- package/dist/cost-hold.d.ts +27 -0
- package/dist/cost-hold.d.ts.map +1 -0
- package/dist/cost-hold.js +21 -0
- package/dist/drift-rows.d.ts +61 -0
- package/dist/drift-rows.d.ts.map +1 -0
- package/dist/drift-rows.js +108 -0
- package/dist/exit-codes.d.ts +55 -0
- package/dist/exit-codes.d.ts.map +1 -0
- package/dist/exit-codes.js +48 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/integrity.json +7 -4
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/audit-catalog.js +27 -3
- package/dist/lint/audit-lineage.d.ts +14 -2
- package/dist/lint/audit-lineage.d.ts.map +1 -1
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/post-synth/index.js +4 -0
- package/dist/lint/post-synth/record-store.d.ts +54 -0
- package/dist/lint/post-synth/record-store.d.ts.map +1 -0
- package/dist/lint/post-synth/record-store.js +104 -0
- package/dist/lint/post-synth/tf001.d.ts +2 -2
- package/dist/lint/post-synth/tf001.js +2 -2
- package/dist/lint/post-synth/tf024.d.ts +35 -11
- package/dist/lint/post-synth/tf024.d.ts.map +1 -1
- package/dist/lint/post-synth/tf024.js +92 -20
- package/dist/lint/post-synth/tf046.d.ts +64 -0
- package/dist/lint/post-synth/tf046.d.ts.map +1 -0
- package/dist/lint/post-synth/tf046.js +175 -0
- package/dist/lint/post-synth/tf047.d.ts +36 -0
- package/dist/lint/post-synth/tf047.d.ts.map +1 -0
- package/dist/lint/post-synth/tf047.js +94 -0
- package/dist/lock-rows.d.ts +36 -0
- package/dist/lock-rows.d.ts.map +1 -0
- package/dist/lock-rows.js +60 -0
- package/dist/lock-timeout.d.ts +22 -0
- package/dist/lock-timeout.d.ts.map +1 -0
- package/dist/lock-timeout.js +32 -0
- package/dist/manifest.json +1 -1
- package/dist/module-catalog/index.d.ts +69 -0
- package/dist/module-catalog/index.d.ts.map +1 -0
- package/dist/module-catalog/index.js +110 -0
- package/dist/module-catalog/refresh-cli.d.ts +4 -0
- package/dist/module-catalog/refresh-cli.d.ts.map +1 -0
- package/dist/module-catalog/refresh-cli.js +64 -0
- package/dist/module-catalog/static-tier.d.ts +6 -0
- package/dist/module-catalog/static-tier.d.ts.map +1 -0
- package/dist/module-catalog/static-tier.js +1650 -0
- package/dist/module-catalog/types.d.ts +65 -0
- package/dist/module-catalog/types.d.ts.map +1 -0
- package/dist/module-catalog/types.js +33 -0
- package/dist/okf/index.md +3 -1
- package/dist/okf/rules/TF024.md +2 -2
- package/dist/okf/rules/TF046.md +11 -0
- package/dist/okf/rules/TF047.md +11 -0
- package/dist/op/activities/terraform.d.ts +29 -0
- package/dist/op/activities/terraform.d.ts.map +1 -1
- package/dist/op/activities/terraform.js +19 -4
- package/dist/pin/consumers.d.ts +35 -0
- package/dist/pin/consumers.d.ts.map +1 -0
- package/dist/pin/consumers.js +70 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +5 -0
- package/dist/registry/address.d.ts +63 -0
- package/dist/registry/address.d.ts.map +1 -0
- package/dist/registry/address.js +65 -0
- package/dist/registry/catalog-read.d.ts +14 -0
- package/dist/registry/catalog-read.d.ts.map +1 -0
- package/dist/registry/catalog-read.js +58 -0
- package/dist/registry/deprecated.d.ts +37 -0
- package/dist/registry/deprecated.d.ts.map +1 -0
- package/dist/registry/deprecated.js +43 -0
- package/dist/registry/docs.d.ts +96 -0
- package/dist/registry/docs.d.ts.map +1 -0
- package/dist/registry/docs.js +210 -0
- package/dist/registry/edge/edge.d.ts +46 -0
- package/dist/registry/edge/edge.d.ts.map +1 -0
- package/dist/registry/edge/edge.js +194 -0
- package/dist/registry/edge/index.d.ts +11 -0
- package/dist/registry/edge/index.d.ts.map +1 -0
- package/dist/registry/edge/index.js +10 -0
- package/dist/registry/edge/lambda-edge.d.ts +76 -0
- package/dist/registry/edge/lambda-edge.d.ts.map +1 -0
- package/dist/registry/edge/lambda-edge.js +95 -0
- package/dist/registry/edge/sigv4-web.d.ts +33 -0
- package/dist/registry/edge/sigv4-web.d.ts.map +1 -0
- package/dist/registry/edge/sigv4-web.js +56 -0
- package/dist/registry/edge/token-source.d.ts +73 -0
- package/dist/registry/edge/token-source.d.ts.map +1 -0
- package/dist/registry/edge/token-source.js +115 -0
- package/dist/registry/edge/worker.d.ts +45 -0
- package/dist/registry/edge/worker.d.ts.map +1 -0
- package/dist/registry/edge/worker.js +26 -0
- package/dist/registry/handler.d.ts +25 -0
- package/dist/registry/handler.d.ts.map +1 -0
- package/dist/registry/handler.js +75 -0
- package/dist/registry/headers-file.d.ts +21 -0
- package/dist/registry/headers-file.d.ts.map +1 -0
- package/dist/registry/headers-file.js +57 -0
- package/dist/registry/index.d.ts +31 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +30 -0
- package/dist/registry/mirror-paths.d.ts +9 -0
- package/dist/registry/mirror-paths.d.ts.map +1 -0
- package/dist/registry/mirror-paths.js +8 -0
- package/dist/registry/mirror.d.ts +130 -0
- package/dist/registry/mirror.d.ts.map +1 -0
- package/dist/registry/mirror.js +319 -0
- package/dist/registry/proxies.d.ts +73 -0
- package/dist/registry/proxies.d.ts.map +1 -0
- package/dist/registry/proxies.js +111 -0
- package/dist/registry/reader.d.ts +57 -0
- package/dist/registry/reader.d.ts.map +1 -0
- package/dist/registry/reader.js +198 -0
- package/dist/registry/semver.d.ts +16 -0
- package/dist/registry/semver.d.ts.map +1 -0
- package/dist/registry/semver.js +24 -0
- package/dist/registry/serve.d.ts +24 -0
- package/dist/registry/serve.d.ts.map +1 -0
- package/dist/registry/serve.js +64 -0
- package/dist/registry/source-forms.d.ts +79 -0
- package/dist/registry/source-forms.d.ts.map +1 -0
- package/dist/registry/source-forms.js +202 -0
- package/dist/registry/targets/artifactory.d.ts +28 -0
- package/dist/registry/targets/artifactory.d.ts.map +1 -0
- package/dist/registry/targets/artifactory.js +206 -0
- package/dist/registry/targets/fake-artifactory.d.ts +30 -0
- package/dist/registry/targets/fake-artifactory.d.ts.map +1 -0
- package/dist/registry/targets/fake-artifactory.js +142 -0
- package/dist/registry/targets/fake-gitlab.d.ts +39 -0
- package/dist/registry/targets/fake-gitlab.d.ts.map +1 -0
- package/dist/registry/targets/fake-gitlab.js +136 -0
- package/dist/registry/targets/fake-hcp.d.ts +50 -0
- package/dist/registry/targets/fake-hcp.d.ts.map +1 -0
- package/dist/registry/targets/fake-hcp.js +202 -0
- package/dist/registry/targets/fake-http.d.ts +31 -0
- package/dist/registry/targets/fake-http.d.ts.map +1 -0
- package/dist/registry/targets/fake-http.js +87 -0
- package/dist/registry/targets/fake-nexus.d.ts +27 -0
- package/dist/registry/targets/fake-nexus.d.ts.map +1 -0
- package/dist/registry/targets/fake-nexus.js +137 -0
- package/dist/registry/targets/gitlab.d.ts +53 -0
- package/dist/registry/targets/gitlab.d.ts.map +1 -0
- package/dist/registry/targets/gitlab.js +187 -0
- package/dist/registry/targets/hcp.d.ts +29 -0
- package/dist/registry/targets/hcp.d.ts.map +1 -0
- package/dist/registry/targets/hcp.js +310 -0
- package/dist/registry/targets/hosted.d.ts +62 -0
- package/dist/registry/targets/hosted.d.ts.map +1 -0
- package/dist/registry/targets/hosted.js +74 -0
- package/dist/registry/targets/index.d.ts +18 -0
- package/dist/registry/targets/index.d.ts.map +1 -0
- package/dist/registry/targets/index.js +17 -0
- package/dist/registry/targets/module-target.d.ts +68 -0
- package/dist/registry/targets/module-target.d.ts.map +1 -0
- package/dist/registry/targets/module-target.js +63 -0
- package/dist/registry/targets/nexus.d.ts +43 -0
- package/dist/registry/targets/nexus.d.ts.map +1 -0
- package/dist/registry/targets/nexus.js +250 -0
- package/dist/registry/targets/zip.d.ts +55 -0
- package/dist/registry/targets/zip.d.ts.map +1 -0
- package/dist/registry/targets/zip.js +278 -0
- package/dist/registry/writer.d.ts +101 -0
- package/dist/registry/writer.d.ts.map +1 -0
- package/dist/registry/writer.js +109 -0
- package/dist/rules/record-store.ts +122 -0
- package/dist/rules/tf001.ts +2 -2
- package/dist/rules/tf024.ts +105 -22
- package/dist/rules/tf046.ts +204 -0
- package/dist/rules/tf047.ts +114 -0
- package/dist/state/azure-blob.d.ts +8 -67
- package/dist/state/azure-blob.d.ts.map +1 -1
- package/dist/state/azure-blob.js +6 -199
- package/dist/state/gcs.d.ts +7 -61
- package/dist/state/gcs.d.ts.map +1 -1
- package/dist/state/gcs.js +5 -222
- package/dist/state/object-store.d.ts +4 -33
- package/dist/state/object-store.d.ts.map +1 -1
- package/dist/state/object-store.js +4 -17
- package/dist/state/s3.d.ts +11 -58
- package/dist/state/s3.d.ts.map +1 -1
- package/dist/state/s3.js +10 -161
- package/dist/state/store.js +2 -2
- package/dist/state-ops.d.ts +255 -0
- package/dist/state-ops.d.ts.map +1 -0
- package/dist/state-ops.js +305 -0
- package/dist/state-reads.d.ts +57 -0
- package/dist/state-reads.d.ts.map +1 -0
- package/dist/state-reads.js +104 -0
- package/dist/used-sources.d.ts +54 -0
- package/dist/used-sources.d.ts.map +1 -0
- package/dist/used-sources.js +157 -0
- package/package.json +19 -3
- package/src/__fixtures__/drift-record/README.md +5 -0
- package/src/__fixtures__/drift-rows/live-root-plan.json +70 -0
- package/src/__fixtures__/drift-rows/refresh-plan.json +61 -0
- package/src/__fixtures__/used-sources/root/extra.tofu +1 -0
- package/src/__fixtures__/used-sources/root/main.tf +31 -0
- package/src/__fixtures__/used-sources/root/modules/net/main.tf +14 -0
- package/src/__fixtures__/used-sources/root/modules/net/versions.tf.json +7 -0
- package/src/__fixtures__/used-sources/unit/terragrunt.hcl +3 -0
- package/src/ci-setup.ts +42 -0
- package/src/components/capability-plugin.test.ts +26 -14
- package/src/components/capability-plugin.ts +185 -31
- package/src/components/compose-group.ts +1 -1
- package/src/components/pr-loop-compose.tofu.e2e.test.ts +1 -1
- package/src/components/pr-loop.tofu.test.ts +1 -1
- package/src/components/release-inputs.ts +69 -0
- package/src/components/trace-facts.test.ts +21 -0
- package/src/components/trace-facts.ts +27 -0
- package/src/cone.ts +138 -0
- package/src/cost-hold.ts +29 -0
- package/src/describe-resources.engine-facts.test.ts +2 -3
- package/src/drift-rows.test.ts +135 -0
- package/src/drift-rows.ts +137 -0
- package/src/exit-codes.test.ts +23 -0
- package/src/exit-codes.ts +59 -0
- package/src/index.ts +3 -0
- package/src/lint/audit-catalog.ts +29 -3
- package/src/lint/audit-lineage.ts +14 -2
- package/src/lint/post-synth/fixtures/TF024/live-with-record-store/main.tf +18 -0
- package/src/lint/post-synth/fixtures/TF024/sidecar-with-backend/estate.chdf.hcl +1 -0
- package/src/lint/post-synth/fixtures/TF024/sidecar-with-backend/main.tf +10 -0
- package/src/lint/post-synth/fixtures/TF046/azurerm-no-resource-group/main.tf +15 -0
- package/src/lint/post-synth/fixtures/TF046/backend-config-only/main.tf +14 -0
- package/src/lint/post-synth/fixtures/TF046/derived-s3/backend.tf +7 -0
- package/src/lint/post-synth/fixtures/TF046/derived-s3/main.tf +9 -0
- package/src/lint/post-synth/fixtures/TF046/explicit-local/main.tf +16 -0
- package/src/lint/post-synth/fixtures/TF046/explicit-s3-beside-local-backend/main.tf +15 -0
- package/src/lint/post-synth/fixtures/TF046/implied-local/main.tf +9 -0
- package/src/lint/post-synth/fixtures/TF046/sidecar-implied/estate.chdf.hcl +1 -0
- package/src/lint/post-synth/fixtures/TF046/sidecar-implied/main.tf +5 -0
- package/src/lint/post-synth/fixtures/TF047/clear/main.tf +12 -0
- package/src/lint/post-synth/fixtures/TF047/refused/main.tf +12 -0
- package/src/lint/post-synth/fixtures/TF047/unknown-module/main.tf +12 -0
- package/src/lint/post-synth/fixtures/TF047/unknown-version/main.tf +12 -0
- package/src/lint/post-synth/index.ts +4 -0
- package/src/lint/post-synth/record-store.ts +122 -0
- package/src/lint/post-synth/tf001.ts +2 -2
- package/src/lint/post-synth/tf024.test.ts +26 -5
- package/src/lint/post-synth/tf024.ts +105 -22
- package/src/lint/post-synth/tf046.test.ts +137 -0
- package/src/lint/post-synth/tf046.ts +204 -0
- package/src/lint/post-synth/tf047.test.ts +56 -0
- package/src/lint/post-synth/tf047.ts +114 -0
- package/src/lock-rows.test.ts +70 -0
- package/src/lock-rows.ts +82 -0
- package/src/lock-timeout.ts +34 -0
- package/src/module-catalog/index.test.ts +93 -0
- package/src/module-catalog/index.ts +159 -0
- package/src/module-catalog/refresh-cli.ts +68 -0
- package/src/module-catalog/static-tier.ts +1659 -0
- package/src/module-catalog/types.ts +88 -0
- package/src/op/activities/terraform.ts +46 -5
- package/src/op-wave-step.test.ts +109 -0
- package/src/pin/__fixtures__/consumers/live/dev/main.tf +4 -0
- package/src/pin/__fixtures__/consumers/live/prod/main.tf +21 -0
- package/src/pin/__fixtures__/consumers/units/vpc/terragrunt.hcl +7 -0
- package/src/pin/consumers.test.ts +57 -0
- package/src/pin/consumers.ts +95 -0
- package/src/plugin.ts +6 -0
- package/src/registry/__fixtures__/docs/documented/.terraform-docs.yml +3 -0
- package/src/registry/__fixtures__/docs/documented/README.md +1 -0
- package/src/registry/__fixtures__/docs/documented/main.tf +8 -0
- package/src/registry/__fixtures__/docs/json/main.tf.json +14 -0
- package/src/registry/__fixtures__/docs/vpc/README.md +3 -0
- package/src/registry/__fixtures__/docs/vpc/examples/complete/main.tf +5 -0
- package/src/registry/__fixtures__/docs/vpc/examples/simple/README.md +1 -0
- package/src/registry/__fixtures__/docs/vpc/examples/simple/main.tf +4 -0
- package/src/registry/__fixtures__/docs/vpc/main.tf +14 -0
- package/src/registry/__fixtures__/docs/vpc/outputs.tf +9 -0
- package/src/registry/__fixtures__/docs/vpc/variables.tf +16 -0
- package/src/registry/__fixtures__/proxied-root/main.tf +12 -0
- package/src/registry/address.ts +100 -0
- package/src/registry/catalog-read.ts +56 -0
- package/src/registry/deprecated.test.ts +139 -0
- package/src/registry/deprecated.ts +76 -0
- package/src/registry/docs.test.ts +140 -0
- package/src/registry/docs.ts +299 -0
- package/src/registry/edge/bundle.test.ts +50 -0
- package/src/registry/edge/edge.test.ts +176 -0
- package/src/registry/edge/edge.ts +211 -0
- package/src/registry/edge/index.ts +10 -0
- package/src/registry/edge/lambda-edge.ts +127 -0
- package/src/registry/edge/sigv4-web.ts +79 -0
- package/src/registry/edge/token-source.test.ts +258 -0
- package/src/registry/edge/token-source.ts +169 -0
- package/src/registry/edge/worker.ts +61 -0
- package/src/registry/handler.ts +89 -0
- package/src/registry/headers-file.ts +61 -0
- package/src/registry/index.ts +31 -0
- package/src/registry/mirror-paths.ts +10 -0
- package/src/registry/mirror.test.ts +198 -0
- package/src/registry/mirror.ts +395 -0
- package/src/registry/proxies.test.ts +153 -0
- package/src/registry/proxies.ts +132 -0
- package/src/registry/reader.ts +225 -0
- package/src/registry/registry.test.ts +262 -0
- package/src/registry/semver.ts +34 -0
- package/src/registry/serve.ts +82 -0
- package/src/registry/source-forms.test.ts +87 -0
- package/src/registry/source-forms.ts +216 -0
- package/src/registry/targets/artifactory.test.ts +248 -0
- package/src/registry/targets/artifactory.ts +257 -0
- package/src/registry/targets/fake-artifactory.ts +158 -0
- package/src/registry/targets/fake-gitlab.ts +161 -0
- package/src/registry/targets/fake-hcp.ts +233 -0
- package/src/registry/targets/fake-http.ts +97 -0
- package/src/registry/targets/fake-nexus.ts +152 -0
- package/src/registry/targets/gitlab.test.ts +208 -0
- package/src/registry/targets/gitlab.ts +223 -0
- package/src/registry/targets/hcp.test.ts +230 -0
- package/src/registry/targets/hcp.ts +360 -0
- package/src/registry/targets/hosted.ts +117 -0
- package/src/registry/targets/index.ts +17 -0
- package/src/registry/targets/module-target.ts +131 -0
- package/src/registry/targets/nexus.test.ts +220 -0
- package/src/registry/targets/nexus.ts +314 -0
- package/src/registry/targets/zip.test.ts +65 -0
- package/src/registry/targets/zip.ts +287 -0
- package/src/registry/writer.ts +155 -0
- package/src/state/azure-blob.ts +6 -221
- package/src/state/gcs.ts +5 -252
- package/src/state/object-store.ts +4 -32
- package/src/state/s3.ts +10 -182
- package/src/state/store.ts +2 -2
- package/src/state-ops.test.ts +182 -0
- package/src/state-ops.ts +462 -0
- package/src/state-reads.ts +116 -0
- package/src/used-sources.test.ts +75 -0
- package/src/used-sources.ts +204 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shape of choudoufu's `live/module-compat.json` (choudoufu#2292,
|
|
3
|
+
* `tools/modcompat/modcompat.go`), as far as the known-module catalog reads
|
|
4
|
+
* it. Only the static tier is typed here; see `./refresh-cli.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/** One refusal on a static row: a choudoufu refusal ID and where it is documented. */
|
|
7
|
+
export interface StaticRefusal {
|
|
8
|
+
id: string;
|
|
9
|
+
layer: string;
|
|
10
|
+
sites: number;
|
|
11
|
+
docs_ref: string;
|
|
12
|
+
docs_url: string;
|
|
13
|
+
}
|
|
14
|
+
/** One terraform-aws-modules example measured offline in the onboarded form. */
|
|
15
|
+
export interface StaticRow {
|
|
16
|
+
tier: "static";
|
|
17
|
+
/** Registry address, `terraform-aws-modules/vpc/aws`. */
|
|
18
|
+
module: string;
|
|
19
|
+
/** The module repository's tag, `v6.6.1`. */
|
|
20
|
+
version: string;
|
|
21
|
+
/** The example directory inside the module repository. */
|
|
22
|
+
example: string;
|
|
23
|
+
date: string;
|
|
24
|
+
commit: string;
|
|
25
|
+
aws_provider: string;
|
|
26
|
+
verdict: "clear" | "refused" | "unmeasured";
|
|
27
|
+
/** Eligible data-source reads. These never refuse and are not refusals. */
|
|
28
|
+
reads: number;
|
|
29
|
+
refusals: StaticRefusal[];
|
|
30
|
+
reason?: string;
|
|
31
|
+
partial_schemas?: string[];
|
|
32
|
+
}
|
|
33
|
+
export interface StaticSource {
|
|
34
|
+
module: string;
|
|
35
|
+
repo: string;
|
|
36
|
+
version: string;
|
|
37
|
+
commit: string;
|
|
38
|
+
glob: string;
|
|
39
|
+
examples: number;
|
|
40
|
+
}
|
|
41
|
+
/** How the static tier was measured. */
|
|
42
|
+
export interface StaticMeasurement {
|
|
43
|
+
date: string;
|
|
44
|
+
commit: string;
|
|
45
|
+
instrument: string;
|
|
46
|
+
form: string;
|
|
47
|
+
schemas: boolean;
|
|
48
|
+
second_pass: boolean;
|
|
49
|
+
aws_provider: string;
|
|
50
|
+
sources: StaticSource[];
|
|
51
|
+
}
|
|
52
|
+
/** The parts of the file the catalog reads. */
|
|
53
|
+
export interface ModuleCompatFile {
|
|
54
|
+
schema: number;
|
|
55
|
+
static_measurement: StaticMeasurement;
|
|
56
|
+
static: StaticRow[];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check a parsed `live/module-compat.json` against the shape above and return
|
|
60
|
+
* it. Throws on a schema other than 1, a row outside the static tier, or a
|
|
61
|
+
* row whose verdict disagrees with its refusals, so a refresh never vendors a
|
|
62
|
+
* table the catalog would misread.
|
|
63
|
+
*/
|
|
64
|
+
export declare function parseModuleCompat(raw: unknown): ModuleCompatFile;
|
|
65
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sour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AO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,+CAA+C;AAC/C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,iBAAiB,CAAC;IACtC,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAID;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,gBAAgB,CAgBhE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shape of choudoufu's `live/module-compat.json` (choudoufu#2292,
|
|
3
|
+
* `tools/modcompat/modcompat.go`), as far as the known-module catalog reads
|
|
4
|
+
* it. Only the static tier is typed here; see `./refresh-cli.ts`.
|
|
5
|
+
*/
|
|
6
|
+
const VERDICTS = new Set(["clear", "refused", "unmeasured"]);
|
|
7
|
+
/**
|
|
8
|
+
* Check a parsed `live/module-compat.json` against the shape above and return
|
|
9
|
+
* it. Throws on a schema other than 1, a row outside the static tier, or a
|
|
10
|
+
* row whose verdict disagrees with its refusals, so a refresh never vendors a
|
|
11
|
+
* table the catalog would misread.
|
|
12
|
+
*/
|
|
13
|
+
export function parseModuleCompat(raw) {
|
|
14
|
+
const file = raw;
|
|
15
|
+
if (file?.schema !== 1)
|
|
16
|
+
throw new Error(`module-compat.json: schema ${String(file?.schema)}, expected 1`);
|
|
17
|
+
if (!file.static_measurement || !Array.isArray(file.static)) {
|
|
18
|
+
throw new Error("module-compat.json: missing static_measurement or static");
|
|
19
|
+
}
|
|
20
|
+
for (const row of file.static) {
|
|
21
|
+
const where = `${row.module} ${row.version} ${row.example}`;
|
|
22
|
+
if (row.tier !== "static")
|
|
23
|
+
throw new Error(`module-compat.json: ${where} is in the static array with tier ${row.tier}`);
|
|
24
|
+
if (!VERDICTS.has(row.verdict))
|
|
25
|
+
throw new Error(`module-compat.json: ${where} has verdict ${row.verdict}`);
|
|
26
|
+
if (!Array.isArray(row.refusals))
|
|
27
|
+
throw new Error(`module-compat.json: ${where} has no refusals list`);
|
|
28
|
+
if ((row.verdict === "refused") !== (row.refusals.length > 0)) {
|
|
29
|
+
throw new Error(`module-compat.json: ${where} is ${row.verdict} with ${row.refusals.length} refusals`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return { schema: file.schema, static_measurement: file.static_measurement, static: file.static };
|
|
33
|
+
}
|
package/dist/okf/index.md
CHANGED
|
@@ -26,7 +26,7 @@ okf_version: '0.2'
|
|
|
26
26
|
* [TF020](/rules/TF020.md) - Declaration is never referenced in its module scope
|
|
27
27
|
* [TF021](/rules/TF021.md) - count builds instance identities from count.index where for_each is safer
|
|
28
28
|
* [TF022](/rules/TF022.md) - Credential-named resource attribute holds a plaintext literal
|
|
29
|
-
* [TF024](/rules/TF024.md) - Live root declares a backend or cloud block, which choudoufu
|
|
29
|
+
* [TF024](/rules/TF024.md) - Live root declares a backend or cloud block, which choudoufu ignores
|
|
30
30
|
* [TF025](/rules/TF025.md) - Live root references a non-default terraform.workspace, which choudoufu refuses
|
|
31
31
|
* [TF026](/rules/TF026.md) - Live root declares delete: "never" but its policy leaves undeclared_tagged at "delete"
|
|
32
32
|
* [TF027](/rules/TF027.md) - Live root's policy block sets undeclared_untagged = "delete", which deletes resources chant does not own
|
|
@@ -48,4 +48,6 @@ okf_version: '0.2'
|
|
|
48
48
|
* [TF043](/rules/TF043.md) - Terragrunt terraform.source names no version (git ref, tfr version or oci tag)
|
|
49
49
|
* [TF044](/rules/TF044.md) - Terragrunt config keeps state in a local backend
|
|
50
50
|
* [TF045](/rules/TF045.md) - No Terragrunt config sets terragrunt_version_constraint
|
|
51
|
+
* [TF046](/rules/TF046.md) - Live root resolves to the local record store in a CI run
|
|
52
|
+
* [TF047](/rules/TF047.md) - Live root pins a module version the known-module catalog has no row for, or one with refusals
|
|
51
53
|
* [TF101](/rules/TF101.md) - terraformApply's planFile must reference a preceding terraformPlan step.
|
package/dist/okf/rules/TF024.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
type: post-synth-check
|
|
3
3
|
title: TF024
|
|
4
|
-
description: Live root declares a backend or cloud block, which choudoufu
|
|
4
|
+
description: Live root declares a backend or cloud block, which choudoufu ignores
|
|
5
5
|
id: TF024
|
|
6
6
|
severity: error
|
|
7
7
|
category: post-synth
|
|
8
8
|
lexicon: terraform
|
|
9
9
|
docs: https://intentius.io/chant/lexicons/terraform/rules/
|
|
10
10
|
---
|
|
11
|
-
Live root declares a backend or cloud block, which choudoufu
|
|
11
|
+
Live root declares a backend or cloud block, which choudoufu ignores
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: TF046
|
|
4
|
+
description: Live root resolves to the local record store in a CI run
|
|
5
|
+
id: TF046
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: terraform
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/terraform/rules/
|
|
10
|
+
---
|
|
11
|
+
Live root resolves to the local record store in a CI run
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: post-synth-check
|
|
3
|
+
title: TF047
|
|
4
|
+
description: Live root pins a module version the known-module catalog has no row for, or one with refusals
|
|
5
|
+
id: TF047
|
|
6
|
+
severity: error
|
|
7
|
+
category: post-synth
|
|
8
|
+
lexicon: terraform
|
|
9
|
+
docs: https://intentius.io/chant/lexicons/terraform/rules/
|
|
10
|
+
---
|
|
11
|
+
Live root pins a module version the known-module catalog has no row for, or one with refusals
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
*/
|
|
41
41
|
import type { ChangeSetPart } from "@intentius/chant/change-set";
|
|
42
42
|
import type { TerraformConfig, TerraformRootConfig } from "../../config.js";
|
|
43
|
+
import { type PlanCone } from "../../cone.js";
|
|
43
44
|
import { type AdoptionCandidate } from "../adoption.js";
|
|
44
45
|
/** Plan file written into the root directory when a step names none. */
|
|
45
46
|
export declare const DEFAULT_PLAN_FILE = "chant.tfplan";
|
|
@@ -156,6 +157,14 @@ export interface TerraformRootArgs {
|
|
|
156
157
|
* `process.cwd()`, which is the project root under `chant run`.
|
|
157
158
|
*/
|
|
158
159
|
cwd?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The directory the root's files are read from in place of the entry's
|
|
162
|
+
* `dir`, relative to the project root (chant#4542). A promote or rollback
|
|
163
|
+
* under a release sets it to the release's recorded copy of the root; the
|
|
164
|
+
* entry's workspace, var files, backend config and estate still apply, and
|
|
165
|
+
* its var files and backend-config files resolve against this directory.
|
|
166
|
+
*/
|
|
167
|
+
dir?: string;
|
|
159
168
|
}
|
|
160
169
|
export interface TerraformInitArgs extends TerraformRootArgs {
|
|
161
170
|
/** `-upgrade`: re-resolve provider and module versions within constraints. */
|
|
@@ -190,6 +199,19 @@ export interface TerraformPlanArgs extends TerraformRootArgs {
|
|
|
190
199
|
* the text, such as the `terraform-apply` capability. Default: `true`.
|
|
191
200
|
*/
|
|
192
201
|
text?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* How long the plan waits for another run's state lock (#4545), passed as
|
|
204
|
+
* `-lock-timeout` unless `TF_CLI_ARGS` or `TF_CLI_ARGS_plan` names one.
|
|
205
|
+
* Default: no flag, terraform's own (no wait).
|
|
206
|
+
*/
|
|
207
|
+
lockTimeout?: string;
|
|
208
|
+
/**
|
|
209
|
+
* choudoufu only (#4545): plan the cone of the change since this revision
|
|
210
|
+
* (`-cone=<base>`) on a root under a `live` block that is not an estate
|
|
211
|
+
* file. Any other root, binary, or a plan with `targets` or `destroy`,
|
|
212
|
+
* plans in full. {@link TerraformPlanResult.cone} says which it was.
|
|
213
|
+
*/
|
|
214
|
+
cone?: string;
|
|
193
215
|
}
|
|
194
216
|
export interface TerraformApplyArgs extends TerraformRootArgs {
|
|
195
217
|
/**
|
|
@@ -209,6 +231,8 @@ export interface TerraformApplyArgs extends TerraformRootArgs {
|
|
|
209
231
|
* separate to pass.
|
|
210
232
|
*/
|
|
211
233
|
planFile?: string;
|
|
234
|
+
/** How long the apply waits for another run's state lock (#4545), as {@link TerraformPlanArgs.lockTimeout}. */
|
|
235
|
+
lockTimeout?: string;
|
|
212
236
|
}
|
|
213
237
|
export interface TerraformShowArgs extends TerraformRootArgs {
|
|
214
238
|
/** Show this saved plan file. Omitted, the activity shows current state. */
|
|
@@ -316,6 +340,8 @@ export interface TerraformPlanResult extends PlanChangeCounts {
|
|
|
316
340
|
* `composeChangeSet` and bind the run's gate to the document's digest.
|
|
317
341
|
*/
|
|
318
342
|
changeSet: ChangeSetPart;
|
|
343
|
+
/** Set when the plan was asked for a cone (#4545): the cone it planned, or why it planned the whole estate. */
|
|
344
|
+
cone?: PlanCone;
|
|
319
345
|
}
|
|
320
346
|
/**
|
|
321
347
|
* Why a live apply refused the approval artifact it was handed. Both are
|
|
@@ -535,6 +561,8 @@ export declare function terraformPlanCommand(opts: {
|
|
|
535
561
|
vars?: Record<string, unknown>;
|
|
536
562
|
destroy?: boolean;
|
|
537
563
|
targets?: string[];
|
|
564
|
+
/** Extra flags after the fixed ones (#4545): `-lock-timeout`, `-cone`. */
|
|
565
|
+
extra?: readonly string[];
|
|
538
566
|
}): string;
|
|
539
567
|
/**
|
|
540
568
|
* `terraform apply <planFile>` — a saved plan, never a bare apply. The same
|
|
@@ -545,6 +573,7 @@ export declare function terraformPlanCommand(opts: {
|
|
|
545
573
|
export declare function terraformApplyCommand(opts: {
|
|
546
574
|
binary: string;
|
|
547
575
|
planFile: string;
|
|
576
|
+
extra?: readonly string[];
|
|
548
577
|
}): string;
|
|
549
578
|
/**
|
|
550
579
|
* `live-plan -detailed-exitcode [-json] [-estate=<estate>]`. `-json` is what
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAYH,OAAO,KAAK,EAAE,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AAgD;AAChD,MAAM,MAAM,wBAAwB,GAChC;IACE,mDAAmD;IACnD,SAAS,EAAE,IAAI,CAAC;IAChB,wFAAwF;IACxF,IAAI,EAAE,OAAO,CAAC;IACd,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;CACb,GACD;IACE,sGAAsG;IACtG,SAAS,EAAE,KAAK,CAAC;IACjB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEN,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,uFAAuF;IACvF,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,sBAAsB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAkB9H;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAkBhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CA8C/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,EAC5B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAuBnC"}
|
|
1
|
+
{"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAYH,OAAO,KAAK,EA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G;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CA8C/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,EAC5B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAuBnC"}
|
|
@@ -50,6 +50,8 @@ import { terraformPlanDigest } from "../../plan-digest.js";
|
|
|
50
50
|
import { choudoufuSetPlanParts, plannerForBinary, terraformChangeSetPart } from "../../change-set.js";
|
|
51
51
|
import { detectLiveEstate } from "./live-detect.js";
|
|
52
52
|
import { backendConfigValues } from "../../backend-config.js";
|
|
53
|
+
import { lockTimeoutArgs } from "../../lock-timeout.js";
|
|
54
|
+
import { coneArgs, readPlanCone } from "../../cone.js";
|
|
53
55
|
import { parseAdoptionCommands, readAdoptionLedger, renderAdoptionLedger, } from "../adoption.js";
|
|
54
56
|
const execAsync = promisify(exec);
|
|
55
57
|
/**
|
|
@@ -207,6 +209,8 @@ export function terraformPlanCommand(opts) {
|
|
|
207
209
|
const parts = [opts.binary, "plan", "-input=false", "-detailed-exitcode"];
|
|
208
210
|
if (opts.destroy)
|
|
209
211
|
parts.push("-destroy");
|
|
212
|
+
for (const flag of opts.extra ?? [])
|
|
213
|
+
parts.push(quoteArg(flag));
|
|
210
214
|
for (const target of [...new Set(opts.targets ?? [])].sort())
|
|
211
215
|
parts.push(`-target=${quoteArg(target)}`);
|
|
212
216
|
for (const varFile of opts.varFiles ?? [])
|
|
@@ -226,7 +230,8 @@ export function terraformPlanCommand(opts) {
|
|
|
226
230
|
* own `apply <planfile>` does, so no `-auto-approve` is needed or passed.
|
|
227
231
|
*/
|
|
228
232
|
export function terraformApplyCommand(opts) {
|
|
229
|
-
|
|
233
|
+
const extra = (opts.extra ?? []).map((f) => ` ${quoteArg(f)}`).join("");
|
|
234
|
+
return `${opts.binary} apply -input=false${extra} ${quoteArg(opts.planFile)}`;
|
|
230
235
|
}
|
|
231
236
|
/**
|
|
232
237
|
* `live-plan -detailed-exitcode [-json] [-estate=<estate>]`. `-json` is what
|
|
@@ -496,7 +501,7 @@ async function resolveRoot(args, signal) {
|
|
|
496
501
|
(known.length > 0 ? `known roots: ${known.join(", ")}` : "the namespace declares no roots"));
|
|
497
502
|
}
|
|
498
503
|
const binary = terraformBinary(namespace);
|
|
499
|
-
const dir = resolve(projectRoot, root.dir);
|
|
504
|
+
const dir = resolve(projectRoot, args.dir ?? root.dir);
|
|
500
505
|
await ensureChoudoufuVersion(binary, signal);
|
|
501
506
|
const estate = binary === "choudoufu" ? detectLiveEstate(dir) : undefined;
|
|
502
507
|
// `estate` stays what it has always been: the estate the root's own HCL
|
|
@@ -612,9 +617,13 @@ export function workspaceRelativePath(dir) {
|
|
|
612
617
|
* provider.
|
|
613
618
|
*/
|
|
614
619
|
export async function terraformPlan(args, signal) {
|
|
615
|
-
const { binary, root, dir } = await resolveRoot(args, signal);
|
|
620
|
+
const { binary, root, dir, live } = await resolveRoot(args, signal);
|
|
616
621
|
const planFile = args.planFile ?? DEFAULT_PLAN_FILE;
|
|
617
622
|
const env = terraformEnvironment(root);
|
|
623
|
+
const lock = args.lockTimeout !== undefined ? lockTimeoutArgs("plan", args.lockTimeout) : [];
|
|
624
|
+
// #4545: a cone only on a live root that is not an estate file; -target and -destroy plan in full.
|
|
625
|
+
const fixed = [...(args.destroy ? ["-destroy"] : []), ...((args.targets ?? []).length > 0 ? ["-target"] : [])];
|
|
626
|
+
const cone = args.cone !== undefined ? coneArgs(binary, args.cone, fixed, live && !existsSync(join(dir, "estate.chdf.hcl"))) : [];
|
|
618
627
|
const cmd = terraformPlanCommand({
|
|
619
628
|
binary,
|
|
620
629
|
planFile,
|
|
@@ -622,11 +631,14 @@ export async function terraformPlan(args, signal) {
|
|
|
622
631
|
...(args.vars ? { vars: args.vars } : {}),
|
|
623
632
|
...(args.destroy ? { destroy: true } : {}),
|
|
624
633
|
...(args.targets && args.targets.length > 0 ? { targets: args.targets } : {}),
|
|
634
|
+
...(cone.length + lock.length > 0 ? { extra: [...cone, ...lock] } : {}),
|
|
625
635
|
});
|
|
626
636
|
let changed;
|
|
637
|
+
let output = "";
|
|
627
638
|
try {
|
|
628
639
|
const { stdout, stderr } = await run(cmd, dir, env, signal);
|
|
629
640
|
report(stdout, stderr);
|
|
641
|
+
output = `${stdout}\n${stderr}`;
|
|
630
642
|
changed = false;
|
|
631
643
|
}
|
|
632
644
|
catch (err) {
|
|
@@ -640,6 +652,7 @@ export async function terraformPlan(args, signal) {
|
|
|
640
652
|
throw new Error(`${binary} plan failed in ${dir} (exit ${failure.code})${detail ? `\n${detail}` : ""}`);
|
|
641
653
|
}
|
|
642
654
|
report(failure.stdout ?? "", failure.stderr ?? "");
|
|
655
|
+
output = `${failure.stdout ?? ""}\n${failure.stderr ?? ""}`;
|
|
643
656
|
changed = true;
|
|
644
657
|
}
|
|
645
658
|
const jsonRun = await run(terraformShowCommand({ binary, json: true, planFile }), dir, env, signal);
|
|
@@ -659,6 +672,7 @@ export async function terraformPlan(args, signal) {
|
|
|
659
672
|
...((root.estate ?? root.workspace) ? { scope: root.estate ?? root.workspace } : {}),
|
|
660
673
|
}),
|
|
661
674
|
...countPlanChanges(json),
|
|
675
|
+
...(cone.length > 0 ? { cone: readPlanCone(output, join(dir, planFile), args.cone) } : {}),
|
|
662
676
|
};
|
|
663
677
|
}
|
|
664
678
|
/**
|
|
@@ -703,7 +717,8 @@ export async function terraformApply(args, signal) {
|
|
|
703
717
|
"Pass the Plan step's own output (`plan.out.planFile`).");
|
|
704
718
|
}
|
|
705
719
|
const planFile = args.planFile;
|
|
706
|
-
const
|
|
720
|
+
const lock = args.lockTimeout !== undefined ? lockTimeoutArgs("apply", args.lockTimeout) : [];
|
|
721
|
+
const cmd = terraformApplyCommand({ binary, planFile, ...(lock.length > 0 ? { extra: lock } : {}) });
|
|
707
722
|
try {
|
|
708
723
|
const { stdout, stderr } = await run(cmd, dir, terraformEnvironment(root), signal);
|
|
709
724
|
report(stdout, stderr);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Hcl2Json } from "@intentius/chant/terraform/hcl2json";
|
|
2
|
+
import { normalizeModuleSource, PUBLIC_REGISTRY_HOST } from "../registry/source-forms.js";
|
|
3
|
+
import { type ModuleCallPin } from "./source.js";
|
|
4
|
+
export { normalizeModuleSource, PUBLIC_REGISTRY_HOST };
|
|
5
|
+
/** One module call in a consuming repo. */
|
|
6
|
+
export interface ModuleConsumer {
|
|
7
|
+
/** The root (or Terragrunt unit) directory, from the repo's top, `/`-separated. */
|
|
8
|
+
root: string;
|
|
9
|
+
/** The file holding the call, from the repo's top. */
|
|
10
|
+
file: string;
|
|
11
|
+
/** The block: `module.<name>`, or `terragrunt.terraform` for a unit's source. */
|
|
12
|
+
address: string;
|
|
13
|
+
/** `terraform` for a module block, `terragrunt` for a unit's `terraform { source }`. */
|
|
14
|
+
kind: "terraform" | "terragrunt";
|
|
15
|
+
/** The `source` as written. */
|
|
16
|
+
source: string;
|
|
17
|
+
/** The module the call names: the source with the pin taken out, normalised. */
|
|
18
|
+
module: string;
|
|
19
|
+
/** The pinned version, tag, digest or ref, or null when the call pins none. */
|
|
20
|
+
pin: string | null;
|
|
21
|
+
/** Where the pin is, as `readModulePin` reads it. */
|
|
22
|
+
at: ModuleCallPin["at"];
|
|
23
|
+
param?: ModuleCallPin["param"];
|
|
24
|
+
/** Why there is no pin, when `pin` is null. */
|
|
25
|
+
unpinned?: string;
|
|
26
|
+
}
|
|
27
|
+
/** A source names a local directory, not a published module. */
|
|
28
|
+
export declare function isLocalSource(source: string): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Every module call in `roots` (directories from `repo`), sorted by root,
|
|
31
|
+
* file and address. A root whose files cannot be parsed throws, naming the
|
|
32
|
+
* root, so a check job fails loudly instead of listing fewer consumers.
|
|
33
|
+
*/
|
|
34
|
+
export declare function moduleConsumers(repo: string, roots: readonly string[], parser?: Hcl2Json): Promise<ModuleConsumer[]>;
|
|
35
|
+
//# sourceMappingURL=consumers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumers.d.ts","sourceRoot":"","sources":["../../src/pin/consumers.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACvF,OAAO,EAAiB,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,CAAC;AAEvD,2CAA2C;AAC3C,MAAM,WAAW,cAAc;IAC7B,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,IAAI,EAAE,WAAW,GAAG,YAAY,CAAC;IACjC,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,gFAAgF;IAChF,MAAM,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,qDAAqD;IACrD,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAErD;AAMD;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAgC1H"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a repo calls its modules (chant#4599, terragucci#1289 bundle B): one
|
|
3
|
+
* entry per module call in the roots given, Terragrunt units included, read
|
|
4
|
+
* from the source files with chant's HCL parse and never from a plan, so the
|
|
5
|
+
* scan runs in a check job before anything is planned.
|
|
6
|
+
*
|
|
7
|
+
* Each call carries its root, file and block path, the source as written,
|
|
8
|
+
* the module it names with the pin taken out and normalised
|
|
9
|
+
* ({@link normalizeModuleSource}), and the pin `readModulePin` (./source.ts)
|
|
10
|
+
* reads. A local call (`./`, `../`) names no published module and is left
|
|
11
|
+
* out. The release catalog lists these as a version's consumers, and
|
|
12
|
+
* `deprecatedPins` (../registry/deprecated.ts) checks them against it.
|
|
13
|
+
*
|
|
14
|
+
* The `terragucci_module_pin` metric keeps reading the plan; this is the
|
|
15
|
+
* source-side view of the same calls. The normal form is chant#3924's
|
|
16
|
+
* (../registry/source-forms.ts), shared with `usedSources` (../sources.ts).
|
|
17
|
+
*/
|
|
18
|
+
import { join, relative } from "node:path";
|
|
19
|
+
import { MODULE_TYPE, TERRAGRUNT_SOURCE_TYPE, parseTerraformRootDir } from "../hcl/parse.js";
|
|
20
|
+
import { normalizeModuleSource, PUBLIC_REGISTRY_HOST } from "../registry/source-forms.js";
|
|
21
|
+
import { readModulePin } from "./source.js";
|
|
22
|
+
export { normalizeModuleSource, PUBLIC_REGISTRY_HOST };
|
|
23
|
+
/** A source names a local directory, not a published module. */
|
|
24
|
+
export function isLocalSource(source) {
|
|
25
|
+
return source.startsWith("./") || source.startsWith("../");
|
|
26
|
+
}
|
|
27
|
+
function str(v) {
|
|
28
|
+
return typeof v === "string" ? v : undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Every module call in `roots` (directories from `repo`), sorted by root,
|
|
32
|
+
* file and address. A root whose files cannot be parsed throws, naming the
|
|
33
|
+
* root, so a check job fails loudly instead of listing fewer consumers.
|
|
34
|
+
*/
|
|
35
|
+
export async function moduleConsumers(repo, roots, parser) {
|
|
36
|
+
const out = [];
|
|
37
|
+
for (const root of [...new Set(roots)].sort()) {
|
|
38
|
+
const dir = join(repo, root);
|
|
39
|
+
const rel = relative(repo, dir).split("\\").join("/") || ".";
|
|
40
|
+
let entities;
|
|
41
|
+
try {
|
|
42
|
+
entities = [...(await parseTerraformRootDir(dir, "consumers", parser)).values()];
|
|
43
|
+
}
|
|
44
|
+
catch (e) {
|
|
45
|
+
throw new Error(`${rel}: ${e.message}`);
|
|
46
|
+
}
|
|
47
|
+
for (const e of entities) {
|
|
48
|
+
if (e.entityType !== MODULE_TYPE && e.entityType !== TERRAGRUNT_SOURCE_TYPE)
|
|
49
|
+
continue;
|
|
50
|
+
const source = str(e.props.body.source);
|
|
51
|
+
if (source === undefined || isLocalSource(source))
|
|
52
|
+
continue;
|
|
53
|
+
const version = e.entityType === MODULE_TYPE ? str(e.props.body.version) : undefined;
|
|
54
|
+
const pin = readModulePin(source, version);
|
|
55
|
+
out.push({
|
|
56
|
+
root: rel,
|
|
57
|
+
file: rel === "." ? e.props.file : `${rel}/${e.props.file}`,
|
|
58
|
+
address: e.props.address,
|
|
59
|
+
kind: e.entityType === MODULE_TYPE ? "terraform" : "terragrunt",
|
|
60
|
+
source,
|
|
61
|
+
module: normalizeModuleSource(pin.module),
|
|
62
|
+
pin: pin.pin,
|
|
63
|
+
at: pin.at,
|
|
64
|
+
...(pin.param ? { param: pin.param } : {}),
|
|
65
|
+
...(pin.unpinned ? { unpinned: pin.unpinned } : {}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return out.sort((a, b) => a.root.localeCompare(b.root) || a.file.localeCompare(b.file) || a.address.localeCompare(b.address));
|
|
70
|
+
}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAsElF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,EAAE,aAqT7B,CAAC"}
|
package/dist/plugin.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { terraformCiSetup } from "./ci-setup.js";
|
|
1
2
|
import { terraformBehaviourKinds } from "./behaviour/kinds.js";
|
|
2
3
|
import { createSkillsLoader } from "@intentius/chant/lexicon-plugin-helpers";
|
|
3
4
|
import { terraformSerializer } from "./serializer.js";
|
|
@@ -73,6 +74,10 @@ export const terraformPlugin = {
|
|
|
73
74
|
referenceCatalog: TERRAFORM_REFERENCE_CATALOG,
|
|
74
75
|
serializer: terraformSerializer,
|
|
75
76
|
configSchema: terraformConfigSchema,
|
|
77
|
+
// #4550: the engine install lines for the pull request pipeline's default image.
|
|
78
|
+
ciSetup(ctx) {
|
|
79
|
+
return terraformCiSetup(ctx);
|
|
80
|
+
},
|
|
76
81
|
// ── Required lifecycle methods ────────────────────────────────
|
|
77
82
|
async generate(options) {
|
|
78
83
|
const { generate } = await import("./codegen/generate.js");
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a module sits in a Terraform module registry, and how a registry
|
|
3
|
+
* source (`<host>/<namespace>/<name>/<system>`) is split into those parts.
|
|
4
|
+
* Lifted from terragucci's `publish/registry.ts` (18f6431595) for chant#4565.
|
|
5
|
+
* No Node imports, so an edge function can carry it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DISCOVERY = ".well-known/terraform.json";
|
|
8
|
+
export declare const MODULES_V1 = "/v1/modules/";
|
|
9
|
+
export declare const DEFAULT_SYSTEM = "generic";
|
|
10
|
+
/** A registry namespace or module name: letters, digits, `-` and `_`, starting and ending on a letter or digit. */
|
|
11
|
+
export declare const REGISTRY_NAME: RegExp;
|
|
12
|
+
/** A registry module's system (its target provider): lower-case letters and digits. */
|
|
13
|
+
export declare const REGISTRY_SYSTEM: RegExp;
|
|
14
|
+
/** Where a module is in the registry. */
|
|
15
|
+
export interface RegistryAddress {
|
|
16
|
+
namespace: string;
|
|
17
|
+
name: string;
|
|
18
|
+
system: string;
|
|
19
|
+
/** `<host>/<namespace>/<name>/<system>`, the source a root writes. */
|
|
20
|
+
source: string;
|
|
21
|
+
/** The module's directory under the registry root: `v1/modules/<namespace>/<name>/<system>`. */
|
|
22
|
+
path: string;
|
|
23
|
+
}
|
|
24
|
+
/** What placing a module needs from a registry's settings. */
|
|
25
|
+
export interface RegistryPlacement {
|
|
26
|
+
/** The registry's base URL; its host is what sources name. */
|
|
27
|
+
url: string;
|
|
28
|
+
namespace: string;
|
|
29
|
+
/** A namespace per path prefix, the longest prefix winning. */
|
|
30
|
+
namespaces?: Record<string, string>;
|
|
31
|
+
system?: string;
|
|
32
|
+
}
|
|
33
|
+
/** A module name the protocol cannot carry. */
|
|
34
|
+
export declare class RegistryNameError extends Error {
|
|
35
|
+
constructor(message: string);
|
|
36
|
+
}
|
|
37
|
+
/** The host a registry's sources name: its URL without the scheme, lower-cased. */
|
|
38
|
+
export declare const registryHost: (reg: Pick<RegistryPlacement, "url">) => string;
|
|
39
|
+
/** The namespace a module's path goes under: the longest `namespaces` prefix it starts with, else `namespace`. */
|
|
40
|
+
export declare function namespaceFor(reg: Pick<RegistryPlacement, "namespace" | "namespaces">, rel: string): string;
|
|
41
|
+
/** A module's place in the registry: its namespace, its name (the last segment of its path) and its system. */
|
|
42
|
+
export declare function registryAddress(reg: RegistryPlacement, rel: string): RegistryAddress;
|
|
43
|
+
/** A registry source split into its parts. */
|
|
44
|
+
export interface RegistrySource {
|
|
45
|
+
host: string;
|
|
46
|
+
namespace: string;
|
|
47
|
+
name: string;
|
|
48
|
+
system: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A registry source split into its host and module, or undefined when the
|
|
52
|
+
* source is not one: `host/ns/name/system`, with an optional `//subdir` and
|
|
53
|
+
* query. The host must look like one (a dot, a port, or `localhost`), so a
|
|
54
|
+
* three-part public registry source with no host is not taken for one.
|
|
55
|
+
* `hosts` names bare hosts a CLI `host` block declares (a Nexus repository's
|
|
56
|
+
* name, chant#4605), which are taken as hosts too.
|
|
57
|
+
*/
|
|
58
|
+
export declare function parseRegistrySource(source: string, hosts?: readonly string[]): RegistrySource | undefined;
|
|
59
|
+
/** A key under a registry's prefix in its bucket or directory. */
|
|
60
|
+
export declare const keyFor: (prefix: string | undefined, path: string) => string;
|
|
61
|
+
/** The tarball's name beside its version. */
|
|
62
|
+
export declare const tarballName: (addr: Pick<RegistryAddress, "name">, version: string) => string;
|
|
63
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/registry/address.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,SAAS,+BAA+B,CAAC;AACtD,eAAO,MAAM,UAAU,iBAAiB,CAAC;AACzC,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC,mHAAmH;AACnH,eAAO,MAAM,aAAa,QAAqD,CAAC;AAChF,uFAAuF;AACvF,eAAO,MAAM,eAAe,QAAqB,CAAC;AAElD,yCAAyC;AACzC,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,gGAAgG;IAChG,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC,8DAA8D;IAC9D,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,+DAA+D;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