Skip to content

Commit 37a4b7c

Browse files
committed
fix(bookkeeper): keep the JMAP route check compatible with aliases
2 parents 678cee9 + 25dc8d2 commit 37a4b7c

393 files changed

Lines changed: 30647 additions & 1065 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actions/deploy-prod/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ runs:
8585
shell: bash
8686
env:
8787
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
88-
KSAIL_VERSION: "7.213.0"
88+
KSAIL_VERSION: "7.216.43"
8989
GITHUB_TOKEN: ${{ github.token }}
9090
run: |
9191
.github/scripts/setup-ksail.sh

‎.github/workflows/cd.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
shell: bash
196196
env:
197197
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
198-
KSAIL_VERSION: "7.213.0"
198+
KSAIL_VERSION: "7.216.43"
199199
GITHUB_TOKEN: ${{ github.token }}
200200
run: .github/scripts/setup-ksail.sh
201201

‎.github/workflows/ci.yaml‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
if: >-
172172
github.event_name == 'pull_request'
173173
&& github.event.pull_request.head.repo.full_name == github.repository
174-
uses: devantler-tech/.github/.github/workflows/validate-go-project.yaml@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
174+
uses: devantler-tech/.github/.github/workflows/validate-go-project.yaml@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
175175
with:
176176
apply-signed-fixes: false
177177
# Same measured eight-slot bound as the helper regression job above;
@@ -323,6 +323,7 @@ jobs:
323323
- 'scripts/tests/openbao-health-native/**'
324324
- 'scripts/judge-openbao-health/**'
325325
- 'internal/strictjson/**'
326+
- 'internal/hubblepolicy/**'
326327
- 'scripts/tests/test-kyverno-auth-reviews.sh'
327328
- 'scripts/tests/kyverno-auth-reviews/**'
328329
- 'scripts/tests/test-tenant-webapp-boundary.sh'
@@ -1140,7 +1141,7 @@ jobs:
11401141
| sha256sum --check
11411142
tar --extract --gzip --file "$native_hubble/hubble.tar.gz" --directory "$native_hubble"
11421143
export HUBBLE_TEST_BIN="$native_hubble/hubble"
1143-
go test -race ./scripts/verify-arc-transport ./scripts/diagnose-email-startup
1144+
go test -race ./internal/hubblepolicy ./scripts/verify-arc-transport ./scripts/diagnose-email-startup
11441145
shellcheck scripts/verify-arc-transport.sh scripts/tests/test-verify-arc-transport.sh
11451146
bash scripts/tests/test-verify-arc-transport.sh
11461147
@@ -1319,9 +1320,9 @@ jobs:
13191320
tool_dir="$(mktemp -d "$RUNNER_TEMP/flux-profile.XXXXXX")"
13201321
archive="$tool_dir/flux-operator.tar.gz"
13211322
curl --fail --silent --show-error --location --retry 3 --retry-all-errors --retry-delay 5 --retry-max-time 120 --connect-timeout 10 --max-time 120 \
1322-
https://github.com/controlplaneio-fluxcd/flux-operator/releases/download/v0.63.1/flux-operator_0.63.1_linux_amd64.tar.gz \
1323+
https://github.com/controlplaneio-fluxcd/flux-operator/releases/download/v0.64.0/flux-operator_0.64.0_linux_amd64.tar.gz \
13231324
--output "$archive"
1324-
printf '%s %s\n' 7b714410401138cc1e7ceee34656f9b740b8347827870692d5bf5bac0cea6585 "$archive" | sha256sum --check
1325+
printf '%s %s\n' 003ea10201e5151f9e8df42bf78738bf3ef14f9afaa1e357417b024d0b6cc8ae "$archive" | sha256sum --check
13251326
tar -xzf "$archive" -C "$tool_dir" flux-operator
13261327
FLUX_OPERATOR_BIN="$tool_dir/flux-operator" bash scripts/tests/test-controller-helm-profile.sh
13271328
@@ -1808,7 +1809,7 @@ jobs:
18081809
shell: bash
18091810
env:
18101811
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
1811-
KSAIL_VERSION: "7.213.0"
1812+
KSAIL_VERSION: "7.216.43"
18121813
GITHUB_TOKEN: ${{ github.token }}
18131814
run: .github/scripts/setup-ksail.sh
18141815

@@ -3115,7 +3116,7 @@ jobs:
31153116
shell: bash
31163117
env:
31173118
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
3118-
KSAIL_VERSION: "7.213.0"
3119+
KSAIL_VERSION: "7.216.43"
31193120
GITHUB_TOKEN: ${{ github.token }}
31203121
run: |
31213122
.github/scripts/setup-ksail.sh
@@ -3549,7 +3550,7 @@ jobs:
35493550
shell: bash
35503551
env:
35513552
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
3552-
KSAIL_VERSION: "7.213.0"
3553+
KSAIL_VERSION: "7.216.43"
35533554
GITHUB_TOKEN: ${{ github.token }}
35543555
run: |
35553556
.github/scripts/setup-ksail.sh
@@ -3714,7 +3715,7 @@ jobs:
37143715

37153716
- name: 🏷️ Validate naming conventions
37163717
id: naming
3717-
uses: devantler-tech/.github/actions/validate-naming@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
3718+
uses: devantler-tech/.github/actions/validate-naming@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
37183719

37193720
- name: Confirm naming validation completed
37203721
env:
@@ -4624,7 +4625,7 @@ jobs:
46244625
shell: bash
46254626
env:
46264627
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
4627-
KSAIL_VERSION: "7.213.0"
4628+
KSAIL_VERSION: "7.216.43"
46284629
GITHUB_TOKEN: ${{ github.token }}
46294630
run: .github/scripts/setup-ksail.sh
46304631

@@ -4843,7 +4844,7 @@ jobs:
48434844
fi
48444845
48454846
- name: 📊 Evaluate job results
4846-
uses: devantler-tech/.github/actions/aggregate-job-checks@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
4847+
uses: devantler-tech/.github/actions/aggregate-job-checks@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
48474848
with:
48484849
check-workflow-startup: "true"
48494850
job-results: >-

‎.github/workflows/dr-rebuild.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
# deploy-prod action; renovate keeps the pin current in all places.
208208
env:
209209
# renovate: datasource=github-releases depName=devantler-tech/ksail extractVersion=^v(?<version>.+)$
210-
KSAIL_VERSION: "7.213.0"
210+
KSAIL_VERSION: "7.216.43"
211211
GITHUB_TOKEN: ${{ github.token }}
212212
run: |
213213
.github/scripts/setup-ksail.sh

‎.github/workflows/observe-talos-storage-pool-layout.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Install the verified KSail lifecycle client
6464
shell: bash
6565
env:
66-
KSAIL_VERSION: "7.213.0"
66+
KSAIL_VERSION: "7.216.43"
6767
GITHUB_TOKEN: ${{ github.token }}
6868
run: .github/scripts/setup-ksail.sh
6969

‎.github/workflows/prepare-longhorn-v2-node.yaml‎

Lines changed: 61 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ name: Prepare Longhorn V2 Migration
3232
recover-unstarted-v1-benchmark,
3333
recover-bound-v1-benchmark,
3434
prepare-native-v1-seed,
35+
restore-native-v2-seed,
36+
resume-native-v2-seed-restore,
37+
resume-native-v2-reattach,
38+
reclaim-native-v2-seed,
39+
resume-native-v2-reclaim,
3540
inventory-replicas,
3641
inventory-storage-root,
3742
inventory-storage-layout,
@@ -40,10 +45,16 @@ name: Prepare Longhorn V2 Migration
4045
inspect-host-memory,
4146
reboot-host-for-hugepages,
4247
observe-database,
48+
prove-database-v2-archive,
49+
resume-umami-archive-isolation,
50+
resume-umami-archive-data,
4351
register-temporary-v2-storage,
4452
repair-v1-reservation,
4553
reserve-v1-scratch,
4654
reserve-v1-backup-scratch,
55+
prepare-actual-budget-backup-scratch,
56+
retire-actual-budget-backup-scratch,
57+
backup-actual-budget-v1,
4758
retain-v1-source,
4859
retain-provider-source,
4960
]
@@ -113,7 +124,8 @@ jobs:
113124
- name: Test queued read-only source selection
114125
run: bash scripts/tests/test-longhorn-runtime-inventory-source.sh
115126
- name: Test complete observations and interrupted recovery
116-
run: go test -race -count=1 -timeout=5m ./scripts/migrate-longhorn-v2 ./internal/longhornmigration ./internal/longhorninventory ./internal/namespaceinventory
127+
# The native admission and database restore fixtures share this bounded test job.
128+
run: go test -race -count=1 -timeout=7m ./scripts/migrate-longhorn-v2 ./internal/longhornmigration ./internal/longhorninventory ./internal/namespaceinventory
117129

118130
prepare:
119131
name: Run the selected guarded migration step
@@ -143,12 +155,41 @@ jobs:
143155
prepare-native-v1-seed)
144156
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" == prepare-longhorn-native-v1-seed ]]
145157
;;
158+
restore-native-v2-seed)
159+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" == restore-longhorn-native-v2-seed ]]
160+
;;
161+
resume-native-v2-seed-restore)
162+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" &&
163+
"${LONGHORN_V2_CONFIRM}" =~ ^resume-longhorn-native-v2-seed:[1-9][0-9]{0,18}$ ]]
164+
;;
165+
resume-native-v2-reattach)
166+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" &&
167+
"${LONGHORN_V2_CONFIRM}" =~ ^resume-longhorn-native-v2-reattach:[1-9][0-9]{0,18}:[1-9][0-9]{0,18}$ ]]
168+
;;
169+
reclaim-native-v2-seed)
170+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" =~ ^reclaim-longhorn-native-v2-seed:[1-9][0-9]{0,18}$ ]]
171+
;;
172+
resume-native-v2-reclaim)
173+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" =~ ^resume-longhorn-native-v2-reclaim:[1-9][0-9]{0,18}:[1-9][0-9]{0,18}$ ]]
174+
;;
146175
inventory-v1-runtime)
147176
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" == inventory-v1-runtime ]]
148177
;;
149178
observe-database)
150179
[[ -z "${LONGHORN_V2_NODE}" && "${LONGHORN_V2_DATABASE}" =~ ^(coroot-db|umami-db|wedding-db|substrate-db|kagent-db|customer-identity-db|business-site-portal-db|portal-preview-db)$ && "${LONGHORN_V2_CONFIRM}" == "observe-longhorn-v2-database-${LONGHORN_V2_DATABASE}" ]]
151180
;;
181+
prove-database-v2-archive)
182+
[[ -z "${LONGHORN_V2_NODE}" && "${LONGHORN_V2_DATABASE}" =~ ^(coroot-db|umami-db|wedding-db|customer-identity-db|business-site-portal-db)$ &&
183+
"${LONGHORN_V2_CONFIRM}" == "prove-longhorn-v2-database-archive-${LONGHORN_V2_DATABASE}" ]]
184+
;;
185+
resume-umami-archive-isolation)
186+
[[ -z "${LONGHORN_V2_NODE}" && "${LONGHORN_V2_DATABASE}" == umami-db &&
187+
"${LONGHORN_V2_CONFIRM}" =~ ^resume-umami-archive-isolation:[1-9][0-9]{0,18}$ ]]
188+
;;
189+
resume-umami-archive-data)
190+
[[ -z "${LONGHORN_V2_NODE}" && "${LONGHORN_V2_DATABASE}" == umami-db &&
191+
"${LONGHORN_V2_CONFIRM}" =~ ^resume-umami-archive-data:[1-9][0-9]{0,18}:[0-9a-f]{64}$ ]]
192+
;;
152193
prepare-worker)
153194
[[ "${LONGHORN_V2_NODE}" =~ ^prod-worker-[123]$ && "${LONGHORN_V2_CONFIRM}" == "prepare-longhorn-v2-${LONGHORN_V2_NODE}" ]]
154195
;;
@@ -176,6 +217,18 @@ jobs:
176217
reserve-v1-backup-scratch)
177218
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" && "${LONGHORN_V2_CONFIRM}" == reserve-longhorn-v1-backup-scratch ]]
178219
;;
220+
prepare-actual-budget-backup-scratch)
221+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" &&
222+
"${LONGHORN_V2_CONFIRM}" =~ ^prepare-actual-budget-backup-scratch:[0-9a-f]{64}$ ]]
223+
;;
224+
retire-actual-budget-backup-scratch)
225+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" &&
226+
"${LONGHORN_V2_CONFIRM}" =~ ^retire-actual-budget-backup-scratch:[1-9][0-9]{0,18}$ ]]
227+
;;
228+
backup-actual-budget-v1)
229+
[[ -z "${LONGHORN_V2_NODE}" && -z "${LONGHORN_V2_DATABASE}" &&
230+
"${LONGHORN_V2_CONFIRM}" =~ ^backup-actual-budget-v1:[0-9a-f]{64}$ ]]
231+
;;
179232
retain-v1-source)
180233
[[ -z "${LONGHORN_V2_NODE}" && "${LONGHORN_V2_CONFIRM}" =~ ^retain-longhorn-v1-source:[a-z0-9][-a-z0-9]*/[a-z0-9][-a-z0-9.]*:[0-9a-f]{64}$ ]]
181234
;;
@@ -268,7 +321,7 @@ jobs:
268321
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
269322
run: ./scripts/use-prod-stable-api-endpoint.sh
270323
- name: Run the confirmed migration preparation
271-
if: ${{ inputs.operation != 'benchmark-v1' && inputs.operation != 'recover-bound-v1-benchmark' && inputs.operation != 'prepare-native-v1-seed' }}
324+
if: ${{ inputs.operation != 'benchmark-v1' && inputs.operation != 'recover-bound-v1-benchmark' && inputs.operation != 'prepare-native-v1-seed' && inputs.operation != 'reclaim-native-v2-seed' && inputs.operation != 'resume-native-v2-reclaim' }}
272325
env:
273326
GH_TOKEN: ${{ github.token }}
274327
LONGHORN_RUNTIME_INVENTORY_SOURCE: ${{ steps.recovery-source.outputs.sha }}
@@ -285,6 +338,12 @@ jobs:
285338
GH_TOKEN: ${{ github.token }}
286339
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
287340
run: go run ./scripts/migrate-longhorn-v2
341+
- name: Reclaim the verified disposable V2 restoration
342+
if: ${{ inputs.operation == 'reclaim-native-v2-seed' || inputs.operation == 'resume-native-v2-reclaim' }}
343+
env:
344+
GH_TOKEN: ${{ github.token }}
345+
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
346+
run: go run ./scripts/migrate-longhorn-v2
288347
- name: Remove runner credentials
289348
if: ${{ always() }}
290349
shell: bash

‎.github/workflows/publish-release-recovery.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
go -C .devantler-tech-recovery/.github/scripts/inspect-release-recovery build -trimpath -o "$PWD/.devantler-tech-recovery/publish-release-recovery" ./cmd/publish-release-recovery
123123
- name: 🔑 Obtain repository-scoped read-only token
124124
id: read-token
125-
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
125+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
126126
with:
127127
client-id: ${{ vars.APP_CLIENT_ID }}
128128
private-key: ${{ secrets.APP_PRIVATE_KEY }}
@@ -200,7 +200,7 @@ jobs:
200200
- name: 🔑 Obtain repository-scoped publication token
201201
id: write-token
202202
if: steps.read-admission.outputs.missing == 'true'
203-
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
203+
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
204204
with:
205205
client-id: ${{ vars.APP_CLIENT_ID }}
206206
private-key: ${{ secrets.APP_PRIVATE_KEY }}

‎.github/workflows/release.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: {}
1010

1111
jobs:
1212
release:
13-
uses: devantler-tech/.github/.github/workflows/create-release.yaml@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
13+
uses: devantler-tech/.github/.github/workflows/create-release.yaml@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
1414
with:
1515
disable-issue-side-effects: true
1616
permissions:

‎.github/workflows/scan-go-vulnerabilities.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
id: scan
129129
continue-on-error: true
130130
timeout-minutes: 30
131-
uses: devantler-tech/.github/.github/actions/govulncheck@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
131+
uses: devantler-tech/.github/.github/actions/govulncheck@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
132132
with:
133133
work-dir: ${{ matrix.directory }}
134134
go-version-file: ${{ matrix.directory }}/go.mod

‎.github/workflows/stale-issues.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
triage:
2626
# Keep portfolio automation disabled in external template copies.
2727
if: ${{ github.repository_owner == 'devantler-tech' }}
28-
uses: devantler-tech/.github/.github/workflows/triage-stale-issues.yaml@f6b200f553bdd94e269c3ee60a93a09c2ad415e4 # v22.5.0
28+
uses: devantler-tech/.github/.github/workflows/triage-stale-issues.yaml@0e02148c251bcd65cfddc1cc7bec49ccce2eea42 # v22.7.0
2929
permissions:
3030
issues: write
3131
actions: write

0 commit comments

Comments
 (0)