GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — server/server/build-api-explorer-patch-image.sh at main · PastureStack/server

Expand file tree

/

build-api-explorer-patch-image.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
1142 lines (1122 loc) · 77.6 KB
/

build-api-explorer-patch-image.sh

Copy path

File metadata and controls

executable file
·
1142 lines (1122 loc) · 77.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
set -Eeuo pipefail
trap 'status=$?; printf "SERVER_IMAGE_BUILD_FAILED line=%s exit=%s command=%q\n" \
"$LINENO" "$status" "$BASH_COMMAND" >&2; exit "$status"' ERR
server_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
repo_root=$(cd "${server_dir}/.." && pwd)
cd "$repo_root"
if [[ -n "$(git status --porcelain --untracked-files=normal)" ]]; then
echo "Refusing to build a release image from an uncommitted worktree" >&2
exit 1
fi
revision=${PASTURESTACK_SERVER_REVISION:-$(git rev-parse HEAD)}
server_release_tag=${SERVER_RELEASE_TAG:-v1.6.611}
source_date_epoch=${SOURCE_DATE_EPOCH:-$(git show -s --format=%ct HEAD)}
base_image=${BASE_IMAGE:-ghcr.io/pasturestack/server:v1.6.460@sha256:c855af8aea232dacc5bb6df68e2271d482c68b53c43ab0c108ec19118f5ab403}
orchestration_engine_release_base_url=${ORCHESTRATION_ENGINE_RELEASE_BASE_URL:-https://github.com/PastureStack/orchestration-engine/releases/download}
orchestration_engine_asset_api_url=${ORCHESTRATION_ENGINE_ASSET_API_URL:-https://api.github.com/repos/PastureStack/orchestration-engine/releases/assets/805959870}
orchestration_engine_release_tag=${ORCHESTRATION_ENGINE_RELEASE_TAG:-v0.183.396}
orchestration_engine_artifact=${ORCHESTRATION_ENGINE_ARTIFACT:-cattle.jar}
orchestration_engine_artifact_sha256=${ORCHESTRATION_ENGINE_ARTIFACT_SHA256:-d354acd16b575580cb0fa89384e69f1c03519aabfa905e9b0bc897e395b0769c}
orchestration_engine_commit=${ORCHESTRATION_ENGINE_COMMIT:-1f2012c0af91c7533d08da9d9ec8b2cba26f3d7d}
orchestration_engine_version=${orchestration_engine_release_tag#v}
engine_readonly_schema_sha256=${ENGINE_READONLY_SCHEMA_SHA256:-7f274219e8dd9c6d750a408a6edec1448b564f4b16ba2204c425c5b45cec2233}
engine_restricted_schema_sha256=${ENGINE_RESTRICTED_SCHEMA_SHA256:-f854ba99260f29e324ab7446a8592996946038920ac9bcf17689d98d1ebc5e51}
host_api_version=${HOST_API_VERSION:-0.38.12}
host_api_package_mode=${HOST_API_PACKAGE_MODE:-producer}
host_api_release_base_url=${HOST_API_RELEASE_BASE_URL:-https://github.com/PastureStack/host-api/releases/download}
host_api_release_tag=${HOST_API_RELEASE_TAG:-v0.38.12}
host_api_archive_sha256=${HOST_API_ARCHIVE_SHA256:-4761c2a9f79f683e11b72c27ccf8416df3b96391cfd918145ea6085fb556044a}
host_api_package_id=${HOST_API_PACKAGE_ID:-7283936664b1e1783547a8c80117e8db}
host_api_binary_sha256=${HOST_API_BINARY_SHA256:-a9bd3018172a3a988b2202fdb330c47d6744d647403669e1ca74bc5cbbe27e68}
host_api_apply_sha256=${HOST_API_APPLY_SHA256:-8a21f63099832afb571755011bbcf8d97710994a50c419b20700cbc31efced0f}
host_api_commit=${HOST_API_COMMIT:-7283936664b1e1783547a8c80117e8db8e4c301c}
node_agent_version=${NODE_AGENT_VERSION:-0.13.39}
node_agent_release_base_url=${NODE_AGENT_RELEASE_BASE_URL:-https://github.com/PastureStack/node-agent/releases/download}
node_agent_commit=${NODE_AGENT_COMMIT:-e7eb552408b4b51e2ee07d390a7a9b407eaaa698}
node_agent_package_id=${NODE_AGENT_PACKAGE_ID:-${node_agent_commit:0:32}}
node_agent_archive_sha256=${NODE_AGENT_ARCHIVE_SHA256:-00e224e36b83e7d67e9bd52a3edc0bedc0a4024021fca3114fd11f5e47251930}
node_agent_binary_sha256=${NODE_AGENT_BINARY_SHA256:-729830dadb344417e33759c6185ad6617fd170a78b9d03fdd141224df3f201d6}
node_agent_apply_sha256=${NODE_AGENT_APPLY_SHA256:-dd8cb342518a43e7468cc121db5c4e44b16731f2620b77ea0fd03c02c03766a9}
node_agent_windows_archive_sha256=${NODE_AGENT_WINDOWS_ARCHIVE_SHA256:-f0dd572eb1d72382d18dd366eaa45a40e05f1c83cb0c394f80c9e4b3c16fb004}
node_agent_windows_binary_sha256=${NODE_AGENT_WINDOWS_BINARY_SHA256:-e703f13f2f16782014acf77bb3ea6b461347dac6723686b5495fb50419b36db8}
node_agent_windows_startup_sha256=${NODE_AGENT_WINDOWS_STARTUP_SHA256:-e1e84e1c5125db2b8f0c1a83ada8294556cb2390de969398a2436d9481378fca}
per_host_subnet_version=${PER_HOST_SUBNET_VERSION:-0.2.6}
per_host_subnet_release_base_url=${PER_HOST_SUBNET_RELEASE_BASE_URL:-https://github.com/PastureStack/per-host-subnet/releases/download}
per_host_subnet_producer_commit=${PER_HOST_SUBNET_PRODUCER_COMMIT:-05c69dba52ab770062e81a9b60b69408cbe58218}
per_host_subnet_archive_sha256=${PER_HOST_SUBNET_ARCHIVE_SHA256:-a3a7592582c443f4f36b31c54a0a3c87d5961d664e3604b20acb97dec55725be}
per_host_subnet_binary_sha256=${PER_HOST_SUBNET_BINARY_SHA256:-a0e8d6aaa44cfc0579878611a15ace3a939d52d709165b92fb4d45eed49a112c}
per_host_subnet_startup_sha256=${PER_HOST_SUBNET_STARTUP_SHA256:-f22b41f18d1733c037babed4d2e0474efeedc6017a96849d4309dd864f5f86d1}
per_host_subnet_provenance_sha256=${PER_HOST_SUBNET_PROVENANCE_SHA256:-272ea108e8d938c352cf47a4fa82e0dab3c81b6f3b181d0d12b71e1469f87edd}
[[ "$per_host_subnet_version" = 0.2.6 && "$per_host_subnet_producer_commit" =~ ^[0-9a-f]{40}$ ]]
for cni_hash in "$per_host_subnet_archive_sha256" "$per_host_subnet_binary_sha256" "$per_host_subnet_startup_sha256" "$per_host_subnet_provenance_sha256"; do
[[ "$cni_hash" =~ ^[0-9a-f]{64}$ ]]
done
case "$per_host_subnet_release_base_url" in https://*) ;; *) exit 1 ;; esac
component_artifact_mode=remote
api_explorer_release_base_url=${API_EXPLORER_RELEASE_BASE_URL:-https://github.com/PastureStack/api-explorer/releases/download}
api_explorer_release_tag=${API_EXPLORER_RELEASE_TAG:-v1.1.22}
api_explorer_artifact=${API_EXPLORER_ARTIFACT:-api-explorer-1.1.22.tar.gz}
api_explorer_artifact_sha256=${API_EXPLORER_ARTIFACT_SHA256:-31564c3409313b7f5ce95486f6445f099646957f7c984de3f045245884e5c5f0}
api_explorer_commit=${API_EXPLORER_COMMIT:-f84aad3e40f4a364aab42273e46767f756fb551f}
web_console_release_base_url=${WEB_CONSOLE_RELEASE_BASE_URL:-https://github.com/PastureStack/web-console/releases/download}
web_console_asset_api_url=${WEB_CONSOLE_ASSET_API_URL:-https://api.github.com/repos/PastureStack/web-console/releases/assets/802787031}
web_console_sbom_asset_api_url=${WEB_CONSOLE_SBOM_ASSET_API_URL:-https://api.github.com/repos/PastureStack/web-console/releases/assets/802787016}
web_console_release_tag=${WEB_CONSOLE_RELEASE_TAG:-1.6.246}
web_console_artifact=${WEB_CONSOLE_ARTIFACT:-web-console-1.6.246.tar.gz}
web_console_artifact_sha256=${WEB_CONSOLE_ARTIFACT_SHA256:-43fbf48ac556d9f798aed6d8f132c4f1fd5f906c561efd7d4dbd4a4ac2576eec}
web_console_commit=${WEB_CONSOLE_COMMIT:-e59bfb76e90a0da24508ec447637d6cf87f8abf8}
web_console_lock_sha256=${WEB_CONSOLE_LOCK_SHA256:-4226ad96deb75bb9efa831a7a5a58a22302cdf6da8e3142c3d32abdb2c3517a0}
web_console_runtime_sbom_artifact=${WEB_CONSOLE_RUNTIME_SBOM_ARTIFACT:-web-console-${web_console_release_tag}-runtime.cdx.json}
web_console_runtime_sbom_sha256=${WEB_CONSOLE_RUNTIME_SBOM_SHA256:-c15801e3fc224a1e574f0661f9c0bd3baa6a0821259b013102b6eacc4d6eec2e}
catalog_service_release_base_url=${CATALOG_SERVICE_RELEASE_BASE_URL:-https://github.com/PastureStack/catalog-service/releases/download}
catalog_service_version=${CATALOG_SERVICE_VERSION:-0.20.20}
catalog_service_commit=${CATALOG_SERVICE_COMMIT:-bced4b96b0c6a0fe7d3db044f5c30a5b33d01172}
catalog_service_archive_sha256=${CATALOG_SERVICE_ARCHIVE_SHA256:-6bce527300205aeb0d589b67f4b38e037be3bdb8e6da5ea04f7357d287eedf6d}
catalog_service_binary_sha256=${CATALOG_SERVICE_BINARY_SHA256:-acf89922925f62ce2ae9333636568f50c7fa6a2dee8b843e68dd8be43d8342b4}
catalog_service_sqlite_binary_sha256=${CATALOG_SERVICE_SQLITE_BINARY_SHA256:-c7e6c53d2382d7955edaf8b77869d6df3aa9e7cab2b7bf7646080791b3169e16}
catalog_service_license_sha256=${CATALOG_SERVICE_LICENSE_SHA256:-0d542e0c8804e39aa7f37eb00da5a762149dc682d7829451287e11b938e94594}
authentication_service_release_base_url=${AUTHENTICATION_SERVICE_RELEASE_BASE_URL:-https://github.com/PastureStack/authentication-service/releases/download}
authentication_service_version=${AUTHENTICATION_SERVICE_VERSION:-0.4.48}
authentication_service_commit=${AUTHENTICATION_SERVICE_COMMIT:-3f8f08a0ba387990b521095f694537f1f5059094}
authentication_service_archive_sha256=${AUTHENTICATION_SERVICE_ARCHIVE_SHA256:-99e17b267ce3534d31e228438216faf41be84c790f34ac052809034ef3f090a8}
authentication_service_binary_sha256=${AUTHENTICATION_SERVICE_BINARY_SHA256:-57dc1a3e3ca7eb63cebd9141ecb2d2b1b37b0bc1cfca14aa973e76f1331a0e35}
websocket_proxy_release_base_url=${WEBSOCKET_PROXY_RELEASE_BASE_URL:-https://github.com/PastureStack/websocket-proxy/releases/download}
websocket_proxy_version=${WEBSOCKET_PROXY_VERSION:-0.23.20}
websocket_proxy_commit=${WEBSOCKET_PROXY_COMMIT:-7f7423b659bfd9e931922740418527ad144bacfe}
websocket_proxy_archive_sha256=${WEBSOCKET_PROXY_ARCHIVE_SHA256:-1ee6a475e72c1c38c0fd6cb84b43601a1645ff3039f5419c7426a3cf18fe7735}
websocket_proxy_binary_sha256=${WEBSOCKET_PROXY_BINARY_SHA256:-19668f923235c6eca14999c091f8b0b362d0bd071ded707825f7da66d4caf51f}
webhook_automation_service_release_base_url=${WEBHOOK_AUTOMATION_SERVICE_RELEASE_BASE_URL:-https://github.com/PastureStack/webhook-automation-service/releases/download}
webhook_automation_service_version=${WEBHOOK_AUTOMATION_SERVICE_VERSION:-0.10.7}
webhook_automation_service_commit=${WEBHOOK_AUTOMATION_SERVICE_COMMIT:-f765dd2bafd3a9a18eea8dd78c1a09b113cf2ce7}
webhook_automation_service_archive_sha256=${WEBHOOK_AUTOMATION_SERVICE_ARCHIVE_SHA256:-54206c96f8641779163f57e0edd2f7d6c136d643b8ebf492ab9b1896522f741f}
webhook_automation_service_binary_sha256=${WEBHOOK_AUTOMATION_SERVICE_BINARY_SHA256:-5857ec67c19f781aedf41a0774beba5dfe2f5e9bae47262122ca5146614af256}
compose_executor_release_base_url=${COMPOSE_EXECUTOR_RELEASE_BASE_URL:-https://github.com/PastureStack/compose-cli/releases/download}
compose_executor_asset_api_url=${COMPOSE_EXECUTOR_ASSET_API_URL:-https://api.github.com/repos/PastureStack/compose-cli/releases/assets/805738586}
compose_executor_version=${COMPOSE_EXECUTOR_VERSION:-0.14.47}
compose_executor_commit=${COMPOSE_EXECUTOR_COMMIT:-e67eacd34020110a8b1ab635e24d17e34bcc47ca}
compose_executor_archive_sha256=${COMPOSE_EXECUTOR_ARCHIVE_SHA256:-874af05829bb6cc90bb429360bcb09d06d4c27cb6f3dc5d111e9fead45eae797}
compose_executor_binary_sha256=${COMPOSE_EXECUTOR_BINARY_SHA256:-41708b1171a00aa34bcde62dc5df6a0dd34b44d3807e76c52991cdd13bb4f140}
vsphere_cli_bundle_release_base_url=${VSPHERE_CLI_BUNDLE_RELEASE_BASE_URL:-https://github.com/PastureStack/vsphere-cli-bundle/releases/download}
machine_driver_bundle_release_base_url=${MACHINE_DRIVER_BUNDLE_RELEASE_BASE_URL:-https://github.com/PastureStack/machine-driver-bundle/releases/download}
machine_driver_bundle_version=${MACHINE_DRIVER_BUNDLE_VERSION:-0.16.8}
machine_driver_bundle_commit=${MACHINE_DRIVER_BUNDLE_COMMIT:-dd68f951a6c463c5592e2ec743acf62aad85f3c0}
machine_driver_bundle_archive_sha256=${MACHINE_DRIVER_BUNDLE_ARCHIVE_SHA256:-7889717ae42aec9c924e1a8c5a8c09b6e8242465b517f859440b93767b73f178}
machine_driver_binary_sha256=${MACHINE_DRIVER_BINARY_SHA256:-3d78d962b6aa7f4d5bc1b63a9db703710eed4084bd354b233d62528f49d41116}
packet_driver_binary_sha256=${PACKET_DRIVER_BINARY_SHA256:-0f1bf952c603f05c18970ea46be3fc2481544d0f78015aa98339dee1bbbe8764}
[[ "$machine_driver_bundle_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ && "$machine_driver_bundle_commit" =~ ^[0-9a-f]{40}$ ]]
for machine_hash in "$machine_driver_bundle_archive_sha256" "$machine_driver_binary_sha256" "$packet_driver_binary_sha256"; do
[[ "$machine_hash" =~ ^[0-9a-f]{64}$ ]]
done
[[ "$machine_driver_bundle_release_base_url" == https://* ]]
vsphere_cli_bundle_version=${VSPHERE_CLI_BUNDLE_VERSION:-0.55.5}
vsphere_cli_bundle_commit=${VSPHERE_CLI_BUNDLE_COMMIT:-2388ea4277ed63f6b05d0a8003cda7f662daa3d9}
vsphere_cli_bundle_archive_sha256=${VSPHERE_CLI_BUNDLE_ARCHIVE_SHA256:-bc3fda8383746c4d9927eb0d91155df5ca43a689668f07bcc4621bf808bb9ec6}
govc_binary_sha256=${GOVC_BINARY_SHA256:-7319102b997d19d3a1571b36485c52fd881a23338dfa0410546719b6d4719784}
host_provisioner_release_base_url=${HOST_PROVISIONER_RELEASE_BASE_URL:-https://github.com/PastureStack/host-provisioner/releases/download}
host_provisioner_version=${HOST_PROVISIONER_VERSION:-0.39.13}
host_provisioner_commit=${HOST_PROVISIONER_COMMIT:-90ff25ab0b9b258f190ecc83726a12cfb60cbd18}
host_provisioner_archive_sha256=${HOST_PROVISIONER_ARCHIVE_SHA256:-3714d045f0a3e4b9d6f3f8143d47802bd01799bd43b786cdc97adde10d45dd4b}
host_provisioner_binary_sha256=${HOST_PROVISIONER_BINARY_SHA256:-08781731cedc2b3a33cebf1a1f551e8b31f1dc57be386d90de6837b59b0fc972}
secret_delivery_api_release_base_url=${SECRET_DELIVERY_API_RELEASE_BASE_URL:-https://github.com/PastureStack/secret-delivery-api/releases/download}
secret_delivery_api_version=${SECRET_DELIVERY_API_VERSION:-0.3.5}
secret_delivery_api_commit=${SECRET_DELIVERY_API_COMMIT:-b97466fd1cfc11253ca8e095a5016a2d44513f6d}
secret_delivery_api_archive_sha256=${SECRET_DELIVERY_API_ARCHIVE_SHA256:-9fdc7c1cc135047b86b20fc12bf17fe994f22856527158379e36eebb4a291492}
secret_delivery_api_binary_sha256=${SECRET_DELIVERY_API_BINARY_SHA256:-8733f1c3c10f4998ea01724f3586fd45ce013a843620e954c0fc3a950ee212b2}
usage_telemetry_agent_release_base_url=${USAGE_TELEMETRY_AGENT_RELEASE_BASE_URL:-https://github.com/PastureStack/usage-telemetry-agent/releases/download}
usage_telemetry_agent_version=${USAGE_TELEMETRY_AGENT_VERSION:-0.4.5}
usage_telemetry_agent_commit=${USAGE_TELEMETRY_AGENT_COMMIT:-88dd6c690e4e6af43b06ded4ee9b548cb3fd2ab0}
usage_telemetry_agent_archive_sha256=${USAGE_TELEMETRY_AGENT_ARCHIVE_SHA256:-c330191944777ec8f68e812cc3aab2f78daf59d0519ed748dc4f4cbff0425da9}
usage_telemetry_agent_binary_sha256=${USAGE_TELEMETRY_AGENT_BINARY_SHA256:-48e22a6654c058cef7126dfa7c39da4c98a92bb939d37f09536d992f507f92ca}
supported_docker_range='~v1.12.3 || ~v1.13.0 || ~v17.03.0 || ~v17.06.0 || ~v17.09.0 || ~v17.12.0 || ~v18.03.0 || ~v18.06.0 || ~v18.09.0 || ~v19.03.2 || v24.0.9 || >=v29.4.1 <=v29.7.2 || v29.8.0 || v29.10.1'
newest_docker_version=v29.10.1
image=${IMAGE:-pasturestack-validation/server:v1.6.611}
build_options=()
[[ "$revision" =~ ^[0-9a-f]{40}$ ]]
[[ "$server_release_tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$host_api_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$host_api_release_tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$host_api_package_id" =~ ^[0-9a-f]{32}$ ]]
[[ "$node_agent_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$node_agent_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$node_agent_package_id" == "${node_agent_commit:0:32}" ]]
for component_hash in "$host_api_archive_sha256" "$host_api_binary_sha256" "$host_api_apply_sha256" "$engine_readonly_schema_sha256" "$engine_restricted_schema_sha256" "$node_agent_archive_sha256" "$node_agent_binary_sha256" "$node_agent_apply_sha256" "$node_agent_windows_archive_sha256" "$node_agent_windows_binary_sha256" "$node_agent_windows_startup_sha256"; do
[[ "$component_hash" =~ ^[0-9a-f]{64}$ ]]
done
if [[ "$host_api_package_mode" == legacy-repair ]]; then
[[ "$host_api_version" == 0.38.4 ]]
else
[[ "$host_api_package_mode" == producer && "$host_api_commit" =~ ^[0-9a-f]{40}$ ]]
fi
[[ "$source_date_epoch" =~ ^[0-9]+$ ]]
[[ "$orchestration_engine_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$orchestration_engine_artifact_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$orchestration_engine_release_tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$orchestration_engine_artifact" =~ ^[0-9A-Za-z][0-9A-Za-z._-]*$ ]]
[[ "$api_explorer_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$api_explorer_artifact_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$api_explorer_release_tag" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$api_explorer_artifact" =~ ^[0-9A-Za-z][0-9A-Za-z._-]*$ ]]
[[ "$web_console_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$web_console_artifact_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$web_console_release_tag" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$web_console_artifact" =~ ^[0-9A-Za-z][0-9A-Za-z._-]*$ ]]
[[ "$web_console_lock_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$web_console_runtime_sbom_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$web_console_runtime_sbom_artifact" == "web-console-${web_console_release_tag}-runtime.cdx.json" ]]
[[ "$catalog_service_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$catalog_service_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$catalog_service_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$catalog_service_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$catalog_service_sqlite_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$catalog_service_license_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$authentication_service_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$authentication_service_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$authentication_service_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$authentication_service_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$websocket_proxy_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$websocket_proxy_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$websocket_proxy_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$websocket_proxy_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$webhook_automation_service_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$webhook_automation_service_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$webhook_automation_service_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$webhook_automation_service_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$compose_executor_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$compose_executor_commit" =~ ^[0-9a-f]{40}$ ]]
python3 server/security/check_compose_release_identity.py \
--version "$compose_executor_version" --source "$compose_executor_commit" \
--archive "$compose_executor_archive_sha256" --binary "$compose_executor_binary_sha256"
[[ "$compose_executor_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$compose_executor_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$vsphere_cli_bundle_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
[[ "$vsphere_cli_bundle_commit" =~ ^[0-9a-f]{40}$ ]]
[[ "$vsphere_cli_bundle_archive_sha256" =~ ^[0-9a-f]{64}$ ]]
[[ "$govc_binary_sha256" =~ ^[0-9a-f]{64}$ ]]
for component_version in "$host_provisioner_version" "$secret_delivery_api_version" "$usage_telemetry_agent_version"; do
[[ "$component_version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
done
for component_commit in "$host_provisioner_commit" "$secret_delivery_api_commit" "$usage_telemetry_agent_commit"; do
[[ "$component_commit" =~ ^[0-9a-f]{40}$ ]]
done
for component_hash in "$host_provisioner_archive_sha256" "$host_provisioner_binary_sha256" "$secret_delivery_api_archive_sha256" "$secret_delivery_api_binary_sha256" "$usage_telemetry_agent_archive_sha256" "$usage_telemetry_agent_binary_sha256"; do
[[ "$component_hash" =~ ^[0-9a-f]{64}$ ]]
done
for release_base_url in "$host_provisioner_release_base_url" "$secret_delivery_api_release_base_url" "$usage_telemetry_agent_release_base_url"; do
case "$release_base_url" in
https://*) ;;
http://127.0.0.1:*|http://localhost:*) [[ ${PASTURESTACK_ALLOW_LOOPBACK_ARTIFACTS:-0} == 1 ]] ;;
*) echo 'Runtime producer source must use HTTPS or authorized loopback' >&2; exit 1 ;;
esac
done
[[ "$base_image" == ghcr.io/pasturestack/server:v1.6.460@sha256:c855af8aea232dacc5bb6df68e2271d482c68b53c43ab0c108ec19118f5ab403 ]]
for release_base_url in "$orchestration_engine_release_base_url" "$api_explorer_release_base_url" "$web_console_release_base_url" "$catalog_service_release_base_url" "$authentication_service_release_base_url" "$websocket_proxy_release_base_url" "$webhook_automation_service_release_base_url" "$host_api_release_base_url" "$node_agent_release_base_url" "$compose_executor_release_base_url" "$vsphere_cli_bundle_release_base_url"; do
case "$release_base_url" in
https://*) ;;
http://127.0.0.1:*|http://localhost:*)
[[ ${PASTURESTACK_ALLOW_LOOPBACK_ARTIFACTS:-0} == 1 ]]
;;
*)
echo "Release artifact source must use HTTPS or an explicitly allowed loopback address" >&2
exit 1
;;
esac
done
if [[ ${PASTURESTACK_BUILD_NO_CACHE:-0} == 1 ]]; then
build_options+=(--no-cache)
fi
if [[ -n ${PASTURESTACK_COMPONENT_ARTIFACT_DIR:-} ]]; then
component_artifact_mode=local
component_directory=$(realpath -- "$PASTURESTACK_COMPONENT_ARTIFACT_DIR")
[[ "$component_directory" != / && "$component_directory" != "$repo_root" && "$component_directory" != "$server_dir" ]]
test -d "$component_directory"
test -z "$(find "$component_directory" -type l -print -quit)"
component_assets=(
"$orchestration_engine_artifact|$orchestration_engine_artifact_sha256"
"$api_explorer_artifact|$api_explorer_artifact_sha256"
"$web_console_artifact|$web_console_artifact_sha256"
"$web_console_runtime_sbom_artifact|$web_console_runtime_sbom_sha256"
"websocket-proxy-${websocket_proxy_version}-linux-amd64.tar.xz|$websocket_proxy_archive_sha256"
"host-api-${host_api_version}.tar.gz|$host_api_archive_sha256"
"node-agent-${node_agent_version}.tar.gz|$node_agent_archive_sha256"
"node-agent-${node_agent_version}-windows-amd64.zip|$node_agent_windows_archive_sha256"
"per-host-subnet-${per_host_subnet_version}-windows-amd64.zip|$per_host_subnet_archive_sha256"
"host-provisioner-${host_provisioner_version}-linux-amd64.tar.xz|$host_provisioner_archive_sha256"
"secret-delivery-api-${secret_delivery_api_version}-linux-amd64.tar.xz|$secret_delivery_api_archive_sha256"
"usage-telemetry-agent-${usage_telemetry_agent_version}-linux-amd64.tar.xz|$usage_telemetry_agent_archive_sha256"
"catalog-service-${catalog_service_version}.tar.xz|$catalog_service_archive_sha256"
"catalog-service-${catalog_service_version}-LICENSE.txt|$catalog_service_license_sha256"
"authentication-service-${authentication_service_version}-linux-amd64.tar.xz|$authentication_service_archive_sha256"
"webhook-automation-service-${webhook_automation_service_version}-linux-amd64.tar.xz|$webhook_automation_service_archive_sha256"
"compose-executor-${compose_executor_version}-linux-amd64.gz|$compose_executor_archive_sha256"
"vsphere-cli-bundle-${vsphere_cli_bundle_version}-linux-amd64.tar.xz|$vsphere_cli_bundle_archive_sha256"
"machine-driver-bundle-${machine_driver_bundle_version}-linux-amd64.tar.xz|$machine_driver_bundle_archive_sha256"
)
expected_components=$(printf '%s\n' "${component_assets[@]%%|*}" | LC_ALL=C sort)
actual_components=$(find "$component_directory" -mindepth 1 -printf '%P\n' | LC_ALL=C sort)
[[ "$actual_components" == "$expected_components" ]]
for component_asset in "${component_assets[@]}"; do
IFS='|' read -r component_name component_sha256 <<< "$component_asset"
test -s "$component_directory/$component_name" && test -f "$component_directory/$component_name"
printf '%s %s\n' "$component_sha256" "$component_directory/$component_name" | sha256sum -c -
done
build_options+=(--build-context "component_input=$component_directory")
fi
docker buildx build \
"${build_options[@]}" \
--provenance=false \
--load \
--network=host \
--build-arg "BASE_IMAGE=${base_image}" \
--build-arg "SOURCE_DATE_EPOCH=${source_date_epoch}" \
--build-arg "PASTURESTACK_SERVER_REVISION=${revision}" \
--build-arg "SERVER_RELEASE_TAG=${server_release_tag}" \
--build-arg "ORCHESTRATION_ENGINE_VERSION=${orchestration_engine_version}" \
--build-arg "ENGINE_READONLY_SCHEMA_SHA256=${engine_readonly_schema_sha256}" \
--build-arg "ENGINE_RESTRICTED_SCHEMA_SHA256=${engine_restricted_schema_sha256}" \
--build-arg "COMPONENT_ARTIFACT_MODE=${component_artifact_mode}" \
--build-arg "PASTURESTACK_ALLOW_LOOPBACK_ARTIFACTS=${PASTURESTACK_ALLOW_LOOPBACK_ARTIFACTS:-0}" \
--build-arg "HOST_API_VERSION=${host_api_version}" \
--build-arg "HOST_API_PACKAGE_MODE=${host_api_package_mode}" \
--build-arg "HOST_API_RELEASE_BASE_URL=${host_api_release_base_url}" \
--build-arg "HOST_API_RELEASE_TAG=${host_api_release_tag}" \
--build-arg "HOST_API_ARCHIVE_SHA256=${host_api_archive_sha256}" \
--build-arg "HOST_API_PACKAGE_ID=${host_api_package_id}" \
--build-arg "HOST_API_BINARY_SHA256=${host_api_binary_sha256}" \
--build-arg "HOST_API_APPLY_SHA256=${host_api_apply_sha256}" \
--build-arg "HOST_API_COMMIT=${host_api_commit}" \
--build-arg "NODE_AGENT_VERSION=${node_agent_version}" \
--build-arg "NODE_AGENT_RELEASE_BASE_URL=${node_agent_release_base_url}" \
--build-arg "NODE_AGENT_COMMIT=${node_agent_commit}" \
--build-arg "NODE_AGENT_PACKAGE_ID=${node_agent_package_id}" \
--build-arg "NODE_AGENT_ARCHIVE_SHA256=${node_agent_archive_sha256}" \
--build-arg "NODE_AGENT_BINARY_SHA256=${node_agent_binary_sha256}" \
--build-arg "NODE_AGENT_APPLY_SHA256=${node_agent_apply_sha256}" \
--build-arg "NODE_AGENT_WINDOWS_ARCHIVE_SHA256=${node_agent_windows_archive_sha256}" \
--build-arg "NODE_AGENT_WINDOWS_BINARY_SHA256=${node_agent_windows_binary_sha256}" \
--build-arg "NODE_AGENT_WINDOWS_STARTUP_SHA256=${node_agent_windows_startup_sha256}" \
--build-arg "PER_HOST_SUBNET_VERSION=${per_host_subnet_version}" \
--build-arg "PER_HOST_SUBNET_RELEASE_BASE_URL=${per_host_subnet_release_base_url}" \
--build-arg "PER_HOST_SUBNET_PRODUCER_COMMIT=${per_host_subnet_producer_commit}" \
--build-arg "PER_HOST_SUBNET_ARCHIVE_SHA256=${per_host_subnet_archive_sha256}" \
--build-arg "PER_HOST_SUBNET_BINARY_SHA256=${per_host_subnet_binary_sha256}" \
--build-arg "PER_HOST_SUBNET_STARTUP_SHA256=${per_host_subnet_startup_sha256}" \
--build-arg "PER_HOST_SUBNET_PROVENANCE_SHA256=${per_host_subnet_provenance_sha256}" \
--build-arg "ORCHESTRATION_ENGINE_RELEASE_BASE_URL=${orchestration_engine_release_base_url}" \
--build-arg "ORCHESTRATION_ENGINE_ASSET_API_URL=${orchestration_engine_asset_api_url}" \
--build-arg "ORCHESTRATION_ENGINE_RELEASE_TAG=${orchestration_engine_release_tag}" \
--build-arg "ORCHESTRATION_ENGINE_ARTIFACT=${orchestration_engine_artifact}" \
--build-arg "ORCHESTRATION_ENGINE_ARTIFACT_SHA256=${orchestration_engine_artifact_sha256}" \
--build-arg "ORCHESTRATION_ENGINE_COMMIT=${orchestration_engine_commit}" \
--build-arg "API_EXPLORER_RELEASE_BASE_URL=${api_explorer_release_base_url}" \
--build-arg "API_EXPLORER_RELEASE_TAG=${api_explorer_release_tag}" \
--build-arg "API_EXPLORER_ARTIFACT=${api_explorer_artifact}" \
--build-arg "API_EXPLORER_ARTIFACT_SHA256=${api_explorer_artifact_sha256}" \
--build-arg "API_EXPLORER_COMMIT=${api_explorer_commit}" \
--build-arg "WEB_CONSOLE_RELEASE_BASE_URL=${web_console_release_base_url}" \
--build-arg "WEB_CONSOLE_ASSET_API_URL=${web_console_asset_api_url}" \
--build-arg "WEB_CONSOLE_SBOM_ASSET_API_URL=${web_console_sbom_asset_api_url}" \
--build-arg "WEB_CONSOLE_RELEASE_TAG=${web_console_release_tag}" \
--build-arg "WEB_CONSOLE_ARTIFACT=${web_console_artifact}" \
--build-arg "WEB_CONSOLE_ARTIFACT_SHA256=${web_console_artifact_sha256}" \
--build-arg "WEB_CONSOLE_COMMIT=${web_console_commit}" \
--build-arg "WEB_CONSOLE_LOCK_SHA256=${web_console_lock_sha256}" \
--build-arg "WEB_CONSOLE_RUNTIME_SBOM_ARTIFACT=${web_console_runtime_sbom_artifact}" \
--build-arg "WEB_CONSOLE_RUNTIME_SBOM_SHA256=${web_console_runtime_sbom_sha256}" \
--build-arg "CATALOG_SERVICE_RELEASE_BASE_URL=${catalog_service_release_base_url}" \
--build-arg "CATALOG_SERVICE_VERSION=${catalog_service_version}" \
--build-arg "CATALOG_SERVICE_COMMIT=${catalog_service_commit}" \
--build-arg "CATALOG_SERVICE_ARCHIVE_SHA256=${catalog_service_archive_sha256}" \
--build-arg "CATALOG_SERVICE_BINARY_SHA256=${catalog_service_binary_sha256}" \
--build-arg "CATALOG_SERVICE_SQLITE_BINARY_SHA256=${catalog_service_sqlite_binary_sha256}" \
--build-arg "CATALOG_SERVICE_LICENSE_SHA256=${catalog_service_license_sha256}" \
--build-arg "AUTHENTICATION_SERVICE_RELEASE_BASE_URL=${authentication_service_release_base_url}" \
--build-arg "AUTHENTICATION_SERVICE_VERSION=${authentication_service_version}" \
--build-arg "AUTHENTICATION_SERVICE_COMMIT=${authentication_service_commit}" \
--build-arg "AUTHENTICATION_SERVICE_ARCHIVE_SHA256=${authentication_service_archive_sha256}" \
--build-arg "AUTHENTICATION_SERVICE_BINARY_SHA256=${authentication_service_binary_sha256}" \
--build-arg "WEBSOCKET_PROXY_RELEASE_BASE_URL=${websocket_proxy_release_base_url}" \
--build-arg "WEBSOCKET_PROXY_VERSION=${websocket_proxy_version}" \
--build-arg "WEBSOCKET_PROXY_COMMIT=${websocket_proxy_commit}" \
--build-arg "WEBSOCKET_PROXY_ARCHIVE_SHA256=${websocket_proxy_archive_sha256}" \
--build-arg "WEBSOCKET_PROXY_BINARY_SHA256=${websocket_proxy_binary_sha256}" \
--build-arg "WEBHOOK_AUTOMATION_SERVICE_RELEASE_BASE_URL=${webhook_automation_service_release_base_url}" \
--build-arg "WEBHOOK_AUTOMATION_SERVICE_VERSION=${webhook_automation_service_version}" \
--build-arg "WEBHOOK_AUTOMATION_SERVICE_COMMIT=${webhook_automation_service_commit}" \
--build-arg "WEBHOOK_AUTOMATION_SERVICE_ARCHIVE_SHA256=${webhook_automation_service_archive_sha256}" \
--build-arg "WEBHOOK_AUTOMATION_SERVICE_BINARY_SHA256=${webhook_automation_service_binary_sha256}" \
--build-arg "COMPOSE_EXECUTOR_RELEASE_BASE_URL=${compose_executor_release_base_url}" \
--build-arg "COMPOSE_EXECUTOR_ASSET_API_URL=${compose_executor_asset_api_url}" \
--build-arg "COMPOSE_EXECUTOR_VERSION=${compose_executor_version}" \
--build-arg "COMPOSE_EXECUTOR_COMMIT=${compose_executor_commit}" \
--build-arg "COMPOSE_EXECUTOR_ARCHIVE_SHA256=${compose_executor_archive_sha256}" \
--build-arg "COMPOSE_EXECUTOR_BINARY_SHA256=${compose_executor_binary_sha256}" \
--build-arg "VSPHERE_CLI_BUNDLE_RELEASE_BASE_URL=${vsphere_cli_bundle_release_base_url}" \
--build-arg "MACHINE_DRIVER_BUNDLE_RELEASE_BASE_URL=${machine_driver_bundle_release_base_url}" \
--build-arg "MACHINE_DRIVER_BUNDLE_VERSION=${machine_driver_bundle_version}" \
--build-arg "MACHINE_DRIVER_BUNDLE_COMMIT=${machine_driver_bundle_commit}" \
--build-arg "MACHINE_DRIVER_BUNDLE_ARCHIVE_SHA256=${machine_driver_bundle_archive_sha256}" \
--build-arg "MACHINE_DRIVER_BINARY_SHA256=${machine_driver_binary_sha256}" \
--build-arg "PACKET_DRIVER_BINARY_SHA256=${packet_driver_binary_sha256}" \
--build-arg "VSPHERE_CLI_BUNDLE_VERSION=${vsphere_cli_bundle_version}" \
--build-arg "VSPHERE_CLI_BUNDLE_COMMIT=${vsphere_cli_bundle_commit}" \
--build-arg "VSPHERE_CLI_BUNDLE_ARCHIVE_SHA256=${vsphere_cli_bundle_archive_sha256}" \
--build-arg "GOVC_BINARY_SHA256=${govc_binary_sha256}" \
--build-arg "HOST_PROVISIONER_RELEASE_BASE_URL=${host_provisioner_release_base_url}" \
--build-arg "HOST_PROVISIONER_VERSION=${host_provisioner_version}" \
--build-arg "HOST_PROVISIONER_COMMIT=${host_provisioner_commit}" \
--build-arg "HOST_PROVISIONER_ARCHIVE_SHA256=${host_provisioner_archive_sha256}" \
--build-arg "HOST_PROVISIONER_BINARY_SHA256=${host_provisioner_binary_sha256}" \
--build-arg "SECRET_DELIVERY_API_RELEASE_BASE_URL=${secret_delivery_api_release_base_url}" \
--build-arg "SECRET_DELIVERY_API_VERSION=${secret_delivery_api_version}" \
--build-arg "SECRET_DELIVERY_API_COMMIT=${secret_delivery_api_commit}" \
--build-arg "SECRET_DELIVERY_API_ARCHIVE_SHA256=${secret_delivery_api_archive_sha256}" \
--build-arg "SECRET_DELIVERY_API_BINARY_SHA256=${secret_delivery_api_binary_sha256}" \
--build-arg "USAGE_TELEMETRY_AGENT_RELEASE_BASE_URL=${usage_telemetry_agent_release_base_url}" \
--build-arg "USAGE_TELEMETRY_AGENT_VERSION=${usage_telemetry_agent_version}" \
--build-arg "USAGE_TELEMETRY_AGENT_COMMIT=${usage_telemetry_agent_commit}" \
--build-arg "USAGE_TELEMETRY_AGENT_ARCHIVE_SHA256=${usage_telemetry_agent_archive_sha256}" \
--build-arg "USAGE_TELEMETRY_AGENT_BINARY_SHA256=${usage_telemetry_agent_binary_sha256}" \
--build-arg "SUPPORTED_DOCKER_RANGE=${supported_docker_range}" \
--build-arg "NEWEST_DOCKER_VERSION=${newest_docker_version}" \
--tag "$image" \
--file server/Dockerfile.web-compose-release \
server
test "$(docker image inspect "$image" \
--format '{{index .Config.Labels "org.opencontainers.image.version"}}')" = \
"$server_release_tag"
test "$(docker image inspect "$image" \
--format '{{index .Config.Labels "org.opencontainers.image.revision"}}')" = \
"$revision"
test "$(docker image inspect "$image" \
--format '{{index .Config.Labels "org.opencontainers.image.base.name"}}')" = \
ghcr.io/pasturestack/server:v1.6.460
test "$(docker image inspect "$image" \
--format '{{index .Config.Labels "org.opencontainers.image.base.digest"}}')" = \
sha256:c855af8aea232dacc5bb6df68e2271d482c68b53c43ab0c108ec19118f5ab403
image_environment=$(docker image inspect "$image" \
--format '{{range .Config.Env}}{{println .}}{{end}}')
for marker in \
CATTLE_RANCHER_SERVER_VERSION="${server_release_tag}" \
CATTLE_RANCHER_CLI_VERSION=v0.6.21 \
PASTURESTACK_CLI_RELEASE_BASE_URL=https://github.com/PastureStack/cli/releases/download \
CATTLE_API_UI_VERSION=1.1.22 \
CATTLE_CATTLE_VERSION="${orchestration_engine_release_tag}" \
DEFAULT_CATTLE_AGENT_IMAGE=ghcr.io/pasturestack/node-agent:v1.2.37 \
DEFAULT_CATTLE_BOOTSTRAP_REQUIRED_IMAGE=ghcr.io/pasturestack/node-agent:v1.2.37 \
DEFAULT_CATTLE_LB_INSTANCE_IMAGE=ghcr.io/pasturestack/load-balancer-service:v0.9.36 \
DEFAULT_CATTLE_LB_INSTANCE_IMAGE_UUID=docker:ghcr.io/pasturestack/load-balancer-service:v0.9.36 \
RC16_GO_AGENT_VERSION="${node_agent_version}" \
RC16_PER_HOST_SUBNET_VERSION="${per_host_subnet_version}" \
PASTURESTACK_PER_HOST_SUBNET_PRODUCER_COMMIT="${per_host_subnet_producer_commit}" \
PASTURESTACK_PER_HOST_SUBNET_ARCHIVE_SHA256="${per_host_subnet_archive_sha256}" \
PASTURESTACK_PER_HOST_SUBNET_PROVENANCE_SHA256="${per_host_subnet_provenance_sha256}" \
RC16_WINDOWS_AGENT_VERSION="${node_agent_version}" \
RC16_HOST_API_VERSION="${host_api_version}" \
PASTURESTACK_HOST_API_PACKAGE_ID="${host_api_package_id}" \
PASTURESTACK_HOST_API_COMMIT="${host_api_commit}" \
PASTURESTACK_HOST_API_ARCHIVE_SHA256="${host_api_archive_sha256}" \
RC16_AGENT_PACKAGE_URL="/usr/share/cattle/artifacts/node-agent-${node_agent_version}.tar.gz" \
PASTURESTACK_NODE_AGENT_VERSION="${node_agent_version}" \
PASTURESTACK_NODE_AGENT_COMMIT="${node_agent_commit}" \
PASTURESTACK_NODE_AGENT_ARCHIVE_SHA256="${node_agent_archive_sha256}" \
PASTURESTACK_ORCHESTRATION_ENGINE_COMMIT="${orchestration_engine_commit}" \
PASTURESTACK_ORCHESTRATION_ENGINE_ARTIFACT_SHA256="${orchestration_engine_artifact_sha256}" \
PASTURESTACK_RUNTIME_GO_VERSION=1.27.4 \
PASTURESTACK_UBUNTU_SECURITY_REFRESH=2026-10-23 \
PASTURESTACK_CURL_SECURITY_SNAPSHOT=20261002T000000Z \
PASTURESTACK_CURL_PACKAGE_VERSION=8.18.0-1ubuntu2.8 \
PASTURESTACK_GLIBC_CVE_2026_18374_FIX=official-ubuntu-package \
PASTURESTACK_GLIBC_OFFICIAL_PACKAGE_VERSION=2.43-2ubuntu2.7 \
PASTURESTACK_GLIBC_PACKAGE_VERSION=2.43-2ubuntu2.7 \
PASTURESTACK_PERL_PACKAGE_VERSION=5.40.1-7ubuntu0.4 \
PASTURESTACK_LIBDBI_PERL_PACKAGE_VERSION=1.647-1ubuntu0.26.04.4 \
PASTURESTACK_FREETYPE_PACKAGE_VERSION=2.14.2+dfsg-1ubuntu0.2 \
PASTURESTACK_LIBPNG_PACKAGE_VERSION=1.6.57-1ubuntu0.1 \
PASTURESTACK_BROTLI_PACKAGE_VERSION=1.2.0-3ubuntu0.1 \
PASTURESTACK_COREUTILS_PROVIDER=gnu \
PASTURESTACK_COREUTILS_UNIQ_VERSION=9.11 \
PASTURESTACK_COREUTILS_UNIQ_FIX=d64e35a8a4c0e4608321433e0d84d917e4e36371 \
PASTURESTACK_ZLIB_VERSION=1.3.1 \
PASTURESTACK_ZLIB_PACKAGE_VERSION=1:1.3.dfsg+really1.3.1-1ubuntu3.2 \
PASTURESTACK_OPENSSL_VERSION=3.5.5 \
PASTURESTACK_OPENSSL_PACKAGE_VERSION=3.5.5-1ubuntu3.7 \
PASTURESTACK_OPENSSL_SECURITY_SNAPSHOT=20261002T000000Z \
PASTURESTACK_DIFF3_HARDENING=removed \
PASTURESTACK_SSH_CLIENT_HARDENING=client-removed \
PASTURESTACK_PRIVILEGED_MOUNT_HELPERS=removed \
PASTURESTACK_RUNTIME_USER_MAPPING=removed \
PASTURESTACK_GPG_VERIFIER=removed \
PASTURESTACK_CONTAINER_SOURCE_BUILD_MODE=removed \
PASTURESTACK_CONSOLE_BROKER_GO_VERSION=1.27.4 \
PASTURESTACK_API_EXPLORER_PACKAGE=1.1.22 \
PASTURESTACK_API_EXPLORER_COMMIT="${api_explorer_commit}" \
PASTURESTACK_API_EXPLORER_ARTIFACT_SHA256="${api_explorer_artifact_sha256}" \
PASTURESTACK_WEB_CONSOLE_PACKAGE="${web_console_release_tag}" \
PASTURESTACK_WEB_CONSOLE_COMMIT="${web_console_commit}" \
PASTURESTACK_WEB_CONSOLE_ARTIFACT_SHA256="${web_console_artifact_sha256}" \
PASTURESTACK_WEB_CONSOLE_LOCK_SHA256="${web_console_lock_sha256}" \
PASTURESTACK_WEB_CONSOLE_RUNTIME_SBOM_SHA256="${web_console_runtime_sbom_sha256}" \
PASTURESTACK_AUTHENTICATION_SERVICE_VERSION="${authentication_service_version}" \
PASTURESTACK_AUTHENTICATION_SERVICE_COMMIT="${authentication_service_commit}" \
PASTURESTACK_AUTHENTICATION_SERVICE_ARCHIVE_SHA256="${authentication_service_archive_sha256}" \
PASTURESTACK_AUTHENTICATION_SERVICE_BINARY_SHA256="${authentication_service_binary_sha256}" \
PASTURESTACK_CATALOG_SERVICE_VERSION="${catalog_service_version}" \
PASTURESTACK_CATALOG_SERVICE_COMMIT="${catalog_service_commit}" \
PASTURESTACK_CATALOG_SERVICE_ARCHIVE_SHA256="${catalog_service_archive_sha256}" \
PASTURESTACK_CATALOG_SERVICE_BINARY_SHA256="${catalog_service_binary_sha256}" \
PASTURESTACK_CATALOG_SERVICE_SQLITE_BINARY_SHA256="${catalog_service_sqlite_binary_sha256}" \
PASTURESTACK_COMPOSE_EXECUTOR_VERSION="${compose_executor_version}" \
PASTURESTACK_COMPOSE_EXECUTOR_COMMIT="${compose_executor_commit}" \
PASTURESTACK_COMPOSE_EXECUTOR_ARCHIVE_SHA256="${compose_executor_archive_sha256}" \
PASTURESTACK_COMPOSE_EXECUTOR_BINARY_SHA256="${compose_executor_binary_sha256}" \
PASTURESTACK_HOST_PROVISIONER_VERSION="${host_provisioner_version}" \
PASTURESTACK_HOST_PROVISIONER_COMMIT="${host_provisioner_commit}" \
PASTURESTACK_HOST_PROVISIONER_ARCHIVE_SHA256="${host_provisioner_archive_sha256}" \
PASTURESTACK_HOST_PROVISIONER_BINARY_SHA256="${host_provisioner_binary_sha256}" \
PASTURESTACK_SECRET_DELIVERY_API_VERSION="${secret_delivery_api_version}" \
PASTURESTACK_SECRET_DELIVERY_API_COMMIT="${secret_delivery_api_commit}" \
PASTURESTACK_SECRET_DELIVERY_API_ARCHIVE_SHA256="${secret_delivery_api_archive_sha256}" \
PASTURESTACK_SECRET_DELIVERY_API_BINARY_SHA256="${secret_delivery_api_binary_sha256}" \
PASTURESTACK_USAGE_TELEMETRY_AGENT_VERSION="${usage_telemetry_agent_version}" \
PASTURESTACK_USAGE_TELEMETRY_AGENT_COMMIT="${usage_telemetry_agent_commit}" \
PASTURESTACK_USAGE_TELEMETRY_AGENT_ARCHIVE_SHA256="${usage_telemetry_agent_archive_sha256}" \
PASTURESTACK_USAGE_TELEMETRY_AGENT_BINARY_SHA256="${usage_telemetry_agent_binary_sha256}" \
PASTURESTACK_WEBHOOK_AUTOMATION_SERVICE_VERSION="${webhook_automation_service_version}" \
PASTURESTACK_WEBHOOK_AUTOMATION_SERVICE_COMMIT="${webhook_automation_service_commit}" \
PASTURESTACK_WEBHOOK_AUTOMATION_SERVICE_ARCHIVE_SHA256="${webhook_automation_service_archive_sha256}" \
PASTURESTACK_WEBHOOK_AUTOMATION_SERVICE_BINARY_SHA256="${webhook_automation_service_binary_sha256}" \
PASTURESTACK_WEBSOCKET_PROXY_VERSION="${websocket_proxy_version}" \
PASTURESTACK_WEBSOCKET_PROXY_COMMIT="${websocket_proxy_commit}" \
PASTURESTACK_WEBSOCKET_PROXY_ARCHIVE_SHA256="${websocket_proxy_archive_sha256}" \
PASTURESTACK_WEBSOCKET_PROXY_BINARY_SHA256="${websocket_proxy_binary_sha256}" \
PASTURESTACK_VSPHERE_CLI_BUNDLE_VERSION="${vsphere_cli_bundle_version}" \
PASTURESTACK_VSPHERE_CLI_BUNDLE_COMMIT="${vsphere_cli_bundle_commit}" \
PASTURESTACK_VSPHERE_CLI_BUNDLE_ARCHIVE_SHA256="${vsphere_cli_bundle_archive_sha256}" \
PASTURESTACK_GOVC_BINARY_SHA256="${govc_binary_sha256}" \
PASTURESTACK_MACHINE_DRIVER_BUNDLE_VERSION="${machine_driver_bundle_version}" \
PASTURESTACK_MACHINE_DRIVER_BUNDLE_COMMIT="${machine_driver_bundle_commit}" \
PASTURESTACK_MACHINE_DRIVER_BUNDLE_ARCHIVE_SHA256="${machine_driver_bundle_archive_sha256}" \
PASTURESTACK_MACHINE_DRIVER_BINARY_SHA256="${machine_driver_binary_sha256}" \
PASTURESTACK_PACKET_DRIVER_BINARY_SHA256="${packet_driver_binary_sha256}" \
PASTURESTACK_DOCKER_SUPPORT_POLICY=2026-08-28 \
PASTURESTACK_CATALOG_COMMIT=e7aa3a4f91be9b88f2d62ebdbdd89483b2bab8cb \
'DEFAULT_CATTLE_CATALOG_URL={"catalogs":{"pasturestack":{"url":"https://github.com/PastureStack/catalog-templates.git","branch":"main","pinnedCommit":"e7aa3a4f91be9b88f2d62ebdbdd89483b2bab8cb"}}}' \
'CATTLE_CATALOG_URL={"catalogs":{"pasturestack":{"url":"https://github.com/PastureStack/catalog-templates.git","branch":"main","pinnedCommit":"e7aa3a4f91be9b88f2d62ebdbdd89483b2bab8cb"}}}'; do
test "$(grep -Fxc "$marker" <<<"$image_environment")" = 1
done
docker run --rm --network none --entrypoint sh "$image" -eu -c '
. /usr/share/cattle/env_vars
test -z "${CATTLE_LB_INSTANCE_IMAGE:-}${CATTLE_LB_INSTANCE_IMAGE_UUID:-}${RC16_LB_INSTANCE_IMAGE:-}${RC16_LB_INSTANCE_IMAGE_UUID:-}"
test "$DEFAULT_CATTLE_LB_INSTANCE_IMAGE" = ghcr.io/pasturestack/load-balancer-service:v0.9.36
test "$DEFAULT_CATTLE_LB_INSTANCE_IMAGE_UUID" = docker:ghcr.io/pasturestack/load-balancer-service:v0.9.36
test "$(grep -Fxc " image: ghcr.io/pasturestack/load-balancer-service:v0.9.36" /usr/share/cattle/compose/docker-compose.yml)" = 2
'
docker run --rm --entrypoint bash "$image" -lc '
set -euo pipefail
for package in libc6 libc-bin libc-gconv-modules-extra; do
test "$(dpkg-query -W -f='"'"'${Version}'"'"' "${package}")" = "2.43-2ubuntu2.7"
done
for package in libperl5.40 perl perl-base perl-modules-5.40; do
test "$(dpkg-query -W -f='"'"'${Version}'"'"' "${package}")" = "5.40.1-7ubuntu0.4"
done
active_entrypoints=(
/usr/bin/entry
/usr/share/cattle/cattle.sh
/usr/share/cattle/cattle.jar
/service/cattle/run
/service/mysql/run
/service/console-broker/run
/service/graphite_exporter/run
/usr/bin/authentication-service
/usr/bin/catalog-service
/usr/bin/compose-executor
/usr/bin/host-provisioner
/usr/bin/websocket-proxy
)
for entrypoint in "${active_entrypoints[@]}"; do
test -f "${entrypoint}"
done
if grep -a -n -E '"'"'(^#!.*perl|/usr/bin/perl|/usr/bin/env[[:space:]]+perl|(^|[[:space:]])perl([[:space:]]|$)|pack_ip_mreq_source|Storable|SX_HOOK|,ccs=)'"'"' \
"${active_entrypoints[@]}"; then
echo "A Server runtime entrypoint reaches a reviewed Perl or glibc fopen mode vulnerability" >&2
exit 1
fi
'
docker run --rm \
--env "HOST_API_VERSION=${host_api_version}" \
--env "HOST_API_PACKAGE_MODE=${host_api_package_mode}" \
--env "HOST_API_ARCHIVE_SHA256=${host_api_archive_sha256}" \
--env "NODE_AGENT_VERSION=${node_agent_version}" \
--env "NODE_AGENT_ARCHIVE_SHA256=${node_agent_archive_sha256}" \
--env "NODE_AGENT_WINDOWS_ARCHIVE_SHA256=${node_agent_windows_archive_sha256}" \
--env "PER_HOST_SUBNET_VERSION=${per_host_subnet_version}" \
--env "PER_HOST_SUBNET_ARCHIVE_SHA256=${per_host_subnet_archive_sha256}" \
--entrypoint sh "$image" -eu -c '
printf "%s\n" \
"$NODE_AGENT_ARCHIVE_SHA256 /usr/share/cattle/artifacts/node-agent-${NODE_AGENT_VERSION}.tar.gz" \
"$NODE_AGENT_WINDOWS_ARCHIVE_SHA256 /usr/share/cattle/artifacts/node-agent-${NODE_AGENT_VERSION}-windows-amd64.zip" | sha256sum -c -
test "$(readlink /usr/share/cattle/artifacts/go-agent.tar.gz)" = "node-agent-${NODE_AGENT_VERSION}.tar.gz"
. /usr/share/cattle/env_vars
printf "%s %s\n" "$PER_HOST_SUBNET_ARCHIVE_SHA256" "/usr/share/cattle/artifacts/per-host-subnet-${PER_HOST_SUBNET_VERSION}-windows-amd64.zip" | sha256sum -c -
test "$CATTLE_AGENT_PACKAGE_PER_HOST_SUBNET_URL" = "/usr/share/cattle/artifacts/per-host-subnet-${PER_HOST_SUBNET_VERSION}-windows-amd64.zip"
test "$DEFAULT_CATTLE_AGENT_PACKAGE_PER_HOST_SUBNET_URL" = "$CATTLE_AGENT_PACKAGE_PER_HOST_SUBNET_URL"
test ! -e /usr/share/cattle/artifacts/per-host-subnet-0.2.4-windows-amd64.zip
test "$DEFAULT_CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL" = "/usr/share/cattle/artifacts/node-agent-${NODE_AGENT_VERSION}.tar.gz"
test "$CATTLE_AGENT_PACKAGE_PYTHON_AGENT_URL" = "/usr/share/cattle/artifacts/node-agent-${NODE_AGENT_VERSION}.tar.gz"
test "$DEFAULT_CATTLE_AGENT_PACKAGE_WINDOWS_AGENT_URL" = "/usr/share/cattle/artifacts/node-agent-${NODE_AGENT_VERSION}-windows-amd64.zip"
test "$CATTLE_AGENT_PACKAGE_WINDOWS_AGENT_URL" = "$DEFAULT_CATTLE_AGENT_PACKAGE_WINDOWS_AGENT_URL"
host_archive="/usr/share/cattle/artifacts/host-api-${HOST_API_VERSION}.tar.gz"
test -s "$host_archive"
test "$(readlink /usr/share/cattle/artifacts/host-api.tar.gz)" = "host-api-${HOST_API_VERSION}.tar.gz"
test "$DEFAULT_CATTLE_AGENT_PACKAGE_HOST_API_URL" = "$host_archive"
test "$CATTLE_AGENT_PACKAGE_HOST_API_URL" = "$host_archive"
# Producer packages are installed byte-for-byte. The compatibility-only
# 518 repair intentionally changes its archive checksum, not its binaries.
if [ "$HOST_API_PACKAGE_MODE" = producer ]; then
printf "%s %s\n" "$HOST_API_ARCHIVE_SHA256" "$host_archive" | sha256sum -c -
fi
'
image_catalog_license=$(docker run --rm --entrypoint sha256sum "$image" \
/usr/share/licenses/pasturestack/catalog-service/LICENSE.txt)
test "$image_catalog_license" = \
"${catalog_service_license_sha256} /usr/share/licenses/pasturestack/catalog-service/LICENSE.txt"
image_orchestration=$(docker run --rm --entrypoint sha256sum "$image" \
/usr/share/cattle/cattle.jar)
test "$image_orchestration" = \
"${orchestration_engine_artifact_sha256} /usr/share/cattle/cattle.jar"
docker run --rm \
--env "ORCHESTRATION_ENGINE_VERSION=${orchestration_engine_version}" \
--env "ENGINE_READONLY_SCHEMA_SHA256=${engine_readonly_schema_sha256}" \
--env "ENGINE_RESTRICTED_SCHEMA_SHA256=${engine_restricted_schema_sha256}" \
--entrypoint bash "$image" -lc '
set -euo pipefail
engine_hash=$(sha256sum /usr/share/cattle/cattle.jar | awk "{print \$1}")
web_root=$(readlink -f /usr/share/cattle/war)
test "${web_root}" = "/usr/share/cattle/${engine_hash}"
resources_jar=$(find "${web_root}/WEB-INF/lib" -maxdepth 1 -type f \
-name "cattle-resources-${ORCHESTRATION_ENGINE_VERSION}.jar" -print -quit)
test -n "${resources_jar}"
test "$(unzip -p "${resources_jar}" schema/v1/readonly.ser | sha256sum | cut -d" " -f1)" = \
"${ENGINE_READONLY_SCHEMA_SHA256}"
test "$(unzip -p "${resources_jar}" schema/v1/restricted.ser | sha256sum | cut -d" " -f1)" = \
"${ENGINE_RESTRICTED_SCHEMA_SHA256}"
unzip -p "${resources_jar}" db/core-124.xml |
grep -F "pasturestack-catalog-pinned-commit" >/dev/null
unzip -p "${resources_jar}" schema/service/service-auth.json |
grep -F "\"subscribe\": \"cr\"" >/dev/null
unzip -p "${resources_jar}" db/core-125.xml |
grep -F "pasturestack-credential-secret-value-mediumtext" >/dev/null
app_config_jar=$(find "${web_root}/WEB-INF/lib" -maxdepth 1 -type f \
-name "cattle-app-config-*.jar" -print -quit)
test -n "${app_config_jar}"
unzip -p "${app_config_jar}" META-INF/cattle/iaas-api/defaults.properties |
grep -Fx "auth.service.external.id.types=github_user,github_org,github_team,shibboleth_user,shibboleth_group,ldap_user,ldap_group,oidc_user,oidc_group" >/dev/null
unzip -p "${app_config_jar}" META-INF/cattle/api-server/defaults.properties |
grep -Fx "supported.docker.range=~v1.12.3 || ~v1.13.0 || ~v17.03.0 || ~v17.06.0 || ~v17.09.0 || ~v17.12.0 || ~v18.03.0 || ~v18.06.0 || ~v18.09.0 || ~v19.03.2 || v24.0.9 || >=v29.4.1 <=v29.7.2 || v29.8.0 || v29.10.1" >/dev/null
unzip -p "${app_config_jar}" META-INF/cattle/api-server/defaults.properties |
grep -Fx "newest.docker.version=v29.10.1" >/dev/null
'
wrapper_paths=(
/usr/bin/websocket-proxy
/usr/bin/authentication-service
/usr/bin/rancher-auth-service
/usr/bin/catalog-service
/usr/bin/rancher-catalog-service
/usr/bin/compose-executor
/usr/bin/rancher-compose-executor
/usr/bin/host-provisioner
/usr/bin/go-machine-service
)
launcher_wrapper_sha256=$(sha256sum server/patches/websocket-proxy-wrapper.sh | awk '{print $1}')
image_wrappers=$(docker run --rm --entrypoint sha256sum "$image" \
"${wrapper_paths[@]}")
expected_image_wrappers=$(
for wrapper_path in "${wrapper_paths[@]}"; do
printf '%s %s\n' "$launcher_wrapper_sha256" "$wrapper_path"
done
)
if [[ "$image_wrappers" != "$expected_image_wrappers" ]]; then
printf 'SERVER_LAUNCHER_WRAPPER_INVALID expected_sha256=%s\n%s\n' \
"$launcher_wrapper_sha256" "$image_wrappers" >&2
exit 1
fi
docker run --rm --entrypoint sh "$image" -ec 'for path do test -x "$path"; done' sh "${wrapper_paths[@]}"
websocket_wrapper_sha256=$(sha256sum server/patches/websocket-proxy-wrapper.sh | awk '{print $1}')
test "$(docker run --rm --entrypoint sha256sum "$image" /usr/bin/websocket-proxy)" = \
"${websocket_wrapper_sha256} /usr/bin/websocket-proxy"
docker run --rm --entrypoint bash "$image" -lc 'test -x /usr/bin/websocket-proxy'
docker run --rm --env "WEB_CONSOLE_RELEASE_TAG=${web_console_release_tag}" --entrypoint bash "$image" -lc '
set -euo pipefail
web_root=$(readlink -f /usr/share/cattle/war)
test "$(cat "${web_root}/VERSION.txt")" = "${WEB_CONSOLE_RELEASE_TAG}"
grep -Fx "{\"ceiling\":\"enabled\",\"initialMode\":\"off\"}" "${web_root}/webmcp-build.json"
echo "${PASTURESTACK_WEB_CONSOLE_RUNTIME_SBOM_SHA256} /usr/share/licenses/pasturestack/web-console/runtime.cdx.json" | sha256sum -c -
test "$(find "${web_root}/translations" -maxdepth 1 -type f -name "*.json" | wc -l)" -eq 13
test ! -e "${web_root}/translations/none.json"
test -z "$(find "${web_root}" -type f -name "*.map" -print -quit)"
ui_entry=$(find "${web_root}/assets" -maxdepth 1 -type f -name "ui-*.js" -print -quit)
test -n "${ui_entry}"
grep -aF "growl-mount" "${ui_entry}" >/dev/null
grep -aF "createIdentity" "${web_root}"/assets/*.js >/dev/null
grep -aF "hasRecord" "${web_root}"/assets/*.js >/dev/null
grep -aF "dropdown-menu project-menu" "${ui_entry}" >/dev/null
! grep -aF "dropdown-menu-end project-menu" "${ui_entry}" >/dev/null
grep -aF "pod-empty-message text-center text-muted" "${ui_entry}" >/dev/null
for marker in \
audit-log-filter-panel \
service-log-filter-panel \
service.instance.restart \
created_gte \
created_lte \
authenticatedAsAccountId \
interactionChannel \
eventTypeOperator \
descriptionOperator \
audit-date-picker \
openDateCalendar \
data-bs-display \
basic-dropdown-wormhole \
oidcAccessPolicyUpdate \
LocalRecoveryRequired \
MfaConfirmationRequired \
InvalidAllowedIdentity \
resourceLoadError.stackUnavailable \
resourceLoadError.serviceUnavailable \
resourceLoadError.serviceFailed \
resourceLoadError.secretsUnavailable \
resourceLoadError.secretsFailed \
hostsPage.permissionDenied \
containersPage.permissionDenied \
hookPage.receiver.permissionDenied \
hookPage.receiver.editPermissionDenied \
routePermission.title \
routePermission.denied \
routePermission.updateDenied \
_notlike; do
grep -aF "${marker}" "${ui_entry}" >/dev/null
done
grep -aF "ember-basic-dropdown-wormhole" "${web_root}"/assets/*.js >/dev/null
for theme_asset in ui-light.css ui-light.rtl.css ui-dark.css ui-dark.rtl.css; do
grep -F -A 2 ".jGrowl.top-right {" "${web_root}/assets/${theme_asset}" | grep -Fx " top: 45px;" >/dev/null
grep -F -A 4 ".jGrowl .jGrowl-closer {" "${web_root}/assets/${theme_asset}" | grep -Fx " max-width: calc(100vw - 20px);" >/dev/null
grep -F -A 5 "#growl-mount .jGrowl.top-right {" "${web_root}/assets/${theme_asset}" | grep -Fx " position: static;" >/dev/null
grep -F -A 3 ".pods .pod-empty-message {" "${web_root}/assets/${theme_asset}" | grep -Fx " white-space: normal;" >/dev/null
grep -F -A 3 ".pods .pod-empty-message {" "${web_root}/assets/${theme_asset}" | grep -Fx " overflow-wrap: anywhere;" >/dev/null
grep -F -A 18 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${web_root}/assets/${theme_asset}" | grep -Fx " max-width: calc(100vw - 68px);" >/dev/null
grep -F -A 18 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${web_root}/assets/${theme_asset}" | grep -Fx " overflow-wrap: anywhere;" >/dev/null
grep -F ".audit-log-filter-panel" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F ".audit-log-filter-primary-grid" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F ".audit-log-filter-condition" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F ".audit-date-calendar" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F "footer .footer-dropdown .dropdown-menu" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F ".form-resources .resource-host-guidance" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F ".form-resources .resource-advanced-content.resource-advanced-grid" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F "table.audit-log-results-table[data-resizable-columns=true]:not(.table-column-measuring) > thead > th.audit-log-auth-ip-heading" "${web_root}/assets/${theme_asset}" >/dev/null
grep -F -A 6 "table.audit-log-results-table[data-resizable-columns=true]:not(.table-column-measuring) > thead > th.audit-log-auth-ip-heading" "${web_root}/assets/${theme_asset}" | grep -F "white-space: normal;" >/dev/null
done
for theme in light dark; do
normal_css="${web_root}/assets/ui-${theme}.css"
rtl_css="${web_root}/assets/ui-${theme}.rtl.css"
grep -F -A 8 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${normal_css}" | grep -Fx " left: 0;" >/dev/null
grep -F -A 8 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${normal_css}" | grep -Fx " right: auto;" >/dev/null
grep -F -A 8 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${rtl_css}" | grep -Fx " right: 0;" >/dev/null
grep -F -A 8 "HEADER NAV.navbar .project-btn .dropdown-menu.project-menu {" "${rtl_css}" | grep -Fx " left: auto;" >/dev/null
grep -F -A 4 "html[dir=rtl] .fail-whale .error {" "${rtl_css}" | grep -Fx " direction: rtl;" >/dev/null
grep -F -A 4 "html[dir=rtl] .fail-whale .error {" "${rtl_css}" | grep -Fx " text-align: right;" >/dev/null
done
grep -F "篩選稽核日誌" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"formResources.addUlimit\":\"新增限制\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"hostsPage.permissionDenied\":\"您沒有權限在此環境中新增主機。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"routePermission.title\":\"無法執行此操作\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"routePermission.denied\":\"您沒有權限在此環境中建立此資源。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"routePermission.updateDenied\":\"您沒有權限在此環境中更新此資源。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
for permission_locale in en-us zh-tw ja-jp; do
locale_file="${web_root}/translations/${permission_locale}.json"
for permission_key in routePermission.title routePermission.denied routePermission.updateDenied; do
grep -F "\"${permission_key}\":" "${locale_file}" >/dev/null
done
done
grep -F "\"containersPage.permissionDenied\":\"您沒有權限在此環境中新增容器。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"hookPage.receiver.permissionDenied\":\"您沒有權限在此環境中新增接收端 Webhook。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"hookPage.receiver.editPermissionDenied\":\"此環境不提供編輯接收端 Webhook 的功能。\"" \
"${web_root}/translations/zh-tw.json" >/dev/null
for locale_file in "${web_root}"/translations/*.json; do
grep -F "\"hostsPage.permissionDenied\":" "${locale_file}" >/dev/null
grep -F "\"containersPage.permissionDenied\":" "${locale_file}" >/dev/null
grep -F "\"hookPage.receiver.permissionDenied\":" "${locale_file}" >/dev/null
grep -F "\"hookPage.receiver.editPermissionDenied\":" "${locale_file}" >/dev/null
for validation_label in \
formNameDescription.name.label \
formNameDescription.description.label \
newSecret.value.label \
newSecret.name.editHelp \
inputCertificate.cert.label \
inputCertificate.key.label \
certificatesPage.encryptedKeyError \
registriesPage.new.form.custom.labelText \
registriesPage.new.form.username.labelText \
registriesPage.new.form.password.labelText; do
grep -F "\"${validation_label}\":" "${locale_file}" >/dev/null
done
done
grep -F "篩選服務日誌" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "開始時間必須早於結束時間" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"viewEditProject.error.projectUnavailable\":\"找不到此環境" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"viewEditProject.error.membersNotSaved\":\"成員變更未完成" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"viewEditProject.error.loadFailed\":\"暫時無法載入環境資料" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"viewEditProject.error.projectFailed\":\"環境設定未儲存:伺服器暫時無法處理" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"inputIdentity.error.forbidden\":\"您沒有權限搜尋" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"resourceLoadError.stackUnavailable\":\"找不到此應用堆疊" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"resourceLoadError.serviceUnavailable\":\"找不到此服務" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"resourceLoadError.secretsUnavailable\":\"無法載入機密資料" "${web_root}/translations/zh-tw.json" >/dev/null
grep -F "\"resourceLoadError.accountsUnavailable\":\"無法載入帳號資料" "${web_root}/translations/zh-tw.json" >/dev/null
for locale in de-de fa-ir fil-ph fr-fr hu-hu ja-jp ko-kr pt-br ru-ru uk-ua zh-hans zh-tw; do
locale_file="${web_root}/translations/${locale}.json"
grep -F "\"hostsPage.permissionDenied\":" "${locale_file}" >/dev/null
grep -F "\"auditLogsPage.filterBuilder.title\":" "${locale_file}" >/dev/null
grep -F "\"auditLogsPage.filterBuilder.timeDialog.calendar.today\":" "${locale_file}" >/dev/null
! grep -F "\"auditLogsPage.filterBuilder.title\":\"Filter audit logs\"" "${locale_file}" >/dev/null
! grep -F "\"auditLogsPage.filterBuilder.timeDialog.calendar.today\":\"Today\"" "${locale_file}" >/dev/null
done
# The new load-error strings are translated in the supported QA locales;
# ember-intl uses en-us as the base locale for other translations.
for locale in en-us zh-tw ja-jp; do
locale_file="${web_root}/translations/${locale}.json"
for load_key in serviceUnavailable serviceFailed secretsUnavailable secretsFailed; do
grep -F "\"resourceLoadError.${load_key}\":" "${locale_file}" >/dev/null
done
done
grep -F "\"auditLogsPage.filterBuilder.timeDialog.calendar.today\":\"Today\"" "${web_root}/translations/en-us.json" >/dev/null
'
docker run --rm -i --entrypoint sh "$image" -s -- \
/usr/share/cattle/cattle.jar "${orchestration_engine_version}" "${orchestration_engine_artifact_sha256}" \
< "${server_dir}/artifacts/verify-engine-archive.sh"
docker run --rm --env "ORCHESTRATION_ENGINE_VERSION=${orchestration_engine_version}" \
--env "API_EXPLORER_COMMIT=${api_explorer_commit}" \
--env "API_EXPLORER_RELEASE_TAG=${api_explorer_release_tag}" --entrypoint bash "$image" -lc '
set -Eeuo pipefail
trap "printf \"SERVER_RUNTIME_CONTRACT_FAILED line=%s\\n\" \"\${LINENO}\" >&2" ERR
api_dir=/usr/share/cattle/war/api-ui
test -d "${api_dir}"
test -s "${api_dir}/ui.min.js"
test -s "${api_dir}/ui.min.css"
test -s "${api_dir}/fonts/bootstrap-icons.woff"
test -s "${api_dir}/fonts/bootstrap-icons.woff2"
test -s "${api_dir}/licenses/LICENSE.txt"
test -s "${api_dir}/licenses/THIRD-PARTY-NOTICES.md"
test -s "${api_dir}/licenses/bootstrap-5.3.8/LICENSE"
test -s "${api_dir}/licenses/bootstrap-icons-1.13.1/LICENSE"
test -s "${api_dir}/licenses/jquery-4.0.0/LICENSE.txt"
test -s "${api_dir}/licenses/handlebars-4.7.10/LICENSE"
test ! -e "${api_dir}/js/bootstrap.js"
test "$(find "${api_dir}" -type f -name "*.map" | wc -l)" -eq 0
grep -F "\"version\": \"${API_EXPLORER_RELEASE_TAG#v}\"" "${api_dir}/version.json" >/dev/null
grep -F "\"commit\": \"${API_EXPLORER_COMMIT:0:7}\"" "${api_dir}/version.json" >/dev/null
grep -aF "handlebars v4.7.10" "${api_dir}/ui.js" >/dev/null
for marker in \
PastureStackUi \
pasturestack:modal:shown \
pasturestack:modal:hidden \
data-pasturestack-toggle; do
grep -aF "${marker}" "${api_dir}/ui.js" >/dev/null
done
if grep -aEq '"'"'Bootstrap v3\.4\.1|bs\.(button|tooltip|popover|modal|dropdown)|data-loading-text|data-toggle="dropdown"'"'"' \
"${api_dir}/ui.js"; then
echo "Rejected Bootstrap executable surface found in Server image" >&2
exit 1
fi
grep -E "Bootstrap +v5\\.3\\.8" "${api_dir}/ui.css" >/dev/null
grep -F "url(\"./fonts/bootstrap-icons.woff2" "${api_dir}/ui.css" >/dev/null
if grep -F "Bootstrap v3." "${api_dir}/ui.css"; then
echo "Rejected EOL Bootstrap 3 stylesheet in Server image" >&2
exit 1
fi
test "$(find /usr/share/cattle/war/translations -maxdepth 1 -type f -name "*.json" | wc -l)" -eq 13
ui_entry=$(find /usr/share/cattle/war/assets -maxdepth 1 -type f -name "ui-*.js" -print -quit)
test -n "${ui_entry}"
grep -aF "ui/utils/bootstrap-runtime" "${ui_entry}" >/dev/null
grep -aF "window.bootstrap=" "${ui_entry}" >/dev/null
grep -F '"'"'"authPage.mfa.email.systemManaged":"SMTP 寄信服務由系統管理員集中設定,全系統共用。您的帳號不會儲存 SMTP 伺服器、寄件者或密碼。"'"'"' \
/usr/share/cattle/war/translations/zh-tw.json >/dev/null
unzip -p /usr/share/cattle/cattle.jar META-INF/MANIFEST.MF |
tr -d "\r" |
grep -Fx "Implementation-Version: ${ORCHESTRATION_ENGINE_VERSION}" >/dev/null
test "$(find /usr/share/cattle/war/WEB-INF/lib -maxdepth 1 -type f -name "freemarker-2.3.35.jar" | wc -l)" -eq 1
resources_jar=$(find /usr/share/cattle/war/WEB-INF/lib -maxdepth 1 -type f \
-name "cattle-resources-${ORCHESTRATION_ENGINE_VERSION}.jar" -print -quit)
test -n "${resources_jar}"
unzip -p "${resources_jar}" schema/user/user-auth.json |
grep -F "\"volume.isNative\" : \"r\"" >/dev/null
unzip -p "${resources_jar}" schema/base/mfaOperation.json |
grep -F "oidcAccessPolicyUpdate" >/dev/null
unzip -p "${resources_jar}" schema/base/mfaOperation.json |
grep -F '"'"'"requestDigest"'"'"' >/dev/null
unzip -p "${resources_jar}" schema/token/token-auth.json |
grep -F '"'"'"token.clientSessionId": "cro"'"'"' >/dev/null
for frozen_token_schema in base superadmin token; do
unzip -p "${resources_jar}" "schema/v1/${frozen_token_schema}.ser" |
grep -aF "clientSessionId" >/dev/null
done
unzip -p "${resources_jar}" cattle-global.properties |
grep -Fx "auth.service.external.id.types=github_user,github_org,github_team,shibboleth_user,shibboleth_group,ldap_user,ldap_group,oidc_user,oidc_group" >/dev/null
for oidc_type in oidc_user oidc_group; do
unzip -p "${resources_jar}" schema/base/projectMember.json |
grep -F "\"${oidc_type}\"" >/dev/null
done
cat <<'"'"'EOF'"'"' | sha256sum -c -
57dc1a3e3ca7eb63cebd9141ecb2d2b1b37b0bc1cfca14aa973e76f1331a0e35 /usr/bin/authentication-service.real
41708b1171a00aa34bcde62dc5df6a0dd34b44d3807e76c52991cdd13bb4f140 /usr/bin/compose-executor.real
08781731cedc2b3a33cebf1a1f551e8b31f1dc57be386d90de6837b59b0fc972 /usr/bin/host-provisioner.real
8733f1c3c10f4998ea01724f3586fd45ce013a843620e954c0fc3a950ee212b2 /usr/bin/secret-delivery-api
48e22a6654c058cef7126dfa7c39da4c98a92bb939d37f09536d992f507f92ca /usr/bin/usage-telemetry-agent
5857ec67c19f781aedf41a0774beba5dfe2f5e9bae47262122ca5146614af256 /usr/bin/webhook-automation-service
EOF
echo "${PASTURESTACK_GOVC_BINARY_SHA256} /usr/bin/govc" | sha256sum -c -
echo "${PASTURESTACK_WEBSOCKET_PROXY_BINARY_SHA256} /usr/bin/websocket-proxy.real" | sha256sum -c -
echo "${PASTURESTACK_CATALOG_SERVICE_BINARY_SHA256} /usr/bin/catalog-service.real" | sha256sum -c -
echo "${PASTURESTACK_CATALOG_SERVICE_SQLITE_BINARY_SHA256} /usr/bin/catalog-service-sqlite" | sha256sum -c -
for binary in \
/usr/bin/authentication-service.real \
/usr/bin/catalog-service.real \
/usr/bin/catalog-service-sqlite \
/usr/bin/compose-executor.real \
/usr/bin/host-provisioner.real \
/usr/bin/secret-delivery-api \
/usr/bin/usage-telemetry-agent \
/usr/bin/webhook-automation-service \
/usr/bin/websocket-proxy.real \
/usr/bin/govc; do
test -x "${binary}"
grep -aF "go1.27.4" "${binary}" >/dev/null
done
test -x /usr/bin/pasturestack-console-broker
grep -aF "go1.27.4" /usr/bin/pasturestack-console-broker >/dev/null
/usr/bin/authentication-service.real --version | grep -F "0.4.48" >/dev/null
for marker in \
oidcAccessPolicyUpdate \
LocalRecoveryRequired \
MfaConfirmationRequired \
InvalidAllowedIdentity; do
grep -aF "${marker}" /usr/bin/authentication-service.real >/dev/null
done
test "$(/usr/bin/compose-executor.real --version)" = \
"pasturestack-compose version ${PASTURESTACK_COMPOSE_EXECUTOR_VERSION}"
for ssh_binary in /usr/bin/host-provisioner.real /usr/bin/compose-executor.real; do
grep -aF "$(printf "dep\tgolang.org/x/crypto\tv0.59.0\t")" "${ssh_binary}" >/dev/null
done
test "$(/usr/bin/catalog-service.real --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}"
test "$(/usr/bin/catalog-service-sqlite --version)" = "v${PASTURESTACK_CATALOG_SERVICE_VERSION}"
test -s /usr/share/licenses/pasturestack/catalog-service/LICENSE.txt
grep -Fx "Release source commit: ${PASTURESTACK_CATALOG_SERVICE_COMMIT}" \
/usr/share/licenses/pasturestack/catalog-service/SOURCES.txt >/dev/null
/usr/bin/secret-delivery-api --version | grep -F "v0.3.5" >/dev/null
/usr/bin/usage-telemetry-agent --version | grep -F "0.4.5" >/dev/null
/usr/bin/webhook-automation-service --version | grep -F "0.10.7" >/dev/null
test "$(readlink -f /usr/bin/webhook-service)" = /usr/bin/webhook-automation-service
grep -Fx "Release source commit: f765dd2bafd3a9a18eea8dd78c1a09b113cf2ce7" \
/usr/share/licenses/pasturestack/webhook-automation-service/webhook-automation-service-SOURCES.txt >/dev/null
test "$(/usr/bin/govc version)" = "govc ${PASTURESTACK_VSPHERE_CLI_BUNDLE_VERSION}"
test "$(/usr/bin/docker-machine version)" = "docker-machine version ${PASTURESTACK_MACHINE_DRIVER_BUNDLE_VERSION}, build 95d190cb"
printf "%s %s\n" "$PASTURESTACK_MACHINE_DRIVER_BINARY_SHA256" /usr/bin/docker-machine "$PASTURESTACK_PACKET_DRIVER_BINARY_SHA256" /usr/bin/docker-machine-driver-packet | sha256sum -c -
printf "%s %s\n" "$PASTURESTACK_MACHINE_DRIVER_BUNDLE_ARCHIVE_SHA256" "/usr/share/cattle/artifacts/machine-driver-bundle-${PASTURESTACK_MACHINE_DRIVER_BUNDLE_VERSION}-linux-amd64.tar.xz" | sha256sum -c -
for machine_binary in /usr/bin/docker-machine /usr/bin/docker-machine-driver-packet; do
grep -aF "go1.27.4" "$machine_binary" >/dev/null
done
grep -Fx "PACKET_DRIVER_NEW_INSTALL_DEFAULT=false" /usr/share/licenses/pasturestack/machine-driver-bundle/machine-driver-bundle-SOURCES.txt
machine_storage=$(mktemp -d)
/usr/bin/docker-machine --storage-path "$machine_storage" ls -q > "$machine_storage/list"
test ! -s "$machine_storage/list"
rm -r -- "$machine_storage"
grep -aF "$(printf "dep\tgolang.org/x/text\tv0.41.0\t")" /usr/bin/govc >/dev/null
grep -Fx "Security dependency: golang.org/x/text v0.41.0" \
/usr/share/licenses/pasturestack/vsphere-cli-bundle/vsphere-cli-bundle-SOURCES.txt >/dev/null
version_at_least()
{
local package=$1 minimum=$2 installed
installed=$(dpkg-query -W -f='"'"'${Version}'"'"' "$package")
dpkg --compare-versions "$installed" ge "$minimum"
}
package_is_installed()
{
local status
status=$(dpkg-query -W -f='"'"'${db:Status-Status}'"'"' "$1" 2>/dev/null || true)
test "$status" = installed
}
require_package_absent()
{
if package_is_installed "$1"; then
printf "Unexpected runtime package: %s\n" "$1" >&2
return 1
fi
}
require_resolved_linkage()
{
if printf "%s\n" "$1" | grep -E "not found|undefined symbol"; then
printf "Unresolved runtime linkage\n" >&2
return 1
fi
}
test "$(dpkg-query -W -f='"'"'${Version}'"'"' libbrotli1)" = 1.2.0-3ubuntu0.1
sh /usr/local/libexec/pasturestack/verify-brotli-runtime.sh
brotli_integrity="$(dpkg --verify libbrotli1)"
test -z "$brotli_integrity"
for brotli_library in libbrotlicommon.so.1 libbrotlidec.so.1 libbrotlienc.so.1; do
brotli_linkage="$(ldd -r "/usr/lib/x86_64-linux-gnu/${brotli_library}" 2>&1)"
require_resolved_linkage "$brotli_linkage"
done
for curl_package in curl libcurl3t64-gnutls libcurl4t64; do
test "$(dpkg-query -W -f='"'"'${Version}'"'"' "${curl_package}")" = \
"8.18.0-1ubuntu2.8"
done
for glibc_package in libc6 libc-bin libc-gconv-modules-extra; do
test "$(dpkg-query -W -f='"'"'${Version}'"'"' "${glibc_package}")" = \
"2.43-2ubuntu2.7"
done
View remainder of file in raw view
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.