blueprint-shared-facts 0.7.0 → 0.8.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/blueprint-shared/index.json +958 -134
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"package": "blueprint-shared-facts",
|
|
5
5
|
"entry": "blueprint-shared",
|
|
6
6
|
"describes": {
|
|
7
|
-
"blueprint-shared-facts": "0.
|
|
7
|
+
"blueprint-shared-facts": "0.8.0"
|
|
8
8
|
},
|
|
9
9
|
"layer": "org",
|
|
10
10
|
"facts": [
|
|
@@ -451,6 +451,89 @@
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
|
+
{
|
|
455
|
+
"id": "blueprint-shared.ci.wait-loops",
|
|
456
|
+
"tool": "blueprint-shared",
|
|
457
|
+
"topics": [
|
|
458
|
+
"ci"
|
|
459
|
+
],
|
|
460
|
+
"title": "job 不佔著 runner 等另一個 job",
|
|
461
|
+
"description": "等另一個 run、PR 或 release-please 的迴圈最多問兩輪,三個輪數變數不超過 2,間隔變數不超過預設值。`writeback-ops.sh` 的寫入重試是登記過的例外。",
|
|
462
|
+
"variants": [
|
|
463
|
+
{
|
|
464
|
+
"since": "0.8.0",
|
|
465
|
+
"content": {
|
|
466
|
+
"value": {
|
|
467
|
+
"rule": "A job on a self-hosted runner does not keep the runner waiting for another run. A loop that asks about another run, a pull request or release-please asks twice at most; the rest is triggered by an event, or the job fails and is dispatched again from outside.",
|
|
468
|
+
"roundVariables": [
|
|
469
|
+
"POLL_TRIES",
|
|
470
|
+
"CI_GATE_TRIES",
|
|
471
|
+
"CI_GATE_QUEUE_TRIES"
|
|
472
|
+
],
|
|
473
|
+
"maxRounds": 2,
|
|
474
|
+
"roundVariablesWhere": "The three round variables are set on the workflow env, or in the env of every job whose runs-on is not a literal GitHub-hosted label (ubuntu-, macos-, windows-), and none is above maxRounds. The template ci.yml sets them on the jobs, the other workflows on the workflow.",
|
|
475
|
+
"sleepDefaults": {
|
|
476
|
+
"POLL_SLEEP": 3,
|
|
477
|
+
"CI_GATE_SLEEP": 15,
|
|
478
|
+
"WRITEBACK_RETRY_SLEEP": 5,
|
|
479
|
+
"WRITEBACK_RETRY_JITTER": 5,
|
|
480
|
+
"RETRY_SLEEP": 5
|
|
481
|
+
},
|
|
482
|
+
"sleepRule": "An interval variable is not set above its default (seconds).",
|
|
483
|
+
"writeRetries": [
|
|
484
|
+
{
|
|
485
|
+
"file": "templates/deploy/scripts/deploy/writeback-ops.sh",
|
|
486
|
+
"loop": "for ((i=1; i<=${WRITEBACK_TRIES:-6}; i++))",
|
|
487
|
+
"defaults": {
|
|
488
|
+
"WRITEBACK_TRIES": 6,
|
|
489
|
+
"WRITEBACK_RETRY_SLEEP": 5,
|
|
490
|
+
"WRITEBACK_RETRY_JITTER": 5
|
|
491
|
+
},
|
|
492
|
+
"limit": "WRITEBACK_TRIES rounds, 6 by default, of WRITEBACK_RETRY_SLEEP seconds (5) plus up to WRITEBACK_RETRY_JITTER seconds (5) at random",
|
|
493
|
+
"why": "the deploys of a monorepo write the ops declaration back at once, and each round lets one of them push"
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"source": {
|
|
501
|
+
"kind": "published"
|
|
502
|
+
},
|
|
503
|
+
"content": {
|
|
504
|
+
"value": {
|
|
505
|
+
"rule": "A job on a self-hosted runner does not keep the runner waiting for another run. A loop that asks about another run, a pull request or release-please asks twice at most; the rest is triggered by an event, or the job fails and is dispatched again from outside.",
|
|
506
|
+
"roundVariables": [
|
|
507
|
+
"POLL_TRIES",
|
|
508
|
+
"CI_GATE_TRIES",
|
|
509
|
+
"CI_GATE_QUEUE_TRIES"
|
|
510
|
+
],
|
|
511
|
+
"maxRounds": 2,
|
|
512
|
+
"roundVariablesWhere": "The three round variables are set on the workflow env, or in the env of every job whose runs-on is not a literal GitHub-hosted label (ubuntu-, macos-, windows-), and none is above maxRounds. The template ci.yml sets them on the jobs, the other workflows on the workflow.",
|
|
513
|
+
"sleepDefaults": {
|
|
514
|
+
"POLL_SLEEP": 3,
|
|
515
|
+
"CI_GATE_SLEEP": 15,
|
|
516
|
+
"WRITEBACK_RETRY_SLEEP": 5,
|
|
517
|
+
"WRITEBACK_RETRY_JITTER": 5,
|
|
518
|
+
"RETRY_SLEEP": 5
|
|
519
|
+
},
|
|
520
|
+
"sleepRule": "An interval variable is not set above its default (seconds).",
|
|
521
|
+
"writeRetries": [
|
|
522
|
+
{
|
|
523
|
+
"file": "templates/deploy/scripts/deploy/writeback-ops.sh",
|
|
524
|
+
"loop": "for ((i=1; i<=${WRITEBACK_TRIES:-6}; i++))",
|
|
525
|
+
"defaults": {
|
|
526
|
+
"WRITEBACK_TRIES": 6,
|
|
527
|
+
"WRITEBACK_RETRY_SLEEP": 5,
|
|
528
|
+
"WRITEBACK_RETRY_JITTER": 5
|
|
529
|
+
},
|
|
530
|
+
"limit": "WRITEBACK_TRIES rounds, 6 by default, of WRITEBACK_RETRY_SLEEP seconds (5) plus up to WRITEBACK_RETRY_JITTER seconds (5) at random",
|
|
531
|
+
"why": "the deploys of a monorepo write the ops declaration back at once, and each round lets one of them push"
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
},
|
|
454
537
|
{
|
|
455
538
|
"id": "blueprint-shared.templates.deploy-repos",
|
|
456
539
|
"tool": "blueprint-shared",
|
|
@@ -1068,7 +1151,7 @@
|
|
|
1068
1151
|
"sameAs": "scripts/lib/bundle.sh is the same file as the one of the deploy role",
|
|
1069
1152
|
"urls": "healthz.sh reads the URL pattern of each environment from ops/urls.json, which compose writes. The role has no repository variable for it",
|
|
1070
1153
|
"targets": "The static job of ci.yml runs `node scripts/ci/check-targets.mjs` in a repository with this role. It validates ops/targets.json against schemas/targets.schema.json (the same JSON Schema as blueprint-shared.infra-layout.targets), then checks what the schema cannot: a ref points at an instance of the same kind, a host and a cluster are declared by the repository they name, a location or parent cluster with an environment suffix holds instances of that environment only, parent clusters and tenants are named by blueprint-shared.infra-layout.cluster-naming, and every iac/hosts/<location>/clusters/<cluster> and workloads/hosts/<location>/clusters/<cluster> directory is declared. The suffixes and the order of the cases are constants of the script that a test compares with the machine-readable fields of cluster-naming",
|
|
1071
|
-
"orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (
|
|
1154
|
+
"orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (for the demo organization, the repository list of its facts), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
|
|
1072
1155
|
"iac": "ops/iac/<purpose>/<env>/<step name>/ holds an OpenTofu root module: main.tf (a module call with a git source and ref, and the backend block) and terraform.tfvars.json (the inputs, among them the name of the bucket). apply-iac.sh applies the steps of one environment in the order of ops/needs.json with tofu init and tofu apply",
|
|
1073
1156
|
"bucketName": "The name of an R2 bucket is written once, in the terraform.tfvars.json of its iac step. When apply-ops.sh joins the settings of a workloads step to the wrangler.toml of the bundle, it adds bucket_name to every [[env.<env>.r2_buckets]] table that has none, with the name from the terraform.tfvars.json of the iac steps the workloads step needs in ops/needs.json"
|
|
1074
1157
|
}
|
|
@@ -1103,7 +1186,7 @@
|
|
|
1103
1186
|
"sameAs": "scripts/lib/bundle.sh is the same file as the one of the deploy role",
|
|
1104
1187
|
"urls": "healthz.sh reads the URL pattern of each environment from ops/urls.json, which compose writes. The role has no repository variable for it",
|
|
1105
1188
|
"targets": "The static job of ci.yml runs `node scripts/ci/check-targets.mjs` in a repository with this role. It validates ops/targets.json against schemas/targets.schema.json (the same JSON Schema as blueprint-shared.infra-layout.targets), then checks what the schema cannot: a ref points at an instance of the same kind, a host and a cluster are declared by the repository they name, a location or parent cluster with an environment suffix holds instances of that environment only, parent clusters and tenants are named by blueprint-shared.infra-layout.cluster-naming, and every iac/hosts/<location>/clusters/<cluster> and workloads/hosts/<location>/clusters/<cluster> directory is declared. The suffixes and the order of the cases are constants of the script that a test compares with the machine-readable fields of cluster-naming",
|
|
1106
|
-
"orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (
|
|
1189
|
+
"orgRepos": "scripts/ci/org-repos.json is a list of repository names that compose writes from the repository list of the organization of the repository (for the demo organization, the repository list of its facts), because the script cannot read the facts. A <RepoName>: prefix of a host or ref has to be in this list, and a name outside it fails. The list is of one organization, so two organizations that both have a repository of the same name never share a list. A host or ref into a repository of the list whose ops/targets.json was not given is printed as 未核對 with the instance and the host, and does not fail. A repository checks only its own ops/targets.json in its own CI; a run that is given the ops/targets.json of every repository of the organization (--targets <RepoName>=<file>) checks all of it",
|
|
1107
1190
|
"iac": "ops/iac/<purpose>/<env>/<step name>/ holds an OpenTofu root module: main.tf (a module call with a git source and ref, and the backend block) and terraform.tfvars.json (the inputs, among them the name of the bucket). apply-iac.sh applies the steps of one environment in the order of ops/needs.json with tofu init and tofu apply",
|
|
1108
1191
|
"bucketName": "The name of an R2 bucket is written once, in the terraform.tfvars.json of its iac step. When apply-ops.sh joins the settings of a workloads step to the wrangler.toml of the bundle, it adds bucket_name to every [[env.<env>.r2_buckets]] table that has none, with the name from the terraform.tfvars.json of the iac steps the workloads step needs in ops/needs.json"
|
|
1109
1192
|
}
|
|
@@ -3832,13 +3915,19 @@
|
|
|
3832
3915
|
"content": {
|
|
3833
3916
|
"statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,把 `core.hooksPath` 設成 `scripts/hooks`(`commit-msg`、`pre-push`),並把 `commit.cleanup` 設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
|
|
3834
3917
|
}
|
|
3918
|
+
},
|
|
3919
|
+
{
|
|
3920
|
+
"since": "0.8.0",
|
|
3921
|
+
"content": {
|
|
3922
|
+
"statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,不設倉內的 `core.hooksPath`,因為倉內的值會蓋過機器的全域設定,讓機器上的整組 hook 不跑。它在 `$(git rev-parse --git-common-dir)/hooks`(一般是 `.git/hooks/`,linked worktree 也用這個共用目錄)放 `commit-msg` 與 `pre-push` 兩個轉呼叫檔。轉呼叫檔把同樣的參數與 stdin 交給所在工作樹根的 `scripts/hooks/<name>`,結束碼照它。那支檔不存在或不能執行時略過並以 0 結束。舊版腳本設過倉內的 `core.hooksPath`,腳本只在共用設定裡的值等於 `scripts/hooks` 時移除它。值是別的,或寫在個別 worktree 的設定檔時不動,並印警告說轉呼叫檔會被它蓋住。`.git/hooks/` 已有同名檔時,帶腳本標記的就更新。沒有標記的不覆寫,印出檔名與處理方式並以非零結束。機器設了全域 `core.hooksPath` 時,git 只跑全域那組,全域那組會轉給 `.git/hooks/<name>` 時倉的 hook 才會跑,所以腳本偵測到全域路徑時印一行說明。不在工作樹裡時,例如 bare 倉或解開的壓縮檔,腳本不做任何事。`commit.cleanup` 照舊設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
|
|
3923
|
+
}
|
|
3835
3924
|
}
|
|
3836
3925
|
],
|
|
3837
3926
|
"source": {
|
|
3838
3927
|
"kind": "published"
|
|
3839
3928
|
},
|
|
3840
3929
|
"content": {
|
|
3841
|
-
"statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare`
|
|
3930
|
+
"statement": "`scripts/setup/git-hooks.sh` 在每次 `pnpm install` 的 `prepare` 執行,不設倉內的 `core.hooksPath`,因為倉內的值會蓋過機器的全域設定,讓機器上的整組 hook 不跑。它在 `$(git rev-parse --git-common-dir)/hooks`(一般是 `.git/hooks/`,linked worktree 也用這個共用目錄)放 `commit-msg` 與 `pre-push` 兩個轉呼叫檔。轉呼叫檔把同樣的參數與 stdin 交給所在工作樹根的 `scripts/hooks/<name>`,結束碼照它。那支檔不存在或不能執行時略過並以 0 結束。舊版腳本設過倉內的 `core.hooksPath`,腳本只在共用設定裡的值等於 `scripts/hooks` 時移除它。值是別的,或寫在個別 worktree 的設定檔時不動,並印警告說轉呼叫檔會被它蓋住。`.git/hooks/` 已有同名檔時,帶腳本標記的就更新。沒有標記的不覆寫,印出檔名與處理方式並以非零結束。機器設了全域 `core.hooksPath` 時,git 只跑全域那組,全域那組會轉給 `.git/hooks/<name>` 時倉的 hook 才會跑,所以腳本偵測到全域路徑時印一行說明。不在工作樹裡時,例如 bare 倉或解開的壓縮檔,腳本不做任何事。`commit.cleanup` 照舊設成 `scissors`,因為訊息用 `## ` 開頭的段落標題。各模式的行為見 devtool-facts 的 `git.commit-cleanup-modes`。"
|
|
3842
3931
|
}
|
|
3843
3932
|
},
|
|
3844
3933
|
{
|
|
@@ -8304,6 +8393,59 @@
|
|
|
8304
8393
|
}
|
|
8305
8394
|
}
|
|
8306
8395
|
}
|
|
8396
|
+
},
|
|
8397
|
+
{
|
|
8398
|
+
"since": "0.8.0",
|
|
8399
|
+
"content": {
|
|
8400
|
+
"value": {
|
|
8401
|
+
"pattern": "<ProductName> or <ProductName><suffix> for a repository of the product layer; its own name for a repository of the organization layer",
|
|
8402
|
+
"suffixes": [
|
|
8403
|
+
"-hub",
|
|
8404
|
+
"-app",
|
|
8405
|
+
"-service",
|
|
8406
|
+
"-pkg",
|
|
8407
|
+
"-ops",
|
|
8408
|
+
"-infra"
|
|
8409
|
+
],
|
|
8410
|
+
"suffixMeaning": {
|
|
8411
|
+
"-hub": "holds the product version, the Release Plan and the product-level facts and docs of a product split over several repositories",
|
|
8412
|
+
"-app": "deployable front ends and clients",
|
|
8413
|
+
"-service": "deployable back-end services",
|
|
8414
|
+
"-pkg": "packages published to a registry",
|
|
8415
|
+
"-ops": "the configuration repository of the product: declares and applies its cloud resources and workloads, and holds which version runs in each environment",
|
|
8416
|
+
"-infra": "capability interfaces only, see blueprint-shared.naming.unit-name (InfraName). Cloud resources are declared and applied in the -ops repository"
|
|
8417
|
+
},
|
|
8418
|
+
"mirror": {
|
|
8419
|
+
"pattern": "<UnitName>",
|
|
8420
|
+
"meaning": "A public mirror repository that publishes one Go or Swift unit is named after that unit.",
|
|
8421
|
+
"examples": [
|
|
8422
|
+
"acme-sdk-go",
|
|
8423
|
+
"acme-sdk-swift",
|
|
8424
|
+
"orbit-sdk-go"
|
|
8425
|
+
]
|
|
8426
|
+
},
|
|
8427
|
+
"examples": [
|
|
8428
|
+
"acme",
|
|
8429
|
+
"orbit-hub",
|
|
8430
|
+
"orbit-pkg"
|
|
8431
|
+
],
|
|
8432
|
+
"layer": {
|
|
8433
|
+
"field": "layer",
|
|
8434
|
+
"values": [
|
|
8435
|
+
"organization",
|
|
8436
|
+
"product"
|
|
8437
|
+
],
|
|
8438
|
+
"default": "product",
|
|
8439
|
+
"writtenIn": "the entry of the repository in a list of repositories that a naming check reads, and the top-level layer of its release-policy.json",
|
|
8440
|
+
"organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has any number of repositories, for example a code repository, a configuration repository, and the repository that holds the templates (blueprint-shared.templates.org-role). Their names are not used as a prefix of any unit",
|
|
8441
|
+
"product": "A repository of the product layer is named after the product as the pattern says",
|
|
8442
|
+
"examples": [
|
|
8443
|
+
"fleet",
|
|
8444
|
+
"fleet-config"
|
|
8445
|
+
]
|
|
8446
|
+
}
|
|
8447
|
+
}
|
|
8448
|
+
}
|
|
8307
8449
|
}
|
|
8308
8450
|
],
|
|
8309
8451
|
"source": {
|
|
@@ -8350,7 +8492,7 @@
|
|
|
8350
8492
|
],
|
|
8351
8493
|
"default": "product",
|
|
8352
8494
|
"writtenIn": "the entry of the repository in a list of repositories that a naming check reads, and the top-level layer of its release-policy.json",
|
|
8353
|
-
"organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has a code repository
|
|
8495
|
+
"organization": "A repository of the organization layer belongs to no product: it serves every product. Its name is its own, not a ProductName and not a ProductName with a suffix. The organization layer has any number of repositories, for example a code repository, a configuration repository, and the repository that holds the templates (blueprint-shared.templates.org-role). Their names are not used as a prefix of any unit",
|
|
8354
8496
|
"product": "A repository of the product layer is named after the product as the pattern says",
|
|
8355
8497
|
"examples": [
|
|
8356
8498
|
"fleet",
|
|
@@ -8483,6 +8625,93 @@
|
|
|
8483
8625
|
}
|
|
8484
8626
|
}
|
|
8485
8627
|
}
|
|
8628
|
+
},
|
|
8629
|
+
{
|
|
8630
|
+
"since": "0.8.0",
|
|
8631
|
+
"content": {
|
|
8632
|
+
"value": {
|
|
8633
|
+
"kinds": [
|
|
8634
|
+
"AppName",
|
|
8635
|
+
"ServiceName",
|
|
8636
|
+
"PackageName",
|
|
8637
|
+
"LibName",
|
|
8638
|
+
"InfraName",
|
|
8639
|
+
"OpsName"
|
|
8640
|
+
],
|
|
8641
|
+
"isUnit": "A unit is something that has its own version. It is a release-please package and a unit of release-policy.json.",
|
|
8642
|
+
"pattern": "<ProductName> or <ProductName>-<part> for a unit marked product; its own name for a unit marked own",
|
|
8643
|
+
"notShortened": "The name is never shortened to the part after the product name: acme-cli, not cli.",
|
|
8644
|
+
"sameAsRepo": "A unit may have the name of its repository.",
|
|
8645
|
+
"examples": [
|
|
8646
|
+
"acme-cli",
|
|
8647
|
+
"acme-js",
|
|
8648
|
+
"orbit-api",
|
|
8649
|
+
"pathwatch"
|
|
8650
|
+
],
|
|
8651
|
+
"counterExamples": [
|
|
8652
|
+
"cli",
|
|
8653
|
+
"api"
|
|
8654
|
+
],
|
|
8655
|
+
"shared": {
|
|
8656
|
+
"meaning": "A shared unit is published on its own and shared by several products, so it is not a component of the aggregate package of the repository. Its directory follows blueprint-shared.repo-layout.unit-dirs.",
|
|
8657
|
+
"names": [
|
|
8658
|
+
"<RepoName>-shared-facts",
|
|
8659
|
+
"<RepoName>-shared-docs",
|
|
8660
|
+
"<RepoName>-shared-templates"
|
|
8661
|
+
],
|
|
8662
|
+
"access": "public",
|
|
8663
|
+
"scope": "The name carries no @<scope>/ prefix, whatever blueprint-shared.naming.scope-prefix gives the other names of the repository.",
|
|
8664
|
+
"examples": [
|
|
8665
|
+
"blueprint-shared-facts",
|
|
8666
|
+
"blueprint-shared-docs",
|
|
8667
|
+
"blueprint-shared-templates"
|
|
8668
|
+
]
|
|
8669
|
+
},
|
|
8670
|
+
"naming": {
|
|
8671
|
+
"field": "naming",
|
|
8672
|
+
"values": [
|
|
8673
|
+
"product",
|
|
8674
|
+
"own"
|
|
8675
|
+
],
|
|
8676
|
+
"default": "product",
|
|
8677
|
+
"writtenIn": "the entry of the unit in a list of repositories that a naming check reads",
|
|
8678
|
+
"product": "The unit exists only for one product, so it follows the pattern <ProductName> or <ProductName>-<part>.",
|
|
8679
|
+
"own": "Every other unit takes its own name: a tool that can be used on its own, or a service of the organization that every product uses.",
|
|
8680
|
+
"ownUnique": "An own name equals no ProductName and no other UnitName.",
|
|
8681
|
+
"organizationLayer": "A repository of the organization layer (blueprint-shared.naming.repo-name, field layer) has own units only, a module shared only inside the repository too, because no product name is there to prefix.",
|
|
8682
|
+
"mixed": "One repository may hold both kinds. For example a product monorepo holds <ProductName>-web, <ProductName>-api and a small open-source tool, and the tool takes its own name.",
|
|
8683
|
+
"checkedBy": "scripts/naming/check-names.mjs",
|
|
8684
|
+
"examples": {
|
|
8685
|
+
"product": [
|
|
8686
|
+
"acme-web",
|
|
8687
|
+
"orbit-api"
|
|
8688
|
+
],
|
|
8689
|
+
"own": [
|
|
8690
|
+
"pathwatch"
|
|
8691
|
+
]
|
|
8692
|
+
}
|
|
8693
|
+
},
|
|
8694
|
+
"kindMeaning": {
|
|
8695
|
+
"InfraName": "a capability interface in infra/<InfraName>/: the code of other units depends on it, and it stays the same in every environment. It fixes the engine and the way to reach it, see blueprint-shared.infra-layout.capability-interface",
|
|
8696
|
+
"OpsName": "an interface in ops/<OpsName>/ that changes with the environment, for example the address of each environment, used by the code of other units"
|
|
8697
|
+
},
|
|
8698
|
+
"dutyPackages": {
|
|
8699
|
+
"meaning": "The repository that holds the templates (blueprint-shared.templates.org-role) may have packages for its own duties. A package of the duty of showing the templates in demonstration repositories is named <RepoName>-demos-facts (facts) or <RepoName>-demos-docs (docs), and lives in demos/_facts or demos/_docs. The leading underscore keeps the two directories apart from the directory of a demonstration repository in demos/.",
|
|
8700
|
+
"pattern": "<RepoName>-<Duty>-facts and <RepoName>-<Duty>-docs, with <Duty> the duty in kebab-case; the duty demos is the only one written here",
|
|
8701
|
+
"dirs": {
|
|
8702
|
+
"<RepoName>-demos-facts": "demos/_facts",
|
|
8703
|
+
"<RepoName>-demos-docs": "demos/_docs"
|
|
8704
|
+
},
|
|
8705
|
+
"scope": "The @<scope>/ prefix follows blueprint-shared.naming.scope-prefix, like the other names of the repository.",
|
|
8706
|
+
"dependsOn": "They may depend on the packages of the organization layer of the repository and on the shared packages. No package of the organization layer or shared package depends on them.",
|
|
8707
|
+
"notAggregate": "They are packages of their own, not components of the <RepoName>-facts aggregate, which holds no duty of the template holder.",
|
|
8708
|
+
"examples": [
|
|
8709
|
+
"blueprint-demos-facts",
|
|
8710
|
+
"blueprint-demos-docs"
|
|
8711
|
+
]
|
|
8712
|
+
}
|
|
8713
|
+
}
|
|
8714
|
+
}
|
|
8486
8715
|
}
|
|
8487
8716
|
],
|
|
8488
8717
|
"source": {
|
|
@@ -8554,6 +8783,21 @@
|
|
|
8554
8783
|
"kindMeaning": {
|
|
8555
8784
|
"InfraName": "a capability interface in infra/<InfraName>/: the code of other units depends on it, and it stays the same in every environment. It fixes the engine and the way to reach it, see blueprint-shared.infra-layout.capability-interface",
|
|
8556
8785
|
"OpsName": "an interface in ops/<OpsName>/ that changes with the environment, for example the address of each environment, used by the code of other units"
|
|
8786
|
+
},
|
|
8787
|
+
"dutyPackages": {
|
|
8788
|
+
"meaning": "The repository that holds the templates (blueprint-shared.templates.org-role) may have packages for its own duties. A package of the duty of showing the templates in demonstration repositories is named <RepoName>-demos-facts (facts) or <RepoName>-demos-docs (docs), and lives in demos/_facts or demos/_docs. The leading underscore keeps the two directories apart from the directory of a demonstration repository in demos/.",
|
|
8789
|
+
"pattern": "<RepoName>-<Duty>-facts and <RepoName>-<Duty>-docs, with <Duty> the duty in kebab-case; the duty demos is the only one written here",
|
|
8790
|
+
"dirs": {
|
|
8791
|
+
"<RepoName>-demos-facts": "demos/_facts",
|
|
8792
|
+
"<RepoName>-demos-docs": "demos/_docs"
|
|
8793
|
+
},
|
|
8794
|
+
"scope": "The @<scope>/ prefix follows blueprint-shared.naming.scope-prefix, like the other names of the repository.",
|
|
8795
|
+
"dependsOn": "They may depend on the packages of the organization layer of the repository and on the shared packages. No package of the organization layer or shared package depends on them.",
|
|
8796
|
+
"notAggregate": "They are packages of their own, not components of the <RepoName>-facts aggregate, which holds no duty of the template holder.",
|
|
8797
|
+
"examples": [
|
|
8798
|
+
"blueprint-demos-facts",
|
|
8799
|
+
"blueprint-demos-docs"
|
|
8800
|
+
]
|
|
8557
8801
|
}
|
|
8558
8802
|
}
|
|
8559
8803
|
}
|
|
@@ -8783,6 +9027,26 @@
|
|
|
8783
9027
|
"repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too."
|
|
8784
9028
|
}
|
|
8785
9029
|
}
|
|
9030
|
+
},
|
|
9031
|
+
{
|
|
9032
|
+
"since": "0.8.0",
|
|
9033
|
+
"content": {
|
|
9034
|
+
"value": {
|
|
9035
|
+
"meaning": "The name of the facts aggregate package, the only facts package of the repository that has components to aggregate and is published. A shared facts package with no components to aggregate is published on its own as a single layer (see blueprint-shared.naming.unit-name, shared) and is not an aggregate.",
|
|
9036
|
+
"productRepository": "<RepoName>-facts",
|
|
9037
|
+
"factsRepository": "<SourceTypeName>-facts",
|
|
9038
|
+
"noSuffix": "The aggregate never takes a publish target suffix.",
|
|
9039
|
+
"scope": "see blueprint-shared.naming.scope-prefix",
|
|
9040
|
+
"examples": [
|
|
9041
|
+
"acme-facts",
|
|
9042
|
+
"@my-org/orbit-facts",
|
|
9043
|
+
"orbit-pkg-facts",
|
|
9044
|
+
"@my-org/fleet-facts"
|
|
9045
|
+
],
|
|
9046
|
+
"repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too.",
|
|
9047
|
+
"templateHolderPackages": "The repository that holds the templates names the facts package of its duty of showing the templates <RepoName>-demos-facts, in demos/_facts, and its docs package <RepoName>-demos-docs, in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-demos-facts is a facts package of its own and not an aggregate. The <RepoName>-facts aggregate holds the organization values and the repository list only, with the rules of the organization itself."
|
|
9048
|
+
}
|
|
9049
|
+
}
|
|
8786
9050
|
}
|
|
8787
9051
|
],
|
|
8788
9052
|
"source": {
|
|
@@ -8801,7 +9065,8 @@
|
|
|
8801
9065
|
"orbit-pkg-facts",
|
|
8802
9066
|
"@my-org/fleet-facts"
|
|
8803
9067
|
],
|
|
8804
|
-
"repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too."
|
|
9068
|
+
"repositoryPrefix": "The aggregate package is named after the repository: its prefix is the RepoName, not a ProductName. A repository of the organization layer, which belongs to no product, names it <RepoName>-facts too.",
|
|
9069
|
+
"templateHolderPackages": "The repository that holds the templates names the facts package of its duty of showing the templates <RepoName>-demos-facts, in demos/_facts, and its docs package <RepoName>-demos-docs, in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-demos-facts is a facts package of its own and not an aggregate. The <RepoName>-facts aggregate holds the organization values and the repository list only, with the rules of the organization itself."
|
|
8805
9070
|
}
|
|
8806
9071
|
}
|
|
8807
9072
|
},
|
|
@@ -8913,6 +9178,21 @@
|
|
|
8913
9178
|
]
|
|
8914
9179
|
}
|
|
8915
9180
|
}
|
|
9181
|
+
},
|
|
9182
|
+
{
|
|
9183
|
+
"since": "0.8.0",
|
|
9184
|
+
"content": {
|
|
9185
|
+
"value": {
|
|
9186
|
+
"pattern": "<RepoName>-docs",
|
|
9187
|
+
"scope": "see blueprint-shared.naming.scope-prefix: follows the access of the docs unit",
|
|
9188
|
+
"examples": [
|
|
9189
|
+
"@my-org/acme-docs",
|
|
9190
|
+
"@my-org/acme-toolkit-docs",
|
|
9191
|
+
"@my-org/orbit-hub-docs"
|
|
9192
|
+
],
|
|
9193
|
+
"templateHolderPackages": "The repository that holds the templates has a second docs package for its duty of showing the templates: <RepoName>-demos-docs, in demos/_docs, next to <RepoName>-demos-facts in demos/_facts (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-docs, in docs/, stays the docs package of the organization layer."
|
|
9194
|
+
}
|
|
9195
|
+
}
|
|
8916
9196
|
}
|
|
8917
9197
|
],
|
|
8918
9198
|
"source": {
|
|
@@ -8926,7 +9206,8 @@
|
|
|
8926
9206
|
"@my-org/acme-docs",
|
|
8927
9207
|
"@my-org/acme-toolkit-docs",
|
|
8928
9208
|
"@my-org/orbit-hub-docs"
|
|
8929
|
-
]
|
|
9209
|
+
],
|
|
9210
|
+
"templateHolderPackages": "The repository that holds the templates has a second docs package for its duty of showing the templates: <RepoName>-demos-docs, in demos/_docs, next to <RepoName>-demos-facts in demos/_facts (blueprint-shared.naming.unit-name, dutyPackages). <RepoName>-docs, in docs/, stays the docs package of the organization layer."
|
|
8930
9211
|
}
|
|
8931
9212
|
}
|
|
8932
9213
|
},
|
|
@@ -13249,67 +13530,225 @@
|
|
|
13249
13530
|
"blueprintRoot": "The repository that holds the templates is not composed from roles, except for the files its own root assembly lists."
|
|
13250
13531
|
}
|
|
13251
13532
|
}
|
|
13252
|
-
}
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13280
|
-
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13285
|
-
|
|
13286
|
-
|
|
13287
|
-
|
|
13288
|
-
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13533
|
+
},
|
|
13534
|
+
{
|
|
13535
|
+
"since": "0.8.0",
|
|
13536
|
+
"content": {
|
|
13537
|
+
"value": {
|
|
13538
|
+
"rule": "A role is a directory of the templates package. A composed repository gets the files of the roles listed for it, in that order, and a file of the repository itself wins over a role file. The compose script refuses roles that disagree with the repository list or the units.",
|
|
13539
|
+
"roles": [
|
|
13540
|
+
{
|
|
13541
|
+
"role": "base",
|
|
13542
|
+
"dir": "base/",
|
|
13543
|
+
"needs": [],
|
|
13544
|
+
"for": "every repository",
|
|
13545
|
+
"carries": "commit and pull request checks, git hooks, CI, the auto-merge workflow, the Issue and pull request templates, the repository settings script, common.sh"
|
|
13546
|
+
},
|
|
13547
|
+
{
|
|
13548
|
+
"role": "release",
|
|
13549
|
+
"dir": "release/",
|
|
13550
|
+
"needs": [
|
|
13551
|
+
"base"
|
|
13552
|
+
],
|
|
13553
|
+
"for": "a repository with a release-policy.json (its repository declaration has releasePolicy: true)",
|
|
13554
|
+
"carries": "release-please settings and workflow, the release policy and its schema, the release scripts, the facts and docs pin scripts, the nightly workflow"
|
|
13555
|
+
},
|
|
13556
|
+
{
|
|
13557
|
+
"role": "publish",
|
|
13558
|
+
"dir": "publish/",
|
|
13559
|
+
"needs": [
|
|
13560
|
+
"base",
|
|
13561
|
+
"release"
|
|
13562
|
+
],
|
|
13563
|
+
"for": "a repository that publishes a unit or the facts or docs package",
|
|
13564
|
+
"carries": "see blueprint-shared.templates.publish-role"
|
|
13565
|
+
},
|
|
13566
|
+
{
|
|
13567
|
+
"role": "deploy",
|
|
13568
|
+
"dir": "deploy/",
|
|
13569
|
+
"needs": [
|
|
13570
|
+
"base",
|
|
13571
|
+
"release"
|
|
13572
|
+
],
|
|
13573
|
+
"for": "a repository with a Workers unit: a unit whose stack lang is workers, kind web, service or backend",
|
|
13574
|
+
"carries": "see blueprint-shared.templates.deploy-role"
|
|
13575
|
+
},
|
|
13576
|
+
{
|
|
13577
|
+
"role": "ops",
|
|
13578
|
+
"dir": "ops/",
|
|
13579
|
+
"needs": [
|
|
13580
|
+
"base"
|
|
13581
|
+
],
|
|
13582
|
+
"for": "the repository that puts the declared bundles online",
|
|
13583
|
+
"carries": "see blueprint-shared.templates.ops-role"
|
|
13584
|
+
},
|
|
13585
|
+
{
|
|
13586
|
+
"role": "hub",
|
|
13587
|
+
"dir": "hub/",
|
|
13588
|
+
"needs": [
|
|
13589
|
+
"base",
|
|
13590
|
+
"release"
|
|
13591
|
+
],
|
|
13592
|
+
"for": "the repository that holds the product version of a product with several repositories",
|
|
13593
|
+
"carries": "see blueprint-shared.templates.hub-role"
|
|
13594
|
+
},
|
|
13595
|
+
{
|
|
13596
|
+
"role": "verify",
|
|
13597
|
+
"dir": "verify/",
|
|
13598
|
+
"needs": [
|
|
13599
|
+
"base",
|
|
13600
|
+
"release"
|
|
13601
|
+
],
|
|
13602
|
+
"for": "the repository that holds the Release Plans of a product that deploys: it checks prod against the Release Plan after a release",
|
|
13603
|
+
"carries": "see blueprint-shared.templates.verify-role"
|
|
13604
|
+
}
|
|
13605
|
+
],
|
|
13606
|
+
"files": {
|
|
13607
|
+
"base": [
|
|
13608
|
+
"LICENSE",
|
|
13609
|
+
".gitignore",
|
|
13610
|
+
".github/CODEOWNERS.example",
|
|
13611
|
+
".github/ISSUE_TEMPLATE/bug.yml",
|
|
13612
|
+
".github/ISSUE_TEMPLATE/feature.yml",
|
|
13613
|
+
".github/ISSUE_TEMPLATE/hotfix.yml",
|
|
13614
|
+
".github/PULL_REQUEST_TEMPLATE.md",
|
|
13615
|
+
".github/actions/setup-workspace/action.yml",
|
|
13616
|
+
".github/version-control.md",
|
|
13617
|
+
".github/workflows/auto-merge.yml",
|
|
13618
|
+
".github/workflows/ci.yml",
|
|
13619
|
+
".github/workflows/main-commit-check.yml",
|
|
13620
|
+
".github/workflows/pr-message.yml",
|
|
13621
|
+
".oxlintrc.json",
|
|
13622
|
+
"releases/release-plan.md",
|
|
13623
|
+
"scripts/ci/affected.sh",
|
|
13624
|
+
"scripts/ci/ai-attribution-list.txt",
|
|
13625
|
+
"scripts/ci/check-commit-body.sh",
|
|
13626
|
+
"scripts/ci/check-main-commits.sh",
|
|
13627
|
+
"scripts/ci/check-pr-title.sh",
|
|
13628
|
+
"scripts/ci/ci-scope.conf",
|
|
13629
|
+
"scripts/ci/ci-scope.sh",
|
|
13630
|
+
"scripts/ci/native-build.sh",
|
|
13631
|
+
"scripts/ci/run-affected.sh",
|
|
13632
|
+
"scripts/ci/run-units.sh",
|
|
13633
|
+
"scripts/hooks/commit-msg",
|
|
13634
|
+
"scripts/hooks/pre-push",
|
|
13635
|
+
"scripts/lib/common.sh",
|
|
13636
|
+
"scripts/merge/decide.mjs",
|
|
13637
|
+
"scripts/setup/git-hooks.sh",
|
|
13638
|
+
"scripts/setup/github-repo-settings.json",
|
|
13639
|
+
"scripts/setup/github-repo-settings.sh"
|
|
13640
|
+
],
|
|
13641
|
+
"release": [
|
|
13642
|
+
".github/workflows/advance-release.yml",
|
|
13643
|
+
".github/workflows/close-release.yml",
|
|
13644
|
+
".github/workflows/merge-back.yml",
|
|
13645
|
+
".github/workflows/merge-release-pr.yml",
|
|
13646
|
+
".github/workflows/nightly.yml",
|
|
13647
|
+
".github/workflows/open-release-line.yml",
|
|
13648
|
+
".github/workflows/release-line-finalize.yml",
|
|
13649
|
+
".github/workflows/release-please.yml",
|
|
13650
|
+
".github/workflows/sync-release-tools.yml",
|
|
13651
|
+
"release-please-config.json",
|
|
13652
|
+
"release-policy.json",
|
|
13653
|
+
"schemas/release-policy.schema.json",
|
|
13654
|
+
"scripts/ci/branch-exists.sh",
|
|
13655
|
+
"scripts/ci/check-facts-describes.sh",
|
|
13656
|
+
"scripts/ci/check-facts.sh",
|
|
13657
|
+
"scripts/ci/check-release-policy-schema.sh",
|
|
13658
|
+
"scripts/ci/check-release-policy.sh",
|
|
13659
|
+
"scripts/ci/pin-train.sh",
|
|
13660
|
+
"scripts/ci/release-train.sh",
|
|
13661
|
+
"scripts/ci/validate-json-schema.mjs",
|
|
13662
|
+
"scripts/lib/docs.sh",
|
|
13663
|
+
"scripts/lib/facts.sh",
|
|
13664
|
+
"scripts/lib/release-plan.sh",
|
|
13665
|
+
"scripts/lib/release-pr.sh",
|
|
13666
|
+
"scripts/lib/release-stages.sh",
|
|
13667
|
+
"scripts/release/advance-release.sh",
|
|
13668
|
+
"scripts/release/check-trigger-actor.sh",
|
|
13669
|
+
"scripts/release/close-ready.mjs",
|
|
13670
|
+
"scripts/release/close-ready.sh",
|
|
13671
|
+
"scripts/release/cut-release.sh",
|
|
13672
|
+
"scripts/release/dispatch-publish.sh",
|
|
13673
|
+
"scripts/release/ensure-stage-deploys.sh",
|
|
13674
|
+
"scripts/release/finalize-release.sh",
|
|
13675
|
+
"scripts/release/merge-back-ready.sh",
|
|
13676
|
+
"scripts/release/merge-release-pr.sh",
|
|
13677
|
+
"scripts/release/open-release-line.sh",
|
|
13678
|
+
"scripts/release/pin-release-pr.sh",
|
|
13679
|
+
"scripts/release/plan.sh",
|
|
13680
|
+
"scripts/release/product-release-notes.sh",
|
|
13681
|
+
"scripts/release/snapshot.sh",
|
|
13682
|
+
"scripts/release/sync-release-tools.sh",
|
|
13683
|
+
"scripts/release/verify-prod.sh"
|
|
13684
|
+
]
|
|
13685
|
+
},
|
|
13686
|
+
"otherRoleFiles": "The files of publish, deploy, ops, hub and verify are listed in their own facts (publish-role, deploy-role, ops-role, hub-role, verify-role).",
|
|
13687
|
+
"sameFileInTwoRoles": "A file with the same path in two roles is taken from the later role, so the two have to be the same file (scripts/lib/bundle.sh is the same file in deploy and ops, and scripts/deploy/clone-ops.sh the same file in deploy and hub).",
|
|
13688
|
+
"blueprintRoot": "The repository that holds the templates is also a repository of the organization layer (blueprint-shared.templates.org-role). It is not composed from roles, except for the files its own root assembly lists."
|
|
13689
|
+
}
|
|
13690
|
+
}
|
|
13691
|
+
}
|
|
13692
|
+
],
|
|
13693
|
+
"source": {
|
|
13694
|
+
"kind": "published"
|
|
13695
|
+
},
|
|
13696
|
+
"content": {
|
|
13697
|
+
"value": {
|
|
13698
|
+
"rule": "A role is a directory of the templates package. A composed repository gets the files of the roles listed for it, in that order, and a file of the repository itself wins over a role file. The compose script refuses roles that disagree with the repository list or the units.",
|
|
13699
|
+
"roles": [
|
|
13700
|
+
{
|
|
13701
|
+
"role": "base",
|
|
13702
|
+
"dir": "base/",
|
|
13703
|
+
"needs": [],
|
|
13704
|
+
"for": "every repository",
|
|
13705
|
+
"carries": "commit and pull request checks, git hooks, CI, the auto-merge workflow, the Issue and pull request templates, the repository settings script, common.sh"
|
|
13706
|
+
},
|
|
13707
|
+
{
|
|
13708
|
+
"role": "release",
|
|
13709
|
+
"dir": "release/",
|
|
13710
|
+
"needs": [
|
|
13711
|
+
"base"
|
|
13712
|
+
],
|
|
13713
|
+
"for": "a repository with a release-policy.json (its repository declaration has releasePolicy: true)",
|
|
13714
|
+
"carries": "release-please settings and workflow, the release policy and its schema, the release scripts, the facts and docs pin scripts, the nightly workflow"
|
|
13715
|
+
},
|
|
13716
|
+
{
|
|
13717
|
+
"role": "publish",
|
|
13718
|
+
"dir": "publish/",
|
|
13719
|
+
"needs": [
|
|
13720
|
+
"base",
|
|
13721
|
+
"release"
|
|
13722
|
+
],
|
|
13723
|
+
"for": "a repository that publishes a unit or the facts or docs package",
|
|
13724
|
+
"carries": "see blueprint-shared.templates.publish-role"
|
|
13725
|
+
},
|
|
13726
|
+
{
|
|
13727
|
+
"role": "deploy",
|
|
13728
|
+
"dir": "deploy/",
|
|
13729
|
+
"needs": [
|
|
13730
|
+
"base",
|
|
13731
|
+
"release"
|
|
13732
|
+
],
|
|
13733
|
+
"for": "a repository with a Workers unit: a unit whose stack lang is workers, kind web, service or backend",
|
|
13734
|
+
"carries": "see blueprint-shared.templates.deploy-role"
|
|
13735
|
+
},
|
|
13736
|
+
{
|
|
13737
|
+
"role": "ops",
|
|
13738
|
+
"dir": "ops/",
|
|
13739
|
+
"needs": [
|
|
13740
|
+
"base"
|
|
13741
|
+
],
|
|
13742
|
+
"for": "the repository that puts the declared bundles online",
|
|
13743
|
+
"carries": "see blueprint-shared.templates.ops-role"
|
|
13744
|
+
},
|
|
13745
|
+
{
|
|
13746
|
+
"role": "hub",
|
|
13747
|
+
"dir": "hub/",
|
|
13748
|
+
"needs": [
|
|
13749
|
+
"base",
|
|
13750
|
+
"release"
|
|
13751
|
+
],
|
|
13313
13752
|
"for": "the repository that holds the product version of a product with several repositories",
|
|
13314
13753
|
"carries": "see blueprint-shared.templates.hub-role"
|
|
13315
13754
|
},
|
|
@@ -13406,7 +13845,7 @@
|
|
|
13406
13845
|
},
|
|
13407
13846
|
"otherRoleFiles": "The files of publish, deploy, ops, hub and verify are listed in their own facts (publish-role, deploy-role, ops-role, hub-role, verify-role).",
|
|
13408
13847
|
"sameFileInTwoRoles": "A file with the same path in two roles is taken from the later role, so the two have to be the same file (scripts/lib/bundle.sh is the same file in deploy and ops, and scripts/deploy/clone-ops.sh the same file in deploy and hub).",
|
|
13409
|
-
"blueprintRoot": "The repository that holds the templates is not composed from roles, except for the files its own root assembly lists."
|
|
13848
|
+
"blueprintRoot": "The repository that holds the templates is also a repository of the organization layer (blueprint-shared.templates.org-role). It is not composed from roles, except for the files its own root assembly lists."
|
|
13410
13849
|
}
|
|
13411
13850
|
}
|
|
13412
13851
|
},
|
|
@@ -13527,6 +13966,39 @@
|
|
|
13527
13966
|
"baseLookup": "close and its checklist find the Release-Train-Base of the train on origin/main with no limit on the number of commits (main_has_train_base, which narrows the walk with --grep), because main moves on while the merge-back PR waits for its checks"
|
|
13528
13967
|
}
|
|
13529
13968
|
}
|
|
13969
|
+
},
|
|
13970
|
+
{
|
|
13971
|
+
"since": "0.7.1",
|
|
13972
|
+
"content": {
|
|
13973
|
+
"value": {
|
|
13974
|
+
"file": "release/scripts/release/finalize-release.sh",
|
|
13975
|
+
"role": "release",
|
|
13976
|
+
"usage": "finalize-release.sh --line X.Y --phase ga|merge-back|close [--head-sha <sha>] [--yes] [--dry-run]",
|
|
13977
|
+
"sameAsTemplate": "Every argument of the template this one grew out of keeps its name and meaning",
|
|
13978
|
+
"phases": [
|
|
13979
|
+
{
|
|
13980
|
+
"phase": "ga",
|
|
13981
|
+
"does": "Each unit gets one Release-As commit with its own stable version, the config leaves prerelease mode. Runs the GA gates first, including fact-kit check --train for the accumulated next rows."
|
|
13982
|
+
},
|
|
13983
|
+
{
|
|
13984
|
+
"phase": "merge-back",
|
|
13985
|
+
"does": "Verifies the GA tags of the units the train shipped, writes the product version into the root package.json, restores the config and the non-train manifest entries from main, and opens the release PR to main. That PR is merged with squash. A line whose manifest equals main (no unit released, such as a hub that only holds the plan) goes the same way with the product version only, and close tags vX.Y.Z on its last commit."
|
|
13986
|
+
},
|
|
13987
|
+
{
|
|
13988
|
+
"phase": "close",
|
|
13989
|
+
"does": "Merges that PR with a squash message the script controls, tags vX.Y.Z on the final commit of the train, deletes the branches and runs the close checklist against origin/main. It never switches to main."
|
|
13990
|
+
}
|
|
13991
|
+
],
|
|
13992
|
+
"productVersion": "the Release-Plan trailer that cut-release.sh wrote; merge-back copies it onto main so close finds it after the train branch is gone",
|
|
13993
|
+
"tagPlace": "The product tag sits on the train, not on the merge result on main, so a patch rebuilt from the tag does not carry unreleased changes.",
|
|
13994
|
+
"productOnlyDecision": "merge-back-product-only",
|
|
13995
|
+
"productCommitRun": "The commit of merge-back that removes the .release-marker files and writes the product version (chore(<release branch>): product vX.Y.Z) touches unit paths, so it starts release-please.yml, but it has nothing to version. The release-please job skips that push by its head commit message, and ensure-stage-deploys skips with it, because the release branch is deleted when the release PR to main is merged and a run that starts after that cannot read the manifest of the branch. A change to the message changes the if of the job with it.",
|
|
13996
|
+
"mergeBackTagCheck": "The check of merge-back that every unit of the train has its final tag is train_final_tags_missing (scripts/lib/release-stages.sh). It looks at train_units_by_manifest: the units whose manifest version differs from origin/main's, which release-please has already written, not a recount of the commits (a commit message override in the body of a pull request is invisible to git log --grep). A unit on a prerelease version counts as missing, and so does one on a stable version without its <component>/v<version> tag. finalize-release.sh --phase merge-back and --phase close first check that the line has no open Release PR (head release-please--branches--<branch>, train_open_release_pr_check) and fail with the reason when it has one, before anything is written. The release-please job asks train_merge_back_ready, through merge-back-ready.sh, to decide whether to start the merge-back job (blueprint-shared.templates.release-event-steps); it holds three conditions: the stage is ga, the line has no open Release PR (asked with its own gh pr list and exit code, a failed query counts as not ready), and the manifest difference has at least one unit and every unit in it has its final tag. A manifest with no difference (a line just opened, or a train that bumped no unit) is not ready on the event path, so a line that ships no unit gets its merge-back by dispatching merge-back.yml by hand. The manual phase itself still finishes with no unit bumped. A second Release PR opened after ga holds the merge-back back until it is merged. When tags are missing the phase fails and lists them.",
|
|
13997
|
+
"closeMerge": "Before close merges the PR it reads the head and the mergeability of the PR once. A head other than --head-sha (the head_sha of the event that started the close workflow, the commit the finished checks ran for) stops it: nothing is merged, tagged or deleted. A PR that conflicts with main (main moved after the merge-back PR was made) stops it too, with the message to run merge-back again, which rebuilds the branch on the new main, pushes a new head and starts new checks. The merge is gh pr merge --squash --match-head-commit <that head>, so a commit pushed after the read is refused by GitHub. Without --head-sha (a person on a machine) the head read just before the merge is used. close-release.yml runs this phase (blueprint-shared.templates.release-tool-sync-and-close).",
|
|
13998
|
+
"closeLateCommits": "Before close merges the PR, tags or deletes anything it lists the commits of the release branch after the merge-back product commit (chore(<release branch>): product vX.Y.Z) that origin/main does not have, judged by patch and by content, not by ancestry (train_commits_after_merge_back). Any such commit stops close with the commits listed, because the product tag would sit on a tree that main never got. No tag is made and no branch is deleted",
|
|
13999
|
+
"baseLookup": "close and its checklist find the Release-Train-Base of the train on origin/main with no limit on the number of commits (main_has_train_base, which narrows the walk with --grep), because main moves on while the merge-back PR waits for its checks"
|
|
14000
|
+
}
|
|
14001
|
+
}
|
|
13530
14002
|
}
|
|
13531
14003
|
],
|
|
13532
14004
|
"source": {
|
|
@@ -13556,7 +14028,7 @@
|
|
|
13556
14028
|
"tagPlace": "The product tag sits on the train, not on the merge result on main, so a patch rebuilt from the tag does not carry unreleased changes.",
|
|
13557
14029
|
"productOnlyDecision": "merge-back-product-only",
|
|
13558
14030
|
"productCommitRun": "The commit of merge-back that removes the .release-marker files and writes the product version (chore(<release branch>): product vX.Y.Z) touches unit paths, so it starts release-please.yml, but it has nothing to version. The release-please job skips that push by its head commit message, and ensure-stage-deploys skips with it, because the release branch is deleted when the release PR to main is merged and a run that starts after that cannot read the manifest of the branch. A change to the message changes the if of the job with it.",
|
|
13559
|
-
"mergeBackTagCheck": "The check of merge-back that every unit of the train has its final tag is train_final_tags_missing (scripts/lib/release-stages.sh).
|
|
14031
|
+
"mergeBackTagCheck": "The check of merge-back that every unit of the train has its final tag is train_final_tags_missing (scripts/lib/release-stages.sh). It looks at train_units_by_manifest: the units whose manifest version differs from origin/main's, which release-please has already written, not a recount of the commits (a commit message override in the body of a pull request is invisible to git log --grep). A unit on a prerelease version counts as missing, and so does one on a stable version without its <component>/v<version> tag. finalize-release.sh --phase merge-back and --phase close first check that the line has no open Release PR (head release-please--branches--<branch>, train_open_release_pr_check) and fail with the reason when it has one, before anything is written. The release-please job asks train_merge_back_ready, through merge-back-ready.sh, to decide whether to start the merge-back job (blueprint-shared.templates.release-event-steps); it holds three conditions: the stage is ga, the line has no open Release PR (asked with its own gh pr list and exit code, a failed query counts as not ready), and the manifest difference has at least one unit and every unit in it has its final tag. A manifest with no difference (a line just opened, or a train that bumped no unit) is not ready on the event path, so a line that ships no unit gets its merge-back by dispatching merge-back.yml by hand. The manual phase itself still finishes with no unit bumped. A second Release PR opened after ga holds the merge-back back until it is merged. When tags are missing the phase fails and lists them.",
|
|
13560
14032
|
"closeMerge": "Before close merges the PR it reads the head and the mergeability of the PR once. A head other than --head-sha (the head_sha of the event that started the close workflow, the commit the finished checks ran for) stops it: nothing is merged, tagged or deleted. A PR that conflicts with main (main moved after the merge-back PR was made) stops it too, with the message to run merge-back again, which rebuilds the branch on the new main, pushes a new head and starts new checks. The merge is gh pr merge --squash --match-head-commit <that head>, so a commit pushed after the read is refused by GitHub. Without --head-sha (a person on a machine) the head read just before the merge is used. close-release.yml runs this phase (blueprint-shared.templates.release-tool-sync-and-close).",
|
|
13561
14033
|
"closeLateCommits": "Before close merges the PR, tags or deletes anything it lists the commits of the release branch after the merge-back product commit (chore(<release branch>): product vX.Y.Z) that origin/main does not have, judged by patch and by content, not by ancestry (train_commits_after_merge_back). Any such commit stops close with the commits listed, because the product tag would sit on a tree that main never got. No tag is made and no branch is deleted",
|
|
13562
14034
|
"baseLookup": "close and its checklist find the Release-Train-Base of the train on origin/main with no limit on the number of commits (main_has_train_base, which narrows the walk with --grep), because main moves on while the merge-back PR waits for its checks"
|
|
@@ -13629,6 +14101,37 @@
|
|
|
13629
14101
|
"releasePleaseSettled": "release-please counts as processed only when all hold: no release-please run on the branch is queued or in progress, the newest finished run concluded success (any other conclusion, such as failure, cancelled or timed_out, fails with the conclusion and the link of that run, because the versions were not recomputed), and that run's commit and the tip of the branch differ in none of the paths of on.push.paths of release-please.yml. \"The tip has a finished run\" is not enough, because a commit that touches only tooling starts no run. A branch with no run at all counts as processed, and the wait for the Release PR that follows decides. When the state does not settle within the rounds, the script fails, on a machine as in a workflow"
|
|
13630
14102
|
}
|
|
13631
14103
|
}
|
|
14104
|
+
},
|
|
14105
|
+
{
|
|
14106
|
+
"since": "0.7.1",
|
|
14107
|
+
"content": {
|
|
14108
|
+
"value": {
|
|
14109
|
+
"file": "release/scripts/release/merge-release-pr.sh",
|
|
14110
|
+
"role": "release",
|
|
14111
|
+
"usage": "merge-release-pr.sh --line X.Y [--yes] [--dry-run]",
|
|
14112
|
+
"sameAsTemplate": "Every argument of the template this one grew out of keeps its name and meaning",
|
|
14113
|
+
"order": [
|
|
14114
|
+
"stop unless release-please has processed the branch (release_please_settled): no run is queued or in progress, and the newest finished run and the tip of origin/release/vX.Y differ in none of the paths release-please.yml filters by. It looks POLL_TRIES times, POLL_SLEEP apart, and fails after the last look. It never goes on with a warning",
|
|
14115
|
+
"wait until the head of the Release PR has stopped moving",
|
|
14116
|
+
"work out the units this merge releases: the manifest of the PR head against origin/release/vX.Y",
|
|
14117
|
+
"check the version of every unit in the PR (waits for a recomputed PR, fails at the timeout)",
|
|
14118
|
+
"release_pin_open_pr, the function the release-please job calls too (blueprint-shared.templates.release-event-steps): it stops with a failure when a commit release-please processes (a releasable commit that touches a unit path of the config, or a change of the config or the manifest) lies between the base of the Release PR and the branch tip, or when a version is not what it must be; otherwise fact-kit pin --version for each unit that has a component package, committed as chore(facts) on the release branch, clarify-kit pin --version for each unit with a docs/<unit> directory, committed as chore(docs) (the product layer docs/product was pinned when the line was cut), and a push when the branch is ahead of origin",
|
|
14119
|
+
"when it pushed, stop with a failure that tells the person to start the script again once release-please has processed the pin commit; nothing is merged in that run",
|
|
14120
|
+
"fact-kit check --train <unit>=<version>; a row still saying next that is not pending fails it",
|
|
14121
|
+
"gh pr merge --squash --match-head-commit <sha>"
|
|
14122
|
+
],
|
|
14123
|
+
"why": "The check is a gate only when the merge goes through this script, because a repository on a plan that cannot make a check required (a private repository on the GitHub Free plan is one) has no required checks (blueprint-shared.merge.no-platform-auto-merge).",
|
|
14124
|
+
"pinBranch": "Pinned on the release branch, never on the PR branch, which release-please rewrites with force.",
|
|
14125
|
+
"stableOnGa": "At stage ga it waits until the PR content has no prerelease version.",
|
|
14126
|
+
"callers": "A person on a machine, and the workflow merge-release-pr.yml (blueprint-shared.templates.release-manual-workflows). The auto-merge workflow does not run it: its decision for a Release PR is always skip (scripts/merge/decide.mjs).",
|
|
14127
|
+
"decision": "docs-pin-clarify-kit",
|
|
14128
|
+
"versionCheck": "Before the merge it checks the version of every unit in the Release PR. A unit with no tag must get the first version computed by the shared function of release-stages.sh. A unit with a tag must have a stage name equal to its stage in the branch config and not later than its result stage on the line, which the policy gives and which is never earlier than the stage of the line (a unit that only walks ga ships its final version at any stage of the line). When the line is at ga, every unit is expected at ga, because the config keeps the last prerelease stage until the merge-back. When a version does not match, it reads the PR again at the pace of release_pr_settle and stops only when it still does not match at the timeout, printing the unit, the PR version and the expected one. It does not merge in that case.",
|
|
14129
|
+
"versionCheckDecision": "merge-release-pr-checks-versions",
|
|
14130
|
+
"pinTiming": "The pin is normally made earlier, by the release-please job after it has written the Release PR (blueprint-shared.templates.release-event-steps), and this script finds nothing to pin. It pins when the repository has no App, or the job missed it or did not finish. The decision is release-pin-and-merge-back-by-events.",
|
|
14131
|
+
"pinPushStops": "After it pushes the pin commits it does not wait for release-please. The push makes release-please run again and recompute the PR, and a job of a workflow does not wait, so the script stops with a failure and the person starts it again. The second run finds nothing to pin, checks the versions on the recomputed PR and merges. A run that pushed nothing goes straight on.",
|
|
14132
|
+
"releasePleaseSettled": "release-please counts as processed only when all hold: no release-please run on the branch is queued or in progress, the newest finished run concluded success (any other conclusion, such as failure, cancelled or timed_out, fails with the conclusion and the link of that run, because the versions were not recomputed), and that run's commit and the tip of the branch differ in none of the paths of on.push.paths of release-please.yml. \"The tip has a finished run\" is not enough, because a commit that touches only .github/ starts no run (a commit that touches scripts/ does, since scripts/** is one of the paths). A branch with no run at all counts as processed, and the wait for the Release PR that follows decides. When the state does not settle within the rounds, the script fails, on a machine as in a workflow"
|
|
14133
|
+
}
|
|
14134
|
+
}
|
|
13632
14135
|
}
|
|
13633
14136
|
],
|
|
13634
14137
|
"source": {
|
|
@@ -13659,7 +14162,7 @@
|
|
|
13659
14162
|
"versionCheckDecision": "merge-release-pr-checks-versions",
|
|
13660
14163
|
"pinTiming": "The pin is normally made earlier, by the release-please job after it has written the Release PR (blueprint-shared.templates.release-event-steps), and this script finds nothing to pin. It pins when the repository has no App, or the job missed it or did not finish. The decision is release-pin-and-merge-back-by-events.",
|
|
13661
14164
|
"pinPushStops": "After it pushes the pin commits it does not wait for release-please. The push makes release-please run again and recompute the PR, and a job of a workflow does not wait, so the script stops with a failure and the person starts it again. The second run finds nothing to pin, checks the versions on the recomputed PR and merges. A run that pushed nothing goes straight on.",
|
|
13662
|
-
"releasePleaseSettled": "release-please counts as processed only when all hold: no release-please run on the branch is queued or in progress, the newest finished run concluded success (any other conclusion, such as failure, cancelled or timed_out, fails with the conclusion and the link of that run, because the versions were not recomputed), and that run's commit and the tip of the branch differ in none of the paths of on.push.paths of release-please.yml. \"The tip has a finished run\" is not enough, because a commit that touches only
|
|
14165
|
+
"releasePleaseSettled": "release-please counts as processed only when all hold: no release-please run on the branch is queued or in progress, the newest finished run concluded success (any other conclusion, such as failure, cancelled or timed_out, fails with the conclusion and the link of that run, because the versions were not recomputed), and that run's commit and the tip of the branch differ in none of the paths of on.push.paths of release-please.yml. \"The tip has a finished run\" is not enough, because a commit that touches only .github/ starts no run (a commit that touches scripts/ does, since scripts/** is one of the paths). A branch with no run at all counts as processed, and the wait for the Release PR that follows decides. When the state does not settle within the rounds, the script fails, on a machine as in a workflow"
|
|
13663
14166
|
}
|
|
13664
14167
|
}
|
|
13665
14168
|
},
|
|
@@ -13839,63 +14342,141 @@
|
|
|
13839
14342
|
"validatesDecision": "policy-schema-check-with-ajv"
|
|
13840
14343
|
}
|
|
13841
14344
|
}
|
|
13842
|
-
}
|
|
13843
|
-
],
|
|
13844
|
-
"source": {
|
|
13845
|
-
"kind": "published"
|
|
13846
|
-
},
|
|
13847
|
-
"content": {
|
|
13848
|
-
"value": {
|
|
13849
|
-
"file": "release/scripts/ci/check-release-policy-schema.sh",
|
|
13850
|
-
"role": "release",
|
|
13851
|
-
"usage": "check-release-policy-schema.sh [--policy <file>] | --samples",
|
|
13852
|
-
"sameAsTemplate": "Every argument of the template this one grew out of keeps its name and meaning",
|
|
13853
|
-
"validates": "release-policy.json against schemas/release-policy.schema.json (draft-07), by node scripts/ci/validate-json-schema.mjs, which uses ajv 8 from the root devDependencies",
|
|
13854
|
-
"samples": "--samples rejects every file in tests/fixtures/release-policy/invalid, accepts every one in valid and the policy file the e2e fixture() writes",
|
|
13855
|
-
"exitStatus": "0 all as expected, 1 not, 2 wrong arguments",
|
|
13856
|
-
"crossFields": "blueprint-shared.templates.script.check-release-policy",
|
|
13857
|
-
"validatesDecision": "policy-schema-check-with-ajv"
|
|
13858
|
-
}
|
|
13859
|
-
}
|
|
13860
|
-
},
|
|
13861
|
-
{
|
|
13862
|
-
"id": "blueprint-shared.repo-layout.directories",
|
|
13863
|
-
"tool": "blueprint-shared",
|
|
13864
|
-
"topics": [
|
|
13865
|
-
"repo-layout"
|
|
13866
|
-
],
|
|
13867
|
-
"title": "倉庫的目錄骨架",
|
|
13868
|
-
"description": "每個倉共用的頂層目錄與檔案,只留用得到的。",
|
|
13869
|
-
"variants": [
|
|
14345
|
+
}
|
|
14346
|
+
],
|
|
14347
|
+
"source": {
|
|
14348
|
+
"kind": "published"
|
|
14349
|
+
},
|
|
14350
|
+
"content": {
|
|
14351
|
+
"value": {
|
|
14352
|
+
"file": "release/scripts/ci/check-release-policy-schema.sh",
|
|
14353
|
+
"role": "release",
|
|
14354
|
+
"usage": "check-release-policy-schema.sh [--policy <file>] | --samples",
|
|
14355
|
+
"sameAsTemplate": "Every argument of the template this one grew out of keeps its name and meaning",
|
|
14356
|
+
"validates": "release-policy.json against schemas/release-policy.schema.json (draft-07), by node scripts/ci/validate-json-schema.mjs, which uses ajv 8 from the root devDependencies",
|
|
14357
|
+
"samples": "--samples rejects every file in tests/fixtures/release-policy/invalid, accepts every one in valid and the policy file the e2e fixture() writes",
|
|
14358
|
+
"exitStatus": "0 all as expected, 1 not, 2 wrong arguments",
|
|
14359
|
+
"crossFields": "blueprint-shared.templates.script.check-release-policy",
|
|
14360
|
+
"validatesDecision": "policy-schema-check-with-ajv"
|
|
14361
|
+
}
|
|
14362
|
+
}
|
|
14363
|
+
},
|
|
14364
|
+
{
|
|
14365
|
+
"id": "blueprint-shared.repo-layout.directories",
|
|
14366
|
+
"tool": "blueprint-shared",
|
|
14367
|
+
"topics": [
|
|
14368
|
+
"repo-layout"
|
|
14369
|
+
],
|
|
14370
|
+
"title": "倉庫的目錄骨架",
|
|
14371
|
+
"description": "每個倉共用的頂層目錄與檔案,只留用得到的。",
|
|
14372
|
+
"variants": [
|
|
14373
|
+
{
|
|
14374
|
+
"since": "0.1.0",
|
|
14375
|
+
"content": {
|
|
14376
|
+
"value": {
|
|
14377
|
+
"keep": "A repository keeps only the directories it uses.",
|
|
14378
|
+
"entries": [
|
|
14379
|
+
{
|
|
14380
|
+
"path": "apps/<AppName>/",
|
|
14381
|
+
"holds": "deployable front ends and clients"
|
|
14382
|
+
},
|
|
14383
|
+
{
|
|
14384
|
+
"path": "services/<ServiceName>/",
|
|
14385
|
+
"holds": "deployable back-end services"
|
|
14386
|
+
},
|
|
14387
|
+
{
|
|
14388
|
+
"path": "packages/<PackageName>/",
|
|
14389
|
+
"holds": "packages published to a registry"
|
|
14390
|
+
},
|
|
14391
|
+
{
|
|
14392
|
+
"path": "libs/<LibName>/",
|
|
14393
|
+
"holds": "internal shared libraries"
|
|
14394
|
+
},
|
|
14395
|
+
{
|
|
14396
|
+
"path": "infra/",
|
|
14397
|
+
"holds": "declarations of cloud resources: environments, domains, token scopes; and infra/<InfraName>/, a unit that provides an interface to the units that use it"
|
|
14398
|
+
},
|
|
14399
|
+
{
|
|
14400
|
+
"path": "ops/",
|
|
14401
|
+
"holds": "declarations of which version runs in each environment; and ops/<OpsName>/, a unit that provides an interface (the URL patterns of the environments) to the units that use it"
|
|
14402
|
+
},
|
|
14403
|
+
{
|
|
14404
|
+
"path": "facts/",
|
|
14405
|
+
"holds": "the facts aggregate package at the root, one sub-directory per component package, and facts/<RepoName>-shared-facts, a facts package published on its own and shared by several products"
|
|
14406
|
+
},
|
|
14407
|
+
{
|
|
14408
|
+
"path": "docs/",
|
|
14409
|
+
"holds": "the clarify docs package"
|
|
14410
|
+
},
|
|
14411
|
+
{
|
|
14412
|
+
"path": "templates/",
|
|
14413
|
+
"holds": "the template package published on its own and shared by several products, with its own package.json; the repository that owns the templates keeps them here"
|
|
14414
|
+
},
|
|
14415
|
+
{
|
|
14416
|
+
"path": "releases/",
|
|
14417
|
+
"holds": "Release Plans, only in the repository that holds the product version"
|
|
14418
|
+
},
|
|
14419
|
+
{
|
|
14420
|
+
"path": "scripts/",
|
|
14421
|
+
"holds": "governance scripts synced from the shared templates"
|
|
14422
|
+
},
|
|
14423
|
+
{
|
|
14424
|
+
"path": ".github/workflows/",
|
|
14425
|
+
"holds": "workflows synced from the shared templates"
|
|
14426
|
+
},
|
|
14427
|
+
{
|
|
14428
|
+
"path": "release-please-config.json",
|
|
14429
|
+
"holds": "release-please packages"
|
|
14430
|
+
},
|
|
14431
|
+
{
|
|
14432
|
+
"path": ".release-please-manifest.json",
|
|
14433
|
+
"holds": "released version of each package"
|
|
14434
|
+
},
|
|
14435
|
+
{
|
|
14436
|
+
"path": "release-policy.json",
|
|
14437
|
+
"holds": "the release policy of the repository"
|
|
14438
|
+
},
|
|
14439
|
+
{
|
|
14440
|
+
"path": "package.json",
|
|
14441
|
+
"holds": "the root package"
|
|
14442
|
+
},
|
|
14443
|
+
{
|
|
14444
|
+
"path": "pnpm-workspace.yaml",
|
|
14445
|
+
"holds": "the pnpm workspace"
|
|
14446
|
+
}
|
|
14447
|
+
]
|
|
14448
|
+
}
|
|
14449
|
+
}
|
|
14450
|
+
},
|
|
13870
14451
|
{
|
|
13871
|
-
"since": "0.
|
|
14452
|
+
"since": "0.4.0",
|
|
13872
14453
|
"content": {
|
|
13873
14454
|
"value": {
|
|
13874
14455
|
"keep": "A repository keeps only the directories it uses.",
|
|
13875
14456
|
"entries": [
|
|
13876
14457
|
{
|
|
13877
14458
|
"path": "apps/<AppName>/",
|
|
13878
|
-
"holds": "
|
|
14459
|
+
"holds": "front ends and programs that run at the edge"
|
|
13879
14460
|
},
|
|
13880
14461
|
{
|
|
13881
14462
|
"path": "services/<ServiceName>/",
|
|
13882
|
-
"holds": "
|
|
14463
|
+
"holds": "long-running programs deployed by a configuration repository"
|
|
13883
14464
|
},
|
|
13884
14465
|
{
|
|
13885
14466
|
"path": "packages/<PackageName>/",
|
|
13886
|
-
"holds": "
|
|
14467
|
+
"holds": "what is published for others to use at a fixed version and is not run by this repository itself, the building blocks (OpenTofu modules, Ansible roles, charts) included (blueprint-shared.infra-layout.tools)"
|
|
13887
14468
|
},
|
|
13888
14469
|
{
|
|
13889
14470
|
"path": "libs/<LibName>/",
|
|
13890
|
-
"holds": "
|
|
14471
|
+
"holds": "libraries shared inside the repository; another repository takes them from a registry"
|
|
13891
14472
|
},
|
|
13892
14473
|
{
|
|
13893
14474
|
"path": "infra/",
|
|
13894
|
-
"holds": "
|
|
14475
|
+
"holds": "capability interfaces only: infra/<InfraName>/, an interface that the code of other units depends on and that stays the same in every environment (blueprint-shared.infra-layout.capability-interface). Cloud resources are declared and applied under ops/"
|
|
13895
14476
|
},
|
|
13896
14477
|
{
|
|
13897
14478
|
"path": "ops/",
|
|
13898
|
-
"holds": "
|
|
14479
|
+
"holds": "the configuration of a configuration repository: targets.json, versions.json, needs.json, iac/ and workloads/ (blueprint-shared.infra-layout.ops-dirs); and ops/<OpsName>/, a unit that provides an interface that changes with the environment (the address of each environment) to the units that use it"
|
|
13899
14480
|
},
|
|
13900
14481
|
{
|
|
13901
14482
|
"path": "facts/",
|
|
@@ -13946,7 +14527,7 @@
|
|
|
13946
14527
|
}
|
|
13947
14528
|
},
|
|
13948
14529
|
{
|
|
13949
|
-
"since": "0.
|
|
14530
|
+
"since": "0.8.0",
|
|
13950
14531
|
"content": {
|
|
13951
14532
|
"value": {
|
|
13952
14533
|
"keep": "A repository keeps only the directories it uses.",
|
|
@@ -13981,12 +14562,16 @@
|
|
|
13981
14562
|
},
|
|
13982
14563
|
{
|
|
13983
14564
|
"path": "docs/",
|
|
13984
|
-
"holds": "the clarify docs package"
|
|
14565
|
+
"holds": "the clarify docs package of the repository, <RepoName>-docs"
|
|
13985
14566
|
},
|
|
13986
14567
|
{
|
|
13987
14568
|
"path": "templates/",
|
|
13988
14569
|
"holds": "the template package published on its own and shared by several products, with its own package.json; the repository that owns the templates keeps them here"
|
|
13989
14570
|
},
|
|
14571
|
+
{
|
|
14572
|
+
"path": "demos/",
|
|
14573
|
+
"holds": "only in the repository that holds the templates (blueprint-shared.templates.org-role): the files of its duty of showing the templates, one sub-directory per demonstration repository, and the packages of that duty, <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). The names _facts and _docs are those packages and no demonstration repository"
|
|
14574
|
+
},
|
|
13990
14575
|
{
|
|
13991
14576
|
"path": "releases/",
|
|
13992
14577
|
"holds": "Release Plans, only in the repository that holds the product version"
|
|
@@ -14061,12 +14646,16 @@
|
|
|
14061
14646
|
},
|
|
14062
14647
|
{
|
|
14063
14648
|
"path": "docs/",
|
|
14064
|
-
"holds": "the clarify docs package"
|
|
14649
|
+
"holds": "the clarify docs package of the repository, <RepoName>-docs"
|
|
14065
14650
|
},
|
|
14066
14651
|
{
|
|
14067
14652
|
"path": "templates/",
|
|
14068
14653
|
"holds": "the template package published on its own and shared by several products, with its own package.json; the repository that owns the templates keeps them here"
|
|
14069
14654
|
},
|
|
14655
|
+
{
|
|
14656
|
+
"path": "demos/",
|
|
14657
|
+
"holds": "only in the repository that holds the templates (blueprint-shared.templates.org-role): the files of its duty of showing the templates, one sub-directory per demonstration repository, and the packages of that duty, <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages). The names _facts and _docs are those packages and no demonstration repository"
|
|
14658
|
+
},
|
|
14070
14659
|
{
|
|
14071
14660
|
"path": "releases/",
|
|
14072
14661
|
"holds": "Release Plans, only in the repository that holds the product version"
|
|
@@ -15355,7 +15944,7 @@
|
|
|
15355
15944
|
"secrets"
|
|
15356
15945
|
],
|
|
15357
15946
|
"title": "身分與權限規則",
|
|
15358
|
-
"description": "預設拒絕。取用端角色唯讀,名稱 `<倉庫>`,環境看角色建在哪個環境的實例,所以名稱不帶環境,能讀的路徑由模板產生。GitHub 登入綁 claim 不綁 `sub`,每個 JWT 角色設 `bound_audiences`。audit 裝置至少兩個,不保留 root token,CI 的 token 只活 10
|
|
15947
|
+
"description": "預設拒絕。取用端角色唯讀,名稱 `<倉庫>`,環境看角色建在哪個環境的實例,所以名稱不帶環境,能讀的路徑由模板產生。GitHub 登入綁 claim 不綁 `sub`,每個 JWT 角色設 `bound_audiences`。audit 裝置至少兩個,不保留 root token,CI 的 token 只活 10 分鐘。加密匯出用的角色是唯一例外。政策用倉庫的 `owner/name` 組路徑時要設 `allow_slashes_in_identity_templates`,這會放寬路徑穿越防護。路徑段的規則排除了點和斜線,但只管寫下來的路徑,不管代入政策的 claim 值,那一段靠角色綁定倉庫的確切值。`vault_policy` 不支援這個屬性,要改用 `vault_generic_endpoint`。",
|
|
15359
15948
|
"variants": [
|
|
15360
15949
|
{
|
|
15361
15950
|
"since": "0.6.0",
|
|
@@ -15377,6 +15966,33 @@
|
|
|
15377
15966
|
"exception": "The role for the encrypted export reads every secret. It is the only exception to \"a consumer reads only the paths its template lists\". It is bound to the service account of the VM, its token lives a few minutes, and each run leaves an audit record."
|
|
15378
15967
|
}
|
|
15379
15968
|
}
|
|
15969
|
+
},
|
|
15970
|
+
{
|
|
15971
|
+
"since": "0.7.1",
|
|
15972
|
+
"content": {
|
|
15973
|
+
"value": {
|
|
15974
|
+
"default": "Deny. A path no policy allows cannot be read.",
|
|
15975
|
+
"roles": [
|
|
15976
|
+
"A consumer role is read-only. A repository has at most one role in the instance of each environment, named <repository>. The environment of the role is the instance it is created in, so the name carries no environment, the same way a KV path carries none.",
|
|
15977
|
+
"The paths a role may read come from the paths its template lists, never by hand. The sources of the template and of the policy are both the configuration repository."
|
|
15978
|
+
],
|
|
15979
|
+
"values": "The value of a secret is written by a person only. IaC and CI manage namespaces, mounts, roles, policies and templates, cannot read a value, and no value enters the state.",
|
|
15980
|
+
"github": [
|
|
15981
|
+
"The login for GitHub binds claims (the owner, the repository, and for prod the branch or tag), never sub, because the format of sub differs between repositories created or renamed after a date in 2026-07 and older ones.",
|
|
15982
|
+
"Every JWT role sets bound_audiences, because the secret service refuses a login whose token has an aud when the role sets none."
|
|
15983
|
+
],
|
|
15984
|
+
"token": "The token that CI gets lives 10 minutes, is not renewed, and is revoked by the middleware after use.",
|
|
15985
|
+
"audit": "At least two audit devices, because the secret service stops answering when all of them fail.",
|
|
15986
|
+
"root": "No root token is kept.",
|
|
15987
|
+
"exception": "The role for the encrypted export reads every secret. It is the only exception to \"a consumer reads only the paths its template lists\". It is bound to the service account of the VM, its token lives a few minutes, and each run leaves an audit record.",
|
|
15988
|
+
"identityTemplate": {
|
|
15989
|
+
"rule": "A policy that builds a path from the owner/name of the repository (the repository claim of the GitHub token, which holds a slash) must set allow_slashes_in_identity_templates, because the secret service refuses by default a substituted value that holds a slash. The setting loosens the guard against path traversal for that policy: a substituted value with a slash or a .. is no longer refused by the service.",
|
|
15990
|
+
"segmentRules": "The segment rules of this unit exclude the dot and the slash. NAME is [a-z0-9][a-z0-9-]* and SCOPE_NAME is NAME that is not shared, so a product, unit or name segment can neither be .. nor hold a slash. Where the pattern is anchored (extends and secret in the template file, TEMPLATE_PATH, filePattern) the whole path is held to this form. The patterns of the segments field are not anchored, so a consumer must match a whole segment.",
|
|
15991
|
+
"limit": "Those rules check the paths that are written (KV paths and template paths). They do not check the value substituted into a policy, which comes from the repository claim of the token. What guards that value is the role binding repository to its exact value through bound_claims (blueprint-shared.secrets.login-methods), and whatever GitHub allows in a repository name. Neither the naming rules of GitHub nor whether the secret service refuses a .. in a substituted value was checked.",
|
|
15992
|
+
"provider": "vault_policy of the hashicorp/vault provider (5.13.0) has no allow_slashes_in_identity_templates, so such a policy is written with vault_generic_endpoint on sys/policies/acl/ (blueprint-shared.secrets.access-scenarios)."
|
|
15993
|
+
}
|
|
15994
|
+
}
|
|
15995
|
+
}
|
|
15380
15996
|
}
|
|
15381
15997
|
],
|
|
15382
15998
|
"source": {
|
|
@@ -15397,7 +16013,13 @@
|
|
|
15397
16013
|
"token": "The token that CI gets lives 10 minutes, is not renewed, and is revoked by the middleware after use.",
|
|
15398
16014
|
"audit": "At least two audit devices, because the secret service stops answering when all of them fail.",
|
|
15399
16015
|
"root": "No root token is kept.",
|
|
15400
|
-
"exception": "The role for the encrypted export reads every secret. It is the only exception to \"a consumer reads only the paths its template lists\". It is bound to the service account of the VM, its token lives a few minutes, and each run leaves an audit record."
|
|
16016
|
+
"exception": "The role for the encrypted export reads every secret. It is the only exception to \"a consumer reads only the paths its template lists\". It is bound to the service account of the VM, its token lives a few minutes, and each run leaves an audit record.",
|
|
16017
|
+
"identityTemplate": {
|
|
16018
|
+
"rule": "A policy that builds a path from the owner/name of the repository (the repository claim of the GitHub token, which holds a slash) must set allow_slashes_in_identity_templates, because the secret service refuses by default a substituted value that holds a slash. The setting loosens the guard against path traversal for that policy: a substituted value with a slash or a .. is no longer refused by the service.",
|
|
16019
|
+
"segmentRules": "The segment rules of this unit exclude the dot and the slash. NAME is [a-z0-9][a-z0-9-]* and SCOPE_NAME is NAME that is not shared, so a product, unit or name segment can neither be .. nor hold a slash. Where the pattern is anchored (extends and secret in the template file, TEMPLATE_PATH, filePattern) the whole path is held to this form. The patterns of the segments field are not anchored, so a consumer must match a whole segment.",
|
|
16020
|
+
"limit": "Those rules check the paths that are written (KV paths and template paths). They do not check the value substituted into a policy, which comes from the repository claim of the token. What guards that value is the role binding repository to its exact value through bound_claims (blueprint-shared.secrets.login-methods), and whatever GitHub allows in a repository name. Neither the naming rules of GitHub nor whether the secret service refuses a .. in a substituted value was checked.",
|
|
16021
|
+
"provider": "vault_policy of the hashicorp/vault provider (5.13.0) has no allow_slashes_in_identity_templates, so such a policy is written with vault_generic_endpoint on sys/policies/acl/ (blueprint-shared.secrets.access-scenarios)."
|
|
16022
|
+
}
|
|
15401
16023
|
}
|
|
15402
16024
|
}
|
|
15403
16025
|
},
|
|
@@ -15408,7 +16030,7 @@
|
|
|
15408
16030
|
"secrets"
|
|
15409
16031
|
],
|
|
15410
16032
|
"title": "五種登入方式",
|
|
15411
|
-
"description": "五種登入方式分別給 GitHub Actions(JWT)、人(OIDC,身分來源是組織自己帳號的存取服務)、VM 的備份排程(JWT,接 instance identity token)、Mac 常駐程式(AppRole
|
|
16033
|
+
"description": "五種登入方式分別給 GitHub Actions(JWT)、人(OIDC,身分來源是組織自己帳號的存取服務)、VM 的備份排程(JWT,接 instance identity token)、Mac 常駐程式(AppRole)、緊急管理(初始化時宣告的登入)。人用 OIDC 與備份排程的登入都已實跑,限度寫在各項裡:人用登入只在一個組織的帳號跑過 `bao login`,且只用電子郵件分權限,身分來源給群組時才能分群組,這條沒驗。",
|
|
15412
16034
|
"variants": [
|
|
15413
16035
|
{
|
|
15414
16036
|
"since": "0.6.0",
|
|
@@ -15451,6 +16073,49 @@
|
|
|
15451
16073
|
"issuer": "Each organization uses the issuer of its own access-service account. The auth/oidc/ of each namespace is filled with its own issuer and client."
|
|
15452
16074
|
}
|
|
15453
16075
|
}
|
|
16076
|
+
},
|
|
16077
|
+
{
|
|
16078
|
+
"since": "0.7.1",
|
|
16079
|
+
"content": {
|
|
16080
|
+
"value": {
|
|
16081
|
+
"methods": [
|
|
16082
|
+
{
|
|
16083
|
+
"consumer": "GitHub Actions",
|
|
16084
|
+
"method": "JWT, from the OIDC of GitHub",
|
|
16085
|
+
"mount": "auth/github/",
|
|
16086
|
+
"binds": "organization, repository, and for prod the branch or tag, through bound_claims on repository_owner, repository and ref"
|
|
16087
|
+
},
|
|
16088
|
+
{
|
|
16089
|
+
"consumer": "a person",
|
|
16090
|
+
"method": "OIDC, with the access service in front of the organization as the identity source",
|
|
16091
|
+
"mount": "auth/oidc/",
|
|
16092
|
+
"binds": "the e-mail of the person only (user_claim is email, and the name of the entity alias is the e-mail). Permissions are not split by group",
|
|
16093
|
+
"verified": "Run on OpenBao 2.7.2. The OIDC auth of the secret service connected to an OIDC application of the access service, a browser login returned a token, and the application could be created by API (POST accounts/<id>/access/apps with type saas and saas_app.auth_type oidc) on the free plan of the access service (the plan was confirmed in the dashboard by the user, since a token cannot read it), also for an account that has no domain of its own. A new application answers 404 on its discovery, JWKS and authorization endpoints for about 60 to 120 seconds, so set up the secret service only after discovery answers 200",
|
|
16094
|
+
"unverified": "bao login was run with the account of one organization only. Splitting by group is not run: it needs an identity source that gives a groups claim, or a custom claim added on the application, and neither was tried. With an identity source that gives no groups claim, setting groups_claim makes the login fail with: failed to fetch groups: \"groups\" claim not found in token"
|
|
16095
|
+
},
|
|
16096
|
+
{
|
|
16097
|
+
"consumer": "the backup schedule of a VM",
|
|
16098
|
+
"method": "JWT, from the instance identity token of the VM",
|
|
16099
|
+
"mount": "auth/gce/ in the root namespace only",
|
|
16100
|
+
"binds": "the cloud project and the service account, through bound_claims on /google/compute_engine/project_id and email",
|
|
16101
|
+
"verified": "Run on OpenBao 2.7.2. The VM asks its metadata server for the identity token (format full, with an audience of its own) and logs in to the role with it. The mount sets only jwks_url (the public keys of Google) and bound_issuer, so the secret service checks the signature and the claims and calls no cloud API, and the service account needs no extra permission for it. The nested claim is written /google/compute_engine/project_id, and the leading slash cannot be left out. The token lives 300 seconds (token_ttl 5m, token_max_ttl 10m), carries only the default policy and the policy of the snapshot, and the script revokes it after use. The same token logging in to a role bound to another project ID is refused with 400 (claim does not match any associated bound claim values)"
|
|
16102
|
+
},
|
|
16103
|
+
{
|
|
16104
|
+
"consumer": "a resident program on a Mac",
|
|
16105
|
+
"method": "AppRole, one for each machine, with the credential in the Keychain",
|
|
16106
|
+
"mount": "auth/approle/",
|
|
16107
|
+
"binds": "the role"
|
|
16108
|
+
},
|
|
16109
|
+
{
|
|
16110
|
+
"consumer": "emergency administration",
|
|
16111
|
+
"method": "the login declared at the first start, with its credential in a password manager",
|
|
16112
|
+
"mount": "the root namespace",
|
|
16113
|
+
"binds": "administrators only. Each use leaves an audit record"
|
|
16114
|
+
}
|
|
16115
|
+
],
|
|
16116
|
+
"issuer": "Each organization uses the issuer of its own access-service account. The auth/oidc/ of each namespace is filled with its own issuer and client."
|
|
16117
|
+
}
|
|
16118
|
+
}
|
|
15454
16119
|
}
|
|
15455
16120
|
],
|
|
15456
16121
|
"source": {
|
|
@@ -15469,15 +16134,16 @@
|
|
|
15469
16134
|
"consumer": "a person",
|
|
15470
16135
|
"method": "OIDC, with the access service in front of the organization as the identity source",
|
|
15471
16136
|
"mount": "auth/oidc/",
|
|
15472
|
-
"binds": "e-mail
|
|
15473
|
-
"
|
|
16137
|
+
"binds": "the e-mail of the person only (user_claim is email, and the name of the entity alias is the e-mail). Permissions are not split by group",
|
|
16138
|
+
"verified": "Run on OpenBao 2.7.2. The OIDC auth of the secret service connected to an OIDC application of the access service, a browser login returned a token, and the application could be created by API (POST accounts/<id>/access/apps with type saas and saas_app.auth_type oidc) on the free plan of the access service (the plan was confirmed in the dashboard by the user, since a token cannot read it), also for an account that has no domain of its own. A new application answers 404 on its discovery, JWKS and authorization endpoints for about 60 to 120 seconds, so set up the secret service only after discovery answers 200",
|
|
16139
|
+
"unverified": "bao login was run with the account of one organization only. Splitting by group is not run: it needs an identity source that gives a groups claim, or a custom claim added on the application, and neither was tried. With an identity source that gives no groups claim, setting groups_claim makes the login fail with: failed to fetch groups: \"groups\" claim not found in token"
|
|
15474
16140
|
},
|
|
15475
16141
|
{
|
|
15476
16142
|
"consumer": "the backup schedule of a VM",
|
|
15477
16143
|
"method": "JWT, from the instance identity token of the VM",
|
|
15478
16144
|
"mount": "auth/gce/ in the root namespace only",
|
|
15479
|
-
"binds": "the cloud project and the service account",
|
|
15480
|
-
"
|
|
16145
|
+
"binds": "the cloud project and the service account, through bound_claims on /google/compute_engine/project_id and email",
|
|
16146
|
+
"verified": "Run on OpenBao 2.7.2. The VM asks its metadata server for the identity token (format full, with an audience of its own) and logs in to the role with it. The mount sets only jwks_url (the public keys of Google) and bound_issuer, so the secret service checks the signature and the claims and calls no cloud API, and the service account needs no extra permission for it. The nested claim is written /google/compute_engine/project_id, and the leading slash cannot be left out. The token lives 300 seconds (token_ttl 5m, token_max_ttl 10m), carries only the default policy and the policy of the snapshot, and the script revokes it after use. The same token logging in to a role bound to another project ID is refused with 400 (claim does not match any associated bound claim values)"
|
|
15481
16147
|
},
|
|
15482
16148
|
{
|
|
15483
16149
|
"consumer": "a resident program on a Mac",
|
|
@@ -15503,7 +16169,7 @@
|
|
|
15503
16169
|
"secrets"
|
|
15504
16170
|
],
|
|
15505
16171
|
"title": "各取用情境怎麼取值",
|
|
15506
|
-
"description": "每個取用情境預設由取用端拉取,不由密鑰服務推送。含 GitHub Actions、本機、Mac 常駐程式、無自己身分的環境、IaC、建置時與執行時、雲端會話、Serverless、Kubernetes 與 Cloud Run。Kubernetes 用 JWT 登入而不用 Kubernetes auth,ESO 只用 `kubernetesServiceAccountToken` 申請短效 token。IaC
|
|
16172
|
+
"description": "每個取用情境預設由取用端拉取,不由密鑰服務推送。含 GitHub Actions、本機、Mac 常駐程式、無自己身分的環境、IaC、建置時與執行時、雲端會話、Serverless、Kubernetes 與 Cloud Run。Kubernetes 用 JWT 登入而不用 Kubernetes auth,ESO 只用 `kubernetesServiceAccountToken` 申請短效 token。IaC 設定密鑰服務已實跑,限度是泛用的 `vault_auth_backend` 沒驗。雲端會話決定不實跑、做法未定。Kubernetes 與 Cloud Run 延後,有取用者時再實跑。",
|
|
15507
16173
|
"variants": [
|
|
15508
16174
|
{
|
|
15509
16175
|
"since": "0.6.0",
|
|
@@ -15580,6 +16246,83 @@
|
|
|
15580
16246
|
"sameKind": "The logins of GitHub Actions, of a VM and of Cloud Run check a token that the platform signed, and the secret service needs no connection back to the platform."
|
|
15581
16247
|
}
|
|
15582
16248
|
}
|
|
16249
|
+
},
|
|
16250
|
+
{
|
|
16251
|
+
"since": "0.7.1",
|
|
16252
|
+
"content": {
|
|
16253
|
+
"value": {
|
|
16254
|
+
"default": "Every scenario fetches from the consumer. The secret service never pushes a value to a consumer.",
|
|
16255
|
+
"scenarios": [
|
|
16256
|
+
{
|
|
16257
|
+
"scenario": "GitHub Actions",
|
|
16258
|
+
"identity": "the JWT of GitHub OIDC",
|
|
16259
|
+
"how": "a shared step asks the middleware for the values and writes them, masked, into the environment of the job"
|
|
16260
|
+
},
|
|
16261
|
+
{
|
|
16262
|
+
"scenario": "a local machine",
|
|
16263
|
+
"identity": "OIDC login",
|
|
16264
|
+
"how": "the CLI runs the command with the values in the environment of the child process, and writes no file"
|
|
16265
|
+
},
|
|
16266
|
+
{
|
|
16267
|
+
"scenario": "a resident program on a Mac",
|
|
16268
|
+
"identity": "AppRole",
|
|
16269
|
+
"how": "before it starts, it asks the middleware for the values, or an agent of the secret service does"
|
|
16270
|
+
},
|
|
16271
|
+
{
|
|
16272
|
+
"scenario": "an isolated environment or VM with no identity of its own",
|
|
16273
|
+
"identity": "none",
|
|
16274
|
+
"how": "the host fetches the values and passes them in"
|
|
16275
|
+
},
|
|
16276
|
+
{
|
|
16277
|
+
"scenario": "IaC reading a cloud credential",
|
|
16278
|
+
"identity": "the same as CI",
|
|
16279
|
+
"how": "a step fetches the values first and puts them in the environment"
|
|
16280
|
+
},
|
|
16281
|
+
{
|
|
16282
|
+
"scenario": "IaC configuring the secret service",
|
|
16283
|
+
"identity": "the management role of the configuration repository",
|
|
16284
|
+
"how": "the native API directly",
|
|
16285
|
+
"verified": "Run with OpenTofu 1.13.9, the hashicorp/vault provider 5.13.0 and OpenBao 2.7.2. The IaC role, logged in through a GitHub login at the root level, created three namespaces, each with kv/, templates/, auth/github/, three roles and their policies (24 resources), and a second plan showed no change. vault_namespace, vault_mount, vault_jwt_auth_backend and vault_jwt_auth_backend_role are compatible. vault_policy has no allow_slashes_in_identity_templates, so a policy that needs it is written with vault_generic_endpoint on sys/policies/acl/ (blueprint-shared.secrets.access-rules)",
|
|
16286
|
+
"unverified": "The generic vault_auth_backend was not used in the run and is not checked"
|
|
16287
|
+
},
|
|
16288
|
+
{
|
|
16289
|
+
"scenario": "build time",
|
|
16290
|
+
"identity": "the same as CI",
|
|
16291
|
+
"how": "a build secret mount, so the value stays out of the image layers"
|
|
16292
|
+
},
|
|
16293
|
+
{
|
|
16294
|
+
"scenario": "run time",
|
|
16295
|
+
"identity": "the identity of the platform it runs on",
|
|
16296
|
+
"how": "the program fetches at start"
|
|
16297
|
+
},
|
|
16298
|
+
{
|
|
16299
|
+
"scenario": "a cloud coding session",
|
|
16300
|
+
"identity": "a read-only identity limited to the paths for development",
|
|
16301
|
+
"how": "to be decided. A value fetched by the setup script is kept in the snapshot of the environment, which the platform reuses for days, so the setup script does not fetch",
|
|
16302
|
+
"unverified": "Not run, because it was decided not to run it, and the way of fetching is not decided. What is written here comes from reading the documents of the platform, so it is no result. Not checked: whether a request with only the token header can fetch, whether a header added by the agent after the request leaves the session reaches the secret service unchanged, how a token is renewed after its TTL, whether a value shows in the transcript, and whether the file system of a second session keeps a value fetched by the first"
|
|
16303
|
+
},
|
|
16304
|
+
{
|
|
16305
|
+
"scenario": "serverless on a platform with no machine identity",
|
|
16306
|
+
"identity": "none",
|
|
16307
|
+
"how": "at deploy time CI fetches the values and writes them as secrets of the platform"
|
|
16308
|
+
},
|
|
16309
|
+
{
|
|
16310
|
+
"scenario": "Kubernetes",
|
|
16311
|
+
"identity": "the JWT of a service account",
|
|
16312
|
+
"how": "External Secrets Operator asks for a short token with kubernetesServiceAccountToken on each fetch and does not read a token from a Secret. Its resources are synced into the cluster by ArgoCD (blueprint-shared.infra-layout)",
|
|
16313
|
+
"login": "JWT login, not Kubernetes auth. Kubernetes auth needs the secret service to call the TokenReview API of the cluster, so the VM has to reach the API server, and it needs a reviewer token stored or system:auth-delegator on every client. JWT login checks the signature with the public key of the cluster, written into the configuration, so no connection to the cluster is needed. The cost is that a token cannot be revoked before it expires, so only short tokens are used.",
|
|
16314
|
+
"unverified": "Deferred: it is run when a consumer exists, and no consumer exists now. The login of External Secrets Operator by JWT, and the sync of its resources by ArgoCD, are not checked. By its documents only, the vault provider of External Secrets Operator supports JWT login and a namespace field, while the JWT support of its separate openbao provider is not merged yet"
|
|
16315
|
+
},
|
|
16316
|
+
{
|
|
16317
|
+
"scenario": "Cloud Run",
|
|
16318
|
+
"identity": "an ID token signed by Google",
|
|
16319
|
+
"how": "the program fetches at start",
|
|
16320
|
+
"unverified": "Deferred: it is run when a consumer exists, and no consumer exists now. The JWT login with a Google ID token is not checked. The platform documents the token (about one hour, with an email claim) but no example with the secret service was found. The login of a VM by its instance identity token was run and can serve as a reference (blueprint-shared.secrets.login-methods)"
|
|
16321
|
+
}
|
|
16322
|
+
],
|
|
16323
|
+
"sameKind": "The logins of GitHub Actions, of a VM and of Cloud Run check a token that the platform signed, and the secret service needs no connection back to the platform."
|
|
16324
|
+
}
|
|
16325
|
+
}
|
|
15583
16326
|
}
|
|
15584
16327
|
],
|
|
15585
16328
|
"source": {
|
|
@@ -15618,7 +16361,8 @@
|
|
|
15618
16361
|
"scenario": "IaC configuring the secret service",
|
|
15619
16362
|
"identity": "the management role of the configuration repository",
|
|
15620
16363
|
"how": "the native API directly",
|
|
15621
|
-
"
|
|
16364
|
+
"verified": "Run with OpenTofu 1.13.9, the hashicorp/vault provider 5.13.0 and OpenBao 2.7.2. The IaC role, logged in through a GitHub login at the root level, created three namespaces, each with kv/, templates/, auth/github/, three roles and their policies (24 resources), and a second plan showed no change. vault_namespace, vault_mount, vault_jwt_auth_backend and vault_jwt_auth_backend_role are compatible. vault_policy has no allow_slashes_in_identity_templates, so a policy that needs it is written with vault_generic_endpoint on sys/policies/acl/ (blueprint-shared.secrets.access-rules)",
|
|
16365
|
+
"unverified": "The generic vault_auth_backend was not used in the run and is not checked"
|
|
15622
16366
|
},
|
|
15623
16367
|
{
|
|
15624
16368
|
"scenario": "build time",
|
|
@@ -15634,7 +16378,7 @@
|
|
|
15634
16378
|
"scenario": "a cloud coding session",
|
|
15635
16379
|
"identity": "a read-only identity limited to the paths for development",
|
|
15636
16380
|
"how": "to be decided. A value fetched by the setup script is kept in the snapshot of the environment, which the platform reuses for days, so the setup script does not fetch",
|
|
15637
|
-
"unverified": "Not decided
|
|
16381
|
+
"unverified": "Not run, because it was decided not to run it, and the way of fetching is not decided. What is written here comes from reading the documents of the platform, so it is no result. Not checked: whether a request with only the token header can fetch, whether a header added by the agent after the request leaves the session reaches the secret service unchanged, how a token is renewed after its TTL, whether a value shows in the transcript, and whether the file system of a second session keeps a value fetched by the first"
|
|
15638
16382
|
},
|
|
15639
16383
|
{
|
|
15640
16384
|
"scenario": "serverless on a platform with no machine identity",
|
|
@@ -15646,13 +16390,13 @@
|
|
|
15646
16390
|
"identity": "the JWT of a service account",
|
|
15647
16391
|
"how": "External Secrets Operator asks for a short token with kubernetesServiceAccountToken on each fetch and does not read a token from a Secret. Its resources are synced into the cluster by ArgoCD (blueprint-shared.infra-layout)",
|
|
15648
16392
|
"login": "JWT login, not Kubernetes auth. Kubernetes auth needs the secret service to call the TokenReview API of the cluster, so the VM has to reach the API server, and it needs a reviewer token stored or system:auth-delegator on every client. JWT login checks the signature with the public key of the cluster, written into the configuration, so no connection to the cluster is needed. The cost is that a token cannot be revoked before it expires, so only short tokens are used.",
|
|
15649
|
-
"unverified": "
|
|
16393
|
+
"unverified": "Deferred: it is run when a consumer exists, and no consumer exists now. The login of External Secrets Operator by JWT, and the sync of its resources by ArgoCD, are not checked. By its documents only, the vault provider of External Secrets Operator supports JWT login and a namespace field, while the JWT support of its separate openbao provider is not merged yet"
|
|
15650
16394
|
},
|
|
15651
16395
|
{
|
|
15652
16396
|
"scenario": "Cloud Run",
|
|
15653
16397
|
"identity": "an ID token signed by Google",
|
|
15654
16398
|
"how": "the program fetches at start",
|
|
15655
|
-
"unverified": "
|
|
16399
|
+
"unverified": "Deferred: it is run when a consumer exists, and no consumer exists now. The JWT login with a Google ID token is not checked. The platform documents the token (about one hour, with an email claim) but no example with the secret service was found. The login of a VM by its instance identity token was run and can serve as a reference (blueprint-shared.secrets.login-methods)"
|
|
15656
16400
|
}
|
|
15657
16401
|
],
|
|
15658
16402
|
"sameKind": "The logins of GitHub Actions, of a VM and of Cloud Run check a token that the platform signed, and the secret service needs no connection back to the platform."
|
|
@@ -15972,7 +16716,7 @@
|
|
|
15972
16716
|
"token": "The checkout of the release branch and the script run with the token of the GitHub App (blueprint-shared.templates.github-app), because a push or a merge made with GITHUB_TOKEN starts no later workflow.",
|
|
15973
16717
|
"needsApp": "A manual workflow needs the GitHub App. Its first step is actions/create-github-app-token, so a repository without the App (the variable named by @@clientIdVariable@@ not set) fails the run there, before anything is written. The steps that events start skip instead of failing when the repository has no App (blueprint-shared.templates.release-event-steps, blueprint-shared.templates.release-tool-sync-and-close); a repository without the App runs the scripts on a machine.",
|
|
15974
16718
|
"concurrency": "One group per release line, release-line-<line>, shared by the three workflows (advance-release, merge-release-pr, merge-back), with cancel-in-progress false: two writers never work on one line at once, and a running one is not cancelled.",
|
|
15975
|
-
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
|
|
16719
|
+
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
|
|
15976
16720
|
"triggerCheck": {
|
|
15977
16721
|
"script": "scripts/release/check-trigger-actor.sh",
|
|
15978
16722
|
"list": "the repository variable RELEASE_TRIGGER_ACTORS: accounts separated by commas, spaces or new lines. A GitHub App appears as <slug>[bot]. When the variable is not set nobody is excluded.",
|
|
@@ -16024,7 +16768,7 @@
|
|
|
16024
16768
|
"token": "The checkout of the release branch and the script run with the token of the GitHub App (blueprint-shared.templates.github-app), because a push or a merge made with GITHUB_TOKEN starts no later workflow.",
|
|
16025
16769
|
"needsApp": "A manual workflow needs the GitHub App. Its first step is actions/create-github-app-token, so a repository without the App (the variable named by @@clientIdVariable@@ not set) fails the run there, before anything is written. The steps that events start skip instead of failing when the repository has no App (blueprint-shared.templates.release-event-steps, blueprint-shared.templates.release-tool-sync-and-close); a repository without the App runs the scripts on a machine.",
|
|
16026
16770
|
"concurrency": "One group per release line, release-line-<line>, shared by the three workflows (advance-release, merge-release-pr, merge-back), with cancel-in-progress false: two writers never work on one line at once, and a running one is not cancelled.",
|
|
16027
|
-
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
|
|
16771
|
+
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). A condition that does not hold yet (the CI gate, release-please not done) fails the run and prints what to wait for. The person starts the workflow again later.",
|
|
16028
16772
|
"triggerCheck": {
|
|
16029
16773
|
"script": "scripts/release/check-trigger-actor.sh",
|
|
16030
16774
|
"list": "the repository variable RELEASE_TRIGGER_ACTORS: accounts separated by commas, spaces or new lines. A GitHub App appears as <slug>[bot]. When the variable is not set nobody is excluded.",
|
|
@@ -16081,6 +16825,44 @@
|
|
|
16081
16825
|
"decision": "release-pin-and-merge-back-by-events"
|
|
16082
16826
|
}
|
|
16083
16827
|
}
|
|
16828
|
+
},
|
|
16829
|
+
{
|
|
16830
|
+
"since": "0.7.1",
|
|
16831
|
+
"content": {
|
|
16832
|
+
"value": {
|
|
16833
|
+
"file": "release/.github/workflows/release-please.yml",
|
|
16834
|
+
"appOnly": "Both steps run only when the repository has the GitHub App (the variable named by @@clientIdVariable@@ is set). Without it release-please itself runs as before, the pin is done by merge-release-pr (workflow or machine), and the merge-back by the manual workflow merge-back.yml or on a machine. The file has no manual trigger: run by hand on main it would open a version PR against main.",
|
|
16835
|
+
"token": "The App token is made before the checkout, and the checkout keeps it, so the push of the pin step is the App's. A push with GITHUB_TOKEN starts no later workflow: release-please would not run on the pin commit, and the checks of the merge-back PR would not run.",
|
|
16836
|
+
"pin": {
|
|
16837
|
+
"steps": [
|
|
16838
|
+
"pin-conditions",
|
|
16839
|
+
"setup-workspace",
|
|
16840
|
+
"scripts/release/pin-release-pr.sh --line <line> --yes"
|
|
16841
|
+
],
|
|
16842
|
+
"condition": "The repository has the App, the branch is still on origin, this run created no tag (releases_created is not true), and the run wrote the Release PR (prs_created is true: release-please-action gives true when it creates the PR and when it only updates it, false when nothing changed) or it is a re-run of the job (github.run_attempt above 1: after a pin that failed half way release-please finds nothing to update and prs_created is false).",
|
|
16843
|
+
"install": "setup-workspace (Node, pnpm install) runs only when the condition holds, so an ordinary run installs nothing.",
|
|
16844
|
+
"function": "release_pin_open_pr (scripts/lib/release-pr.sh), the same function merge-release-pr.sh calls.",
|
|
16845
|
+
"order": [
|
|
16846
|
+
"an open Release PR of the branch; none: nothing is done and the run succeeds",
|
|
16847
|
+
"the local branch is not behind origin",
|
|
16848
|
+
"no commit that release-please processes lies between the base of the Release PR (the parent of its head, which is the branch tip of the run that wrote it) and the tip of origin/<branch>: a commit of a releasable type (feat, fix, perf, deps, revert or a breaking change, the rule of unit_changed in release-stages.sh) that touches a unit path of the config, or a change of release-please-config.json or .release-please-manifest.json. Otherwise the branch moved after that run and the run for the newer commit will write the PR again, so nothing is pinned and the run succeeds. A commit release-please ignores, such as the chore(facts) pin commit of an earlier round, does not count: it never makes release-please rewrite the PR, so the base would never move forward",
|
|
16849
|
+
"one round of the version check of the units the PR releases (the rules of merge-release-pr-checks-versions); a mismatch pins nothing and the run succeeds",
|
|
16850
|
+
"fact-kit pin and clarify-kit pin, committed as chore(facts) and chore(docs), and a push when the branch is ahead of origin"
|
|
16851
|
+
],
|
|
16852
|
+
"afterPush": "The push starts release-please again, which writes the PR on the new tip. The second run finds nothing to change, so it pins nothing and pushes nothing.",
|
|
16853
|
+
"refusedPush": "pin-release-pr.sh drops its own pin commits, brings the branch to origin and runs the whole check and pin once more. A commit that is not a pin commit is never dropped. A second refusal fails the run."
|
|
16854
|
+
},
|
|
16855
|
+
"mergeBack": {
|
|
16856
|
+
"output": "merge_back_ready of the release-please job, from scripts/release/merge-back-ready.sh: true when all three hold: the stage of the line is ga; the line has no open Release PR (train_merge_back_ready asks gh pr list itself and reads its exit code, so a failed query is not ready and is never read as no PR); and the manifest differs from origin/main for at least one unit, every such unit being on a stable version with its final tag <component>/v<version>. The decision uses what release-please has already produced, not a recount of its commits, because a commit message override in the body of a pull request (BEGIN_COMMIT_OVERRIDE) is invisible to git log --grep. train_merge_back_ready and train_final_tags_missing (scripts/lib/release-stages.sh) decide, and finalize-release.sh --phase merge-back stops on the same tag check and on the open Release PR.",
|
|
16857
|
+
"job": "merge-back runs when that output is true and the repository has the App; otherwise the job does not start and takes no runner. It checks out the release branch with the App token and runs scripts/release/finalize-release.sh --line <line> --phase merge-back --yes.",
|
|
16858
|
+
"repeat": "Any later run of release-please at ga with every tag there asks again and starts the job again; the phase can be run again (it recreates the merge-back branch and finds the PR that is open).",
|
|
16859
|
+
"noEvent": "A line with no unit bumped in the manifest is not ready on the event path (a line just opened has the same empty difference), so no merge-back PR is opened by the event: dispatch merge-back.yml by hand. The manual phase finishes with no unit bumped. After ga a second Release PR on the same line, opened for later commits, holds the merge-back back until it is merged."
|
|
16860
|
+
},
|
|
16861
|
+
"decision": "release-pin-and-merge-back-by-events",
|
|
16862
|
+
"readyToken": "The ready step has GH_TOKEN set to the App token (steps.app-token.outputs.token), because it asks gh for the open Release PR and the token the checkout leaves behind is for git only.",
|
|
16863
|
+
"pushPaths": "on.push.paths of release-please.yml also lists scripts/**: the ready output is computed by the scripts of the branch, and the sync commit of sync-release-tools.yml touches scripts/ and .github/ only, so without it no run would compute the output again after a script fix reaches the branch. A commit that touches only .github/ still starts no run. The path form stays dir/** (a test reads it)."
|
|
16864
|
+
}
|
|
16865
|
+
}
|
|
16084
16866
|
}
|
|
16085
16867
|
],
|
|
16086
16868
|
"source": {
|
|
@@ -16111,12 +16893,14 @@
|
|
|
16111
16893
|
"refusedPush": "pin-release-pr.sh drops its own pin commits, brings the branch to origin and runs the whole check and pin once more. A commit that is not a pin commit is never dropped. A second refusal fails the run."
|
|
16112
16894
|
},
|
|
16113
16895
|
"mergeBack": {
|
|
16114
|
-
"output": "merge_back_ready of the release-please job, from scripts/release/merge-back-ready.sh: true when the stage of the line is ga
|
|
16896
|
+
"output": "merge_back_ready of the release-please job, from scripts/release/merge-back-ready.sh: true when all three hold: the stage of the line is ga; the line has no open Release PR (train_merge_back_ready asks gh pr list itself and reads its exit code, so a failed query is not ready and is never read as no PR); and the manifest differs from origin/main for at least one unit, every such unit being on a stable version with its final tag <component>/v<version>. The decision uses what release-please has already produced, not a recount of its commits, because a commit message override in the body of a pull request (BEGIN_COMMIT_OVERRIDE) is invisible to git log --grep. train_merge_back_ready and train_final_tags_missing (scripts/lib/release-stages.sh) decide, and finalize-release.sh --phase merge-back stops on the same tag check and on the open Release PR.",
|
|
16115
16897
|
"job": "merge-back runs when that output is true and the repository has the App; otherwise the job does not start and takes no runner. It checks out the release branch with the App token and runs scripts/release/finalize-release.sh --line <line> --phase merge-back --yes.",
|
|
16116
16898
|
"repeat": "Any later run of release-please at ga with every tag there asks again and starts the job again; the phase can be run again (it recreates the merge-back branch and finds the PR that is open).",
|
|
16117
|
-
"noEvent": "A line
|
|
16899
|
+
"noEvent": "A line with no unit bumped in the manifest is not ready on the event path (a line just opened has the same empty difference), so no merge-back PR is opened by the event: dispatch merge-back.yml by hand. The manual phase finishes with no unit bumped. After ga a second Release PR on the same line, opened for later commits, holds the merge-back back until it is merged."
|
|
16118
16900
|
},
|
|
16119
|
-
"decision": "release-pin-and-merge-back-by-events"
|
|
16901
|
+
"decision": "release-pin-and-merge-back-by-events",
|
|
16902
|
+
"readyToken": "The ready step has GH_TOKEN set to the App token (steps.app-token.outputs.token), because it asks gh for the open Release PR and the token the checkout leaves behind is for git only.",
|
|
16903
|
+
"pushPaths": "on.push.paths of release-please.yml also lists scripts/**: the ready output is computed by the scripts of the branch, and the sync commit of sync-release-tools.yml touches scripts/ and .github/ only, so without it no run would compute the output again after a script fix reaches the branch. A commit that touches only .github/ still starts no run. The path form stays dir/** (a test reads it)."
|
|
16120
16904
|
}
|
|
16121
16905
|
}
|
|
16122
16906
|
},
|
|
@@ -16162,7 +16946,7 @@
|
|
|
16162
16946
|
"every path equals main's"
|
|
16163
16947
|
],
|
|
16164
16948
|
"ownFix": "A path with commits of the branch that main does not have fails the line, lists the commits with their files, and overwrites nothing. The other lines are still done and the run fails at the end. The fix is to cherry-pick the commits to main and merge them, then run the sync again.",
|
|
16165
|
-
"refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint.ci.wait-loops has no new row for it).",
|
|
16949
|
+
"refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint-shared.ci.wait-loops has no new row for it).",
|
|
16166
16950
|
"concurrency": "One group, release-tool-sync, with cancel-in-progress false. It is not the release-line-<line> group of the manual workflows, because one run covers every line and a push event names no line."
|
|
16167
16951
|
},
|
|
16168
16952
|
"close": {
|
|
@@ -16175,7 +16959,7 @@
|
|
|
16175
16959
|
"manual": "workflow_dispatch with the line: the same decision with --strict, so a PR that is not ready fails the run and prints why, then the same close."
|
|
16176
16960
|
},
|
|
16177
16961
|
"triggerCheck": "A manual run checks github.triggering_actor against RELEASE_TRIGGER_ACTORS with scripts/release/check-trigger-actor.sh before the App token is made, from a read-only checkout of the default branch (blueprint-shared.templates.release-manual-workflows).",
|
|
16178
|
-
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint.ci.wait-loops has no new row for them.",
|
|
16962
|
+
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint-shared.ci.wait-loops has no new row for them.",
|
|
16179
16963
|
"decision": "release-tool-sync-and-close-by-events"
|
|
16180
16964
|
}
|
|
16181
16965
|
}
|
|
@@ -16215,7 +16999,7 @@
|
|
|
16215
16999
|
"every path equals main's"
|
|
16216
17000
|
],
|
|
16217
17001
|
"ownFix": "A path with commits of the branch that main does not have fails the line, lists the commits with their files, and overwrites nothing. The other lines are still done and the run fails at the end. The fix is to cherry-pick the commits to main and merge them, then run the sync again.",
|
|
16218
|
-
"refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint.ci.wait-loops has no new row for it).",
|
|
17002
|
+
"refusedPush": "A refused push fetches the branches and does the whole look and sync once more. A second refusal fails the line. The retry is written out, no loop sleeps (blueprint-shared.ci.wait-loops has no new row for it).",
|
|
16219
17003
|
"concurrency": "One group, release-tool-sync, with cancel-in-progress false. It is not the release-line-<line> group of the manual workflows, because one run covers every line and a push event names no line."
|
|
16220
17004
|
},
|
|
16221
17005
|
"close": {
|
|
@@ -16228,7 +17012,7 @@
|
|
|
16228
17012
|
"manual": "workflow_dispatch with the line: the same decision with --strict, so a PR that is not ready fails the run and prints why, then the same close."
|
|
16229
17013
|
},
|
|
16230
17014
|
"triggerCheck": "A manual run checks github.triggering_actor against RELEASE_TRIGGER_ACTORS with scripts/release/check-trigger-actor.sh before the App token is made, from a read-only checkout of the default branch (blueprint-shared.templates.release-manual-workflows).",
|
|
16231
|
-
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint.ci.wait-loops has no new row for them.",
|
|
17015
|
+
"noWaiting": "POLL_TRIES, CI_GATE_TRIES and CI_GATE_QUEUE_TRIES are set and none is above 2 (blueprint-shared.ci.wait-loops). The new scripts have no loop that sleeps, so blueprint-shared.ci.wait-loops has no new row for them.",
|
|
16232
17016
|
"decision": "release-tool-sync-and-close-by-events"
|
|
16233
17017
|
}
|
|
16234
17018
|
}
|
|
@@ -17352,6 +18136,40 @@
|
|
|
17352
18136
|
"ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own"
|
|
17353
18137
|
}
|
|
17354
18138
|
}
|
|
18139
|
+
},
|
|
18140
|
+
{
|
|
18141
|
+
"since": "0.8.0",
|
|
18142
|
+
"content": {
|
|
18143
|
+
"value": {
|
|
18144
|
+
"role": "org",
|
|
18145
|
+
"dir": "org/",
|
|
18146
|
+
"needs": [
|
|
18147
|
+
"base",
|
|
18148
|
+
"release",
|
|
18149
|
+
"publish"
|
|
18150
|
+
],
|
|
18151
|
+
"for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one. The repository that holds the templates is also a repository of the organization layer, so the rule here is the one for every repository of that layer",
|
|
18152
|
+
"files": [
|
|
18153
|
+
"README.md",
|
|
18154
|
+
"scripts/ci/check-org-values.mjs"
|
|
18155
|
+
],
|
|
18156
|
+
"composed": {
|
|
18157
|
+
"facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts/. The component holds at least the organization values (<RepoName>.org-values, validatedBy blueprint-shared.org-values) and the repositories of the organization layer (<RepoName>.org-layout.repos, shaped like the repository list that scripts/naming/check-names.mjs reads). The organization may add its own rules to it. It does not hold the duties of the repository that holds the templates (see templateHolder)",
|
|
18158
|
+
"docs": "docs/ is the docs package named <RepoName>-docs (blueprint-shared.naming.docs-package-name) with the entry docs/<RepoName>-docs/<RepoName>/ of the layer org, which cites the facts of the organization and the shared facts, and takes the shared documents as docSources. The entry holds the document layer-names.doc.ts, which the compose step writes from the repository list: the facts and docs package of every repository of the list, named from the scope of the organization",
|
|
18159
|
+
"names": "Every name is worked out from the organization values and the repository list given to the compose step, so the role names no organization: the scope is the one of aggregatePackageName, the packages are <scope>/<RepoName>-facts and <scope>/<RepoName>-docs",
|
|
18160
|
+
"dependencies": "The component depends on blueprint-shared-facts and the docs package on blueprint-shared-docs and blueprint-shared-facts, at the version of those packages in the repository that holds the templates, because the repository installs them from the public registry",
|
|
18161
|
+
"readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an organization, which holds the organization values and the repository list, names no organization, and lists the permissions the App of the organization needs from blueprint-shared.templates.github-app-placement"
|
|
18162
|
+
},
|
|
18163
|
+
"schema": "The fact of the organization values carries validatedBy blueprint-shared.org-values, so fact-kit check (pnpm check, the facts job of ci.yml) fails when a required field is missing or an unknown field is present, and names the field. scripts/ci/check-org-values.mjs reads the built value and the same schema, prints each missing, unknown or wrongly typed field, and also fails when aggregatePackageName is not the name of the aggregate package of the repository",
|
|
18164
|
+
"ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own",
|
|
18165
|
+
"templateHolder": {
|
|
18166
|
+
"rule": "The repository that holds the templates is also a repository of the organization layer. It holds the values of its organization and the list of the repositories of that layer like any other repository of the layer, and it has the duties of the template holder (showing the templates in demonstration repositories, and managing the templates) that no other repository of the layer has.",
|
|
18167
|
+
"factsPackage": "The facts package of an organization layer repository, <RepoName>-facts, holds at least the organization values and the repository list. It may hold more, such as rules the organization sets for itself. It holds nothing of the duties of the repository that holds the templates, whatever the repository is.",
|
|
18168
|
+
"demos": "The repository that holds the templates may have packages of its own duties under demos/: <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages; blueprint-shared.repo-layout.directories).",
|
|
18169
|
+
"dependency": "A package under demos/ may depend on the packages of the organization layer and on the shared packages. They do not depend on a package under demos/, so a repository of the organization layer that holds no templates has the same packages without it."
|
|
18170
|
+
}
|
|
18171
|
+
}
|
|
18172
|
+
}
|
|
17355
18173
|
}
|
|
17356
18174
|
],
|
|
17357
18175
|
"source": {
|
|
@@ -17366,20 +18184,26 @@
|
|
|
17366
18184
|
"release",
|
|
17367
18185
|
"publish"
|
|
17368
18186
|
],
|
|
17369
|
-
"for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one
|
|
18187
|
+
"for": "the repository of the organization layer that holds the values of the organization: its facts package <RepoName>-facts and its docs package <RepoName>-docs. It belongs to no product. A repository that adopts the shared layer has one. The repository that holds the templates is also a repository of the organization layer, so the rule here is the one for every repository of that layer",
|
|
17370
18188
|
"files": [
|
|
17371
18189
|
"README.md",
|
|
17372
18190
|
"scripts/ci/check-org-values.mjs"
|
|
17373
18191
|
],
|
|
17374
18192
|
"composed": {
|
|
17375
|
-
"facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts
|
|
18193
|
+
"facts": "facts/ is the aggregate package named <MetaFactName> (blueprint-shared.naming.meta-fact-name) with one component, <RepoName>-facts.npm in facts/<RepoName>-facts/. The component holds at least the organization values (<RepoName>.org-values, validatedBy blueprint-shared.org-values) and the repositories of the organization layer (<RepoName>.org-layout.repos, shaped like the repository list that scripts/naming/check-names.mjs reads). The organization may add its own rules to it. It does not hold the duties of the repository that holds the templates (see templateHolder)",
|
|
17376
18194
|
"docs": "docs/ is the docs package named <RepoName>-docs (blueprint-shared.naming.docs-package-name) with the entry docs/<RepoName>-docs/<RepoName>/ of the layer org, which cites the facts of the organization and the shared facts, and takes the shared documents as docSources. The entry holds the document layer-names.doc.ts, which the compose step writes from the repository list: the facts and docs package of every repository of the list, named from the scope of the organization",
|
|
17377
18195
|
"names": "Every name is worked out from the organization values and the repository list given to the compose step, so the role names no organization: the scope is the one of aggregatePackageName, the packages are <scope>/<RepoName>-facts and <scope>/<RepoName>-docs",
|
|
17378
18196
|
"dependencies": "The component depends on blueprint-shared-facts and the docs package on blueprint-shared-docs and blueprint-shared-facts, at the version of those packages in the repository that holds the templates, because the repository installs them from the public registry",
|
|
17379
|
-
"readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an
|
|
18197
|
+
"readme": "README.md comes from the role template. The compose step fills the organization (the scope without the @), the repository name, aggregatePackageName and aggregateRegistry of the organization values (fields organization, repoName, aggregatePackageName and aggregateRegistry of blueprint-shared.templates.fields). It says the repository is the organization layer of an organization, which holds the organization values and the repository list, names no organization, and lists the permissions the App of the organization needs from blueprint-shared.templates.github-app-placement"
|
|
17380
18198
|
},
|
|
17381
18199
|
"schema": "The fact of the organization values carries validatedBy blueprint-shared.org-values, so fact-kit check (pnpm check, the facts job of ci.yml) fails when a required field is missing or an unknown field is present, and names the field. scripts/ci/check-org-values.mjs reads the built value and the same schema, prints each missing, unknown or wrongly typed field, and also fails when aggregatePackageName is not the name of the aggregate package of the repository",
|
|
17382
|
-
"ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own"
|
|
18200
|
+
"ci": "ci.yml has the step \"organization values against blueprint-shared.org-values\" in its facts job between role blocks (# @if org), after the steps that build and check the facts. The role has no workflow of its own",
|
|
18201
|
+
"templateHolder": {
|
|
18202
|
+
"rule": "The repository that holds the templates is also a repository of the organization layer. It holds the values of its organization and the list of the repositories of that layer like any other repository of the layer, and it has the duties of the template holder (showing the templates in demonstration repositories, and managing the templates) that no other repository of the layer has.",
|
|
18203
|
+
"factsPackage": "The facts package of an organization layer repository, <RepoName>-facts, holds at least the organization values and the repository list. It may hold more, such as rules the organization sets for itself. It holds nothing of the duties of the repository that holds the templates, whatever the repository is.",
|
|
18204
|
+
"demos": "The repository that holds the templates may have packages of its own duties under demos/: <RepoName>-demos-facts in demos/_facts and <RepoName>-demos-docs in demos/_docs (blueprint-shared.naming.unit-name, dutyPackages; blueprint-shared.repo-layout.directories).",
|
|
18205
|
+
"dependency": "A package under demos/ may depend on the packages of the organization layer and on the shared packages. They do not depend on a package under demos/, so a repository of the organization layer that holds no templates has the same packages without it."
|
|
18206
|
+
}
|
|
17383
18207
|
}
|
|
17384
18208
|
}
|
|
17385
18209
|
},
|