mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-21 06:21:43 -04:00
Compare commits
142 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e0aebd8c54 | ||
![]() |
5171a01b95 | ||
![]() |
3b9f7530fb | ||
![]() |
f99dd8251f | ||
![]() |
4bb7355b17 | ||
![]() |
a304b3400f | ||
![]() |
244fb1cb11 | ||
![]() |
0d2c2be389 | ||
![]() |
da6468e536 | ||
![]() |
b76535b4d1 | ||
![]() |
6c0476c83a | ||
![]() |
a1ccfe74f0 | ||
![]() |
7ea5c41f9b | ||
![]() |
95f17a6d06 | ||
![]() |
dc9fca34a9 | ||
![]() |
1216a2af72 | ||
![]() |
78959301fa | ||
![]() |
e2aa7934f9 | ||
![]() |
541e779697 | ||
![]() |
7c5eeee7a4 | ||
![]() |
328b921c40 | ||
![]() |
bd1e56adfa | ||
![]() |
377dd6cbcd | ||
![]() |
3dcb1bf3ed | ||
![]() |
9a61bd6a0f | ||
![]() |
98067b6051 | ||
![]() |
3e13b07ef5 | ||
![]() |
36241455d5 | ||
![]() |
b122f941ee | ||
![]() |
6b8d7d45c1 | ||
![]() |
b1bfecccf2 | ||
![]() |
14fc0b61c3 | ||
![]() |
4d1dce3505 | ||
![]() |
b9c8379d54 | ||
![]() |
7163c5909d | ||
![]() |
01f9a30017 | ||
![]() |
0c75bd06e3 | ||
![]() |
2835db3b1e | ||
![]() |
acec154846 | ||
![]() |
5b0073ffe8 | ||
![]() |
36bfca97f8 | ||
![]() |
3c1ff17f2e | ||
![]() |
5cb48e6f6e | ||
![]() |
c0a8cca708 | ||
![]() |
ba9dcb87ed | ||
![]() |
e03aa0606e | ||
![]() |
b6eb6eb280 | ||
![]() |
93aa194d4b | ||
![]() |
b566e98b2d | ||
![]() |
9d719df5a4 | ||
![]() |
228e1e76fd | ||
![]() |
0c73a3ed25 | ||
![]() |
fe10b96a5c | ||
![]() |
9fe3702430 | ||
![]() |
85ed31405b | ||
![]() |
04a5cdf6b8 | ||
![]() |
823c891135 | ||
![]() |
f66be95f90 | ||
![]() |
8ec3bb86cf | ||
![]() |
cda8d7c943 | ||
![]() |
7eff1c3b97 | ||
![]() |
8d2e9b90dd | ||
![]() |
fd17a8d605 | ||
![]() |
1a8bf5f5e1 | ||
![]() |
b0d011fb2c | ||
![]() |
3febe0c109 | ||
![]() |
4b2a04adcf | ||
![]() |
53a4db167a | ||
![]() |
b21e5a3cd3 | ||
![]() |
01f7d90e63 | ||
![]() |
135f8c889f | ||
![]() |
dd8539f54b | ||
![]() |
54fae71299 | ||
![]() |
e27cdd00be | ||
![]() |
b8c942ab35 | ||
![]() |
8c3801f6fe | ||
![]() |
f62d2528ef | ||
![]() |
5f6ad4a50c | ||
![]() |
3cb36b20a6 | ||
![]() |
1e615cdc3b | ||
![]() |
f51879f95d | ||
![]() |
740752a60a | ||
![]() |
1998fb877f | ||
![]() |
c80b85bca1 | ||
![]() |
c5ef866cdc | ||
![]() |
60d1d1c513 | ||
![]() |
3777a44474 | ||
![]() |
5f1ef83a46 | ||
![]() |
fcd0a4803f | ||
![]() |
a801f9fe59 | ||
![]() |
ea798959e7 | ||
![]() |
01164025ec | ||
![]() |
66de14b9a4 | ||
![]() |
a9999c3d4b | ||
![]() |
81952fa67d | ||
![]() |
61e61b0b6e | ||
![]() |
0fb43e03b1 | ||
![]() |
d6567ec52d | ||
![]() |
a5a7cec11b | ||
![]() |
3489b6d772 | ||
![]() |
532f39755e | ||
![]() |
abac61b577 | ||
![]() |
4a93870d1d | ||
![]() |
19b8705a01 | ||
![]() |
129d745fc4 | ||
![]() |
69e9e54ae3 | ||
![]() |
36049f9a5d | ||
![]() |
54876024c3 | ||
![]() |
5ea950305c | ||
![]() |
e46726cf13 | ||
![]() |
97a313ae0d | ||
![]() |
9efaf7efe1 | ||
![]() |
620b4c7da4 | ||
![]() |
4db767d89a | ||
![]() |
db63cd1659 | ||
![]() |
55ffe967e4 | ||
![]() |
8e6c934741 | ||
![]() |
667da042bc | ||
![]() |
4e5c213b4d | ||
![]() |
a7f9561a3d | ||
![]() |
bfab84ce1c | ||
![]() |
2fdb533798 | ||
![]() |
518070ee78 | ||
![]() |
934c6339ee | ||
![]() |
ad250ac78f | ||
![]() |
819ec9a22c | ||
![]() |
e5d22ebcaf | ||
![]() |
0926b82a65 | ||
![]() |
d742243cdc | ||
![]() |
ae50f8b500 | ||
![]() |
ba0865706e | ||
![]() |
1079fba200 | ||
![]() |
fa21c55f5d | ||
![]() |
88ca92509c | ||
![]() |
b52639d2b8 | ||
![]() |
ebc962ad68 | ||
![]() |
5ab11ab996 | ||
![]() |
c4d8fe3741 | ||
![]() |
700eb60614 | ||
![]() |
810c8448d9 | ||
![]() |
3e6777c3e5 | ||
![]() |
7b550bbf09 |
1150 changed files with 20514 additions and 8947 deletions
|
@ -1 +1 @@
|
||||||
7.4.1
|
7.6.0
|
||||||
|
|
2
.github/actions/artifact_download/action.yml
vendored
2
.github/actions/artifact_download/action.yml
vendored
|
@ -28,7 +28,7 @@ runs:
|
||||||
run: echo "directory=$(mktemp -d)" >> "$GITHUB_OUTPUT"
|
run: echo "directory=$(mktemp -d)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Download the artifact
|
- name: Download the artifact
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.name }}
|
name: ${{ inputs.name }}
|
||||||
path: ${{ steps.tempdir.outputs.directory }}
|
path: ${{ steps.tempdir.outputs.directory }}
|
||||||
|
|
4
.github/actions/build_cli/action.yml
vendored
4
.github/actions/build_cli/action.yml
vendored
|
@ -75,11 +75,9 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: bazel run //bazel/release:push
|
run: bazel run //bazel/release:push
|
||||||
|
|
||||||
# TODO(3u13r): Replace with https://github.com/sigstore/sigstore-installer/tree/initial
|
|
||||||
# once it has the functionality
|
|
||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
||||||
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
|
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
|
||||||
|
|
||||||
- name: Install Rekor
|
- name: Install Rekor
|
||||||
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
||||||
|
|
|
@ -62,7 +62,7 @@ runs:
|
||||||
|
|
||||||
- name: Build and push container image
|
- name: Build and push container image
|
||||||
id: build-micro-service
|
id: build-micro-service
|
||||||
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ${{ inputs.dockerfile }}
|
file: ${{ inputs.dockerfile }}
|
||||||
|
|
4
.github/actions/cdbg_deploy/action.yml
vendored
4
.github/actions/cdbg_deploy/action.yml
vendored
|
@ -61,7 +61,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (IAM service principal)
|
- name: Login to AWS (IAM service principal)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -80,7 +80,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (Cluster service principal)
|
- name: Login to AWS (Cluster service principal)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
|
@ -30,6 +30,12 @@ runs:
|
||||||
jd-diff-patch
|
jd-diff-patch
|
||||||
moreutils
|
moreutils
|
||||||
|
|
||||||
|
- name: Allow unrestricted user namespaces
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_unconfined=0
|
||||||
|
sudo sysctl --ignore --write kernel.apparmor_restrict_unprivileged_userns=0
|
||||||
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
id: build-images
|
id: build-images
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -67,7 +67,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (Cluster role)
|
- name: Login to AWS (Cluster role)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
|
@ -102,7 +102,7 @@ runs:
|
||||||
--tf-log=DEBUG \
|
--tf-log=DEBUG \
|
||||||
--yes ${extraFlags}
|
--yes ${extraFlags}
|
||||||
|
|
||||||
# TODO(@3u13r): Replace deprecated --serviceAccountID with --prefix
|
# TODO: Replace deprecated --serviceAccountID with --prefix
|
||||||
- name: Constellation iam create gcp
|
- name: Constellation iam create gcp
|
||||||
shell: bash
|
shell: bash
|
||||||
if: inputs.cloudProvider == 'gcp'
|
if: inputs.cloudProvider == 'gcp'
|
||||||
|
|
|
@ -23,7 +23,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (IAM role)
|
- name: Login to AWS (IAM role)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
4
.github/actions/container_sbom/action.yml
vendored
4
.github/actions/container_sbom/action.yml
vendored
|
@ -19,7 +19,7 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
if: inputs.cosignPublicKey != '' && inputs.cosignPrivateKey != '' && inputs.cosignPassword != ''
|
||||||
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
|
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
|
||||||
|
|
||||||
- name: Download Syft & Grype
|
- name: Download Syft & Grype
|
||||||
uses: ./.github/actions/install_syft_grype
|
uses: ./.github/actions/install_syft_grype
|
||||||
|
@ -36,7 +36,7 @@ runs:
|
||||||
syft packages ${{ inputs.containerReference }} -o cyclonedx-json > container-image-predicate.json
|
syft packages ${{ inputs.containerReference }} -o cyclonedx-json > container-image-predicate.json
|
||||||
cosign attest ${{ inputs.containerReference }} --key env://COSIGN_PRIVATE_KEY --predicate container-image-predicate.json --type "https://cyclonedx.org/bom" > container-image.att.json
|
cosign attest ${{ inputs.containerReference }} --key env://COSIGN_PRIVATE_KEY --predicate container-image-predicate.json --type "https://cyclonedx.org/bom" > container-image.att.json
|
||||||
cosign attach attestation ${{ inputs.containerReference }} --attestation container-image.att.json
|
cosign attach attestation ${{ inputs.containerReference }} --attestation container-image.att.json
|
||||||
# TODO(3u13r): type should be auto-discovered after issue is resolved:
|
# TODO: type should be auto-discovered after issue is resolved:
|
||||||
# https://github.com/sigstore/cosign/issues/2264
|
# https://github.com/sigstore/cosign/issues/2264
|
||||||
cosign verify-attestation ${{ inputs.containerReference }} --type "https://cyclonedx.org/bom" --key env://COSIGN_PUBLIC_KEY
|
cosign verify-attestation ${{ inputs.containerReference }} --type "https://cyclonedx.org/bom" --key env://COSIGN_PUBLIC_KEY
|
||||||
grype ${{ inputs.containerReference }} --fail-on high --only-fixed --add-cpes-if-none
|
grype ${{ inputs.containerReference }} --fail-on high --only-fixed --add-cpes-if-none
|
||||||
|
|
|
@ -5,51 +5,51 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Download CLI binaries darwin-amd64
|
- name: Download CLI binaries darwin-amd64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-darwin-amd64
|
name: constellation-darwin-amd64
|
||||||
|
|
||||||
- name: Download CLI binaries darwin-arm64
|
- name: Download CLI binaries darwin-arm64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-darwin-arm64
|
name: constellation-darwin-arm64
|
||||||
|
|
||||||
- name: Download CLI binaries linux-amd64
|
- name: Download CLI binaries linux-amd64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-linux-amd64
|
name: constellation-linux-amd64
|
||||||
|
|
||||||
- name: Download CLI binaries linux-arm64
|
- name: Download CLI binaries linux-arm64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-linux-arm64
|
name: constellation-linux-arm64
|
||||||
|
|
||||||
- name: Download CLI binaries windows-amd64
|
- name: Download CLI binaries windows-amd64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-windows-amd64
|
name: constellation-windows-amd64
|
||||||
|
|
||||||
- name: Download Terraform module
|
- name: Download Terraform module
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: terraform-module
|
name: terraform-module
|
||||||
|
|
||||||
- name: Download Terraform provider binary darwin-amd64
|
- name: Download Terraform provider binary darwin-amd64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: terraform-provider-constellation-darwin-amd64
|
name: terraform-provider-constellation-darwin-amd64
|
||||||
|
|
||||||
- name: Download Terraform provider binary darwin-arm64
|
- name: Download Terraform provider binary darwin-arm64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: terraform-provider-constellation-darwin-arm64
|
name: terraform-provider-constellation-darwin-arm64
|
||||||
|
|
||||||
- name: Download Terraform provider binary linux-amd64
|
- name: Download Terraform provider binary linux-amd64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: terraform-provider-constellation-linux-amd64
|
name: terraform-provider-constellation-linux-amd64
|
||||||
|
|
||||||
- name: Download Terraform provider binary linux-arm64
|
- name: Download Terraform provider binary linux-arm64
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: terraform-provider-constellation-linux-arm64
|
name: terraform-provider-constellation-linux-arm64
|
||||||
|
|
|
@ -19,7 +19,7 @@ runs:
|
||||||
uses: ./.github/actions/setup_bazel_nix
|
uses: ./.github/actions/setup_bazel_nix
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubTestResourceAPI
|
role-to-assume: arn:aws:iam::795746500882:role/GithubTestResourceAPI
|
||||||
aws-region: eu-west-1
|
aws-region: eu-west-1
|
||||||
|
|
6
.github/actions/e2e_benchmark/action.yml
vendored
6
.github/actions/e2e_benchmark/action.yml
vendored
|
@ -32,9 +32,9 @@ runs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
|
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
||||||
with:
|
with:
|
||||||
python-version: "3.10"
|
python-version: "3.13"
|
||||||
|
|
||||||
- name: Install kubestr
|
- name: Install kubestr
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -166,7 +166,7 @@ runs:
|
||||||
encryptionSecret: ${{ inputs.encryptionSecret }}
|
encryptionSecret: ${{ inputs.encryptionSecret }}
|
||||||
|
|
||||||
- name: Assume AWS role to retrieve and update benchmarks in S3
|
- name: Assume AWS role to retrieve and update benchmarks in S3
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionUpdateBenchmarks
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionUpdateBenchmarks
|
||||||
aws-region: us-east-2
|
aws-region: us-east-2
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
numpy ==2.2.4
|
numpy ==2.3.0
|
||||||
matplotlib ==3.10.1
|
matplotlib ==3.10.3
|
||||||
Pillow ==11.1.0
|
Pillow ==11.3.0
|
|
@ -22,7 +22,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Authenticate AWS
|
- name: Authenticate AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EDestroy
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EDestroy
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# get_e2e_test_ids_on_date gets all workflow IDs of workflows that contain "e2e" on a specific date.
|
# get_e2e_test_ids_on_date gets all workflow IDs of workflows that contain "e2e" on a specific date.
|
||||||
function get_e2e_test_ids_on_date {
|
function get_e2e_test_ids_on_date {
|
||||||
ids="$(gh run list --created "$1" --status failure --json createdAt,workflowName,databaseId --jq '.[] | select(.workflowName | contains("e2e") and (contains("MiniConstellation") | not)) | .databaseId' -L1000 -R edgelesssys/constellation || exit 1)"
|
ids="$(gh run list --created "$1" --status failure --json createdAt,workflowName,databaseId --jq '.[] | select(.workflowName | (contains("e2e") or contains("Release")) and (contains("MiniConstellation") | not)) | .databaseId' -L1000 -R edgelesssys/constellation || exit 1)"
|
||||||
echo "${ids}"
|
echo "${ids}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,24 +11,23 @@ function download_tfstate_artifact {
|
||||||
gh run download "$1" -p "terraform-state-*" -R edgelesssys/constellation > /dev/null
|
gh run download "$1" -p "terraform-state-*" -R edgelesssys/constellation > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# delete_resources runs terraform destroy on the constellation-terraform subfolder of a given folder.
|
# delete_terraform_resources runs terraform destroy on the given folder.
|
||||||
function delete_resources {
|
function delete_terraform_resources {
|
||||||
if [[ -d "$1/constellation-terraform" ]]; then
|
delete_err=0
|
||||||
cd "$1/constellation-terraform" || exit 1
|
if pushd "${1}/${2}"; then
|
||||||
terraform init > /dev/null || exit 1 # first, install plugins
|
# Workaround for cleaning up Azure resources
|
||||||
terraform destroy -auto-approve || exit 1
|
# We include a data source that is only used to generate output
|
||||||
cd ../../ || exit 1
|
# If this data source is deleted before we call terraform destroy,
|
||||||
fi
|
# terraform will first try to evaluate the data source and fail,
|
||||||
}
|
# causing the destroy to fail as well.
|
||||||
|
sed -i '/data "azurerm_user_assigned_identity" "uaid" {/,/}/d' main.tf
|
||||||
|
sed -i '/output "user_assigned_identity_client_id" {/,/}/d' outputs.tf
|
||||||
|
|
||||||
# delete_iam_config runs terraform destroy on the constellation-iam-terraform subfolder of a given folder.
|
terraform init > /dev/null || delete_err=1 # first, install plugins
|
||||||
function delete_iam_config {
|
terraform destroy -auto-approve || delete_err=1
|
||||||
if [[ -d "$1/constellation-iam-terraform" ]]; then
|
popd || exit 1
|
||||||
cd "$1/constellation-iam-terraform" || exit 1
|
|
||||||
terraform init > /dev/null || exit 1 # first, install plugins
|
|
||||||
terraform destroy -auto-approve || exit 1
|
|
||||||
cd ../../ || exit 1
|
|
||||||
fi
|
fi
|
||||||
|
return "${delete_err}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# check if the password for artifact decryption was given
|
# check if the password for artifact decryption was given
|
||||||
|
@ -42,7 +41,7 @@ artifact_pwd=${ENCRYPTION_SECRET}
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
||||||
start_date=$(date "+%Y-%m-%d")
|
start_date=$(date "+%Y-%m-%d")
|
||||||
end_date=$(date --date "-7 day" "+%Y-%m-%d")
|
end_date=$(date --date "-4 day" "+%Y-%m-%d")
|
||||||
dates_to_clean=()
|
dates_to_clean=()
|
||||||
|
|
||||||
# get all dates of the last week
|
# get all dates of the last week
|
||||||
|
@ -85,13 +84,25 @@ export TF_PLUGIN_CACHE_DIR="${HOME}/tf_plugin_cache"
|
||||||
echo "[*] created terraform cache directory ${TF_PLUGIN_CACHE_DIR}"
|
echo "[*] created terraform cache directory ${TF_PLUGIN_CACHE_DIR}"
|
||||||
|
|
||||||
echo "[*] deleting resources"
|
echo "[*] deleting resources"
|
||||||
|
error_occurred=0
|
||||||
for directory in ./terraform-state-*; do
|
for directory in ./terraform-state-*; do
|
||||||
echo " deleting resources in ${directory}"
|
echo " deleting resources in ${directory}"
|
||||||
delete_resources "${directory}"
|
if ! delete_terraform_resources "${directory}" "constellation-terraform"; then
|
||||||
|
echo "[!] deleting resources failed"
|
||||||
|
error_occurred=1
|
||||||
|
fi
|
||||||
echo " deleting IAM configuration in ${directory}"
|
echo " deleting IAM configuration in ${directory}"
|
||||||
delete_iam_config "${directory}"
|
if ! delete_terraform_resources "${directory}" "constellation-iam-terraform"; then
|
||||||
|
echo "[!] deleting IAM resources failed"
|
||||||
|
error_occurred=1
|
||||||
|
fi
|
||||||
echo " deleting directory ${directory}"
|
echo " deleting directory ${directory}"
|
||||||
rm -rf "${directory}"
|
rm -rf "${directory}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [[ ${error_occurred} -ne 0 ]]; then
|
||||||
|
echo "[!] Errors occurred during resource deletion."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
10
.github/actions/e2e_emergency_ssh/action.yml
vendored
10
.github/actions/e2e_emergency_ssh/action.yml
vendored
|
@ -23,19 +23,21 @@ runs:
|
||||||
lb="$(terraform output -raw loadbalancer_address)"
|
lb="$(terraform output -raw loadbalancer_address)"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
lb_ip="$(gethostip $lb | awk '{print $2}')"
|
||||||
|
echo "Resolved ip of load balancer: $lb_ip"
|
||||||
|
|
||||||
# write ssh config
|
# write ssh config
|
||||||
cat > ssh_config <<EOF
|
cat > ssh_config <<EOF
|
||||||
Host $lb
|
Host $lb_ip
|
||||||
ProxyJump none
|
ProxyJump none
|
||||||
|
|
||||||
Host *
|
Host *
|
||||||
StrictHostKeyChecking no
|
|
||||||
UserKnownHostsFile=/dev/null
|
|
||||||
IdentityFile ./access-key
|
IdentityFile ./access-key
|
||||||
PreferredAuthentications publickey
|
PreferredAuthentications publickey
|
||||||
CertificateFile=constellation_cert.pub
|
CertificateFile=constellation_cert.pub
|
||||||
|
UserKnownHostsFile=./known_hosts
|
||||||
User root
|
User root
|
||||||
ProxyJump $lb
|
ProxyJump $lb_ip
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
for i in {1..26}; do
|
for i in {1..26}; do
|
||||||
|
|
2
.github/actions/e2e_sonobuoy/action.yml
vendored
2
.github/actions/e2e_sonobuoy/action.yml
vendored
|
@ -70,7 +70,7 @@ runs:
|
||||||
|
|
||||||
- name: Publish test results
|
- name: Publish test results
|
||||||
if: (!env.ACT) && contains(inputs.sonobuoyTestSuiteCmd, '--plugin e2e')
|
if: (!env.ACT) && contains(inputs.sonobuoyTestSuiteCmd, '--plugin e2e')
|
||||||
uses: mikepenz/action-junit-report@97744eca465b8df9e6e33271cb155003f85327f1 # v5.5.0
|
uses: mikepenz/action-junit-report@65fe03598d8d251738592a497a9e8547a5c48eaa # v5.6.0
|
||||||
with:
|
with:
|
||||||
report_paths: "**/junit_01.xml"
|
report_paths: "**/junit_01.xml"
|
||||||
fail_on_failure: true
|
fail_on_failure: true
|
||||||
|
|
10
.github/actions/e2e_test/action.yml
vendored
10
.github/actions/e2e_test/action.yml
vendored
|
@ -150,7 +150,9 @@ runs:
|
||||||
- name: Setup bazel
|
- name: Setup bazel
|
||||||
uses: ./.github/actions/setup_bazel_nix
|
uses: ./.github/actions/setup_bazel_nix
|
||||||
with:
|
with:
|
||||||
nixTools: terraform
|
nixTools: |
|
||||||
|
terraform
|
||||||
|
syslinux
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: ./.github/actions/container_registry_login
|
uses: ./.github/actions/container_registry_login
|
||||||
|
@ -227,7 +229,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (IAM role)
|
- name: Login to AWS (IAM role)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -298,7 +300,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS (Cluster role)
|
- name: Login to AWS (Cluster role)
|
||||||
if: inputs.cloudProvider == 'aws'
|
if: inputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -377,7 +379,7 @@ runs:
|
||||||
if: inputs.test == 'sonobuoy full'
|
if: inputs.test == 'sonobuoy full'
|
||||||
uses: ./.github/actions/e2e_sonobuoy
|
uses: ./.github/actions/e2e_sonobuoy
|
||||||
with:
|
with:
|
||||||
# TODO(3u13r): Remove E2E_SKIP once AB#2174 is resolved
|
# TODO: Remove E2E_SKIP once AB#2174 is resolved
|
||||||
sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol|Services should serve endpoints on same port and different protocols" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/102cd62a4091f80a795189f64ccc20738f931ef0/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/102cd62a4091f80a795189f64ccc20738f931ef0/cis-benchmarks/kube-bench-master-plugin.yaml'
|
sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol|Services should serve endpoints on same port and different protocols" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/102cd62a4091f80a795189f64ccc20738f931ef0/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/102cd62a4091f80a795189f64ccc20738f931ef0/cis-benchmarks/kube-bench-master-plugin.yaml'
|
||||||
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
|
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
|
||||||
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
artifactNameSuffix: ${{ steps.create-prefix.outputs.prefix }}
|
||||||
|
|
2
.github/actions/e2e_verify/action.yml
vendored
2
.github/actions/e2e_verify/action.yml
vendored
|
@ -82,7 +82,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
if: github.ref_name == 'main'
|
if: github.ref_name == 'main'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
2
.github/actions/find_latest_image/action.yml
vendored
2
.github/actions/find_latest_image/action.yml
vendored
|
@ -38,7 +38,7 @@ runs:
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
if: inputs.imageVersion == ''
|
if: inputs.imageVersion == ''
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
2
.github/actions/login_azure/action.yml
vendored
2
.github/actions/login_azure/action.yml
vendored
|
@ -10,6 +10,6 @@ runs:
|
||||||
# As described at:
|
# As described at:
|
||||||
# https://github.com/Azure/login#configure-deployment-credentials
|
# https://github.com/Azure/login#configure-deployment-credentials
|
||||||
- name: Login to Azure
|
- name: Login to Azure
|
||||||
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
|
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
|
||||||
with:
|
with:
|
||||||
creds: ${{ inputs.azure_credentials }}
|
creds: ${{ inputs.azure_credentials }}
|
||||||
|
|
2
.github/actions/login_gcp/action.yml
vendored
2
.github/actions/login_gcp/action.yml
vendored
|
@ -20,7 +20,7 @@ runs:
|
||||||
echo "GOOGLE_CLOUD_PROJECT=" >> "$GITHUB_ENV"
|
echo "GOOGLE_CLOUD_PROJECT=" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Authorize GCP access
|
- name: Authorize GCP access
|
||||||
uses: google-github-actions/auth@71f986410dfbc7added4569d411d040a91dc6935 # v2.1.8
|
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
|
||||||
with:
|
with:
|
||||||
workload_identity_provider: projects/1052692473304/locations/global/workloadIdentityPools/constellation-ci-pool/providers/constellation-ci-provider
|
workload_identity_provider: projects/1052692473304/locations/global/workloadIdentityPools/constellation-ci-pool/providers/constellation-ci-provider
|
||||||
service_account: ${{ inputs.service_account }}
|
service_account: ${{ inputs.service_account }}
|
||||||
|
|
|
@ -11,14 +11,6 @@
|
||||||
"msteams": {
|
"msteams": {
|
||||||
"width": "Full",
|
"width": "Full",
|
||||||
"entities": [
|
"entities": [
|
||||||
{
|
|
||||||
"type": "mention",
|
|
||||||
"text": "<at>elchead</at>",
|
|
||||||
"mentioned": {
|
|
||||||
"id": "3931943b-8d4b-4300-ac7e-bbb06c4da27f",
|
|
||||||
"name": "Adrian Stobbe"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "mention",
|
"type": "mention",
|
||||||
"text": "<at>msanft</at>",
|
"text": "<at>msanft</at>",
|
||||||
|
@ -27,14 +19,6 @@
|
||||||
"name": "Moritz Sanft"
|
"name": "Moritz Sanft"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "mention",
|
|
||||||
"text": "<at>3u13r</at>",
|
|
||||||
"mentioned": {
|
|
||||||
"id": "26869b29-b0d6-48f8-a9ed-7a6374410a53",
|
|
||||||
"name": "Leonard Cohnen"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "mention",
|
"type": "mention",
|
||||||
"text": "<at>daniel-weisse</at>",
|
"text": "<at>daniel-weisse</at>",
|
||||||
|
@ -51,14 +35,6 @@
|
||||||
"name": "Paul Meyer"
|
"name": "Paul Meyer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "mention",
|
|
||||||
"text": "<at>derpsteb</at>",
|
|
||||||
"mentioned": {
|
|
||||||
"id": "a9a34611-9a38-4c00-a8a2-f87d94c2bf7d",
|
|
||||||
"name": "Otto Bittner"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "mention",
|
"type": "mention",
|
||||||
"text": "<at>burgerdev</at>",
|
"text": "<at>burgerdev</at>",
|
||||||
|
|
1
.github/actions/pick_assignee/action.yml
vendored
1
.github/actions/pick_assignee/action.yml
vendored
|
@ -14,7 +14,6 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
possibleAssignees=(
|
possibleAssignees=(
|
||||||
"elchead"
|
|
||||||
"daniel-weisse"
|
"daniel-weisse"
|
||||||
"msanft"
|
"msanft"
|
||||||
"burgerdev"
|
"burgerdev"
|
||||||
|
|
2
.github/actions/select_image/action.yml
vendored
2
.github/actions/select_image/action.yml
vendored
|
@ -18,7 +18,7 @@ runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
4
.github/actions/setup_bazel_nix/action.yml
vendored
4
.github/actions/setup_bazel_nix/action.yml
vendored
|
@ -114,7 +114,7 @@ runs:
|
||||||
|
|
||||||
- name: Install nix
|
- name: Install nix
|
||||||
if: steps.check_inputs.outputs.nixPreinstalled == 'false'
|
if: steps.check_inputs.outputs.nixPreinstalled == 'false'
|
||||||
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
|
uses: cachix/install-nix-action@17fe5fb4a23ad6cbbe47d6b3f359611ad276644c # v31
|
||||||
with:
|
with:
|
||||||
install_url: "https://releases.nixos.org/nix/nix-${{ steps.check_inputs.outputs.nixVersion }}/install"
|
install_url: "https://releases.nixos.org/nix/nix-${{ steps.check_inputs.outputs.nixVersion }}/install"
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ runs:
|
||||||
{ tools, repository, rev }:
|
{ tools, repository, rev }:
|
||||||
let
|
let
|
||||||
repoFlake = builtins.getFlake ("github:" + repository + "/" + rev);
|
repoFlake = builtins.getFlake ("github:" + repository + "/" + rev);
|
||||||
nixpkgs = repoFlake.inputs.nixpkgsUnstable;
|
nixpkgs = repoFlake.inputs.nixpkgs;
|
||||||
pkgs = import nixpkgs { system = builtins.currentSystem; };
|
pkgs = import nixpkgs { system = builtins.currentSystem; };
|
||||||
toolPkgs = map (p: pkgs.${p}) tools;
|
toolPkgs = map (p: pkgs.${p}) tools;
|
||||||
in
|
in
|
||||||
|
|
2
.github/actions/terraform_apply/action.yml
vendored
2
.github/actions/terraform_apply/action.yml
vendored
|
@ -47,7 +47,7 @@ runs:
|
||||||
}
|
}
|
||||||
random = {
|
random = {
|
||||||
source = "hashicorp/random"
|
source = "hashicorp/random"
|
||||||
version = "3.7.1"
|
version = "3.7.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
path: constellation
|
path: constellation
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
|
uses: cachix/install-nix-action@17fe5fb4a23ad6cbbe47d6b3f359611ad276644c # v31
|
||||||
|
|
||||||
- name: Download Firmware release
|
- name: Download Firmware release
|
||||||
id: download-firmware
|
id: download-firmware
|
||||||
|
|
6
.github/workflows/build-ccm-gcp.yml
vendored
6
.github/workflows/build-ccm-gcp.yml
vendored
|
@ -29,9 +29,9 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.1"
|
go-version: "1.24.3"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Install Crane
|
- name: Install Crane
|
||||||
|
@ -113,7 +113,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build and push container image
|
- name: Build and push container image
|
||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||||
with:
|
with:
|
||||||
context: ./cloud-provider-gcp
|
context: ./cloud-provider-gcp
|
||||||
push: ${{ github.ref_name == 'main' }}
|
push: ${{ github.ref_name == 'main' }}
|
||||||
|
|
2
.github/workflows/build-gcp-guest-agent.yml
vendored
2
.github/workflows/build-gcp-guest-agent.yml
vendored
|
@ -114,7 +114,7 @@ jobs:
|
||||||
- name: Build and push container image
|
- name: Build and push container image
|
||||||
if: steps.needs-build.outputs.out == 'true'
|
if: steps.needs-build.outputs.out == 'true'
|
||||||
id: build
|
id: build
|
||||||
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
||||||
with:
|
with:
|
||||||
context: ./guest-agent
|
context: ./guest-agent
|
||||||
file: ./constellation/3rdparty/gcp-guest-agent/Dockerfile
|
file: ./constellation/3rdparty/gcp-guest-agent/Dockerfile
|
||||||
|
|
|
@ -65,9 +65,9 @@ jobs:
|
||||||
token: ${{ secrets.CI_COMMIT_PUSH_PR }}
|
token: ${{ secrets.CI_COMMIT_PUSH_PR }}
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.1"
|
go-version: "1.24.3"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Determine version
|
- name: Determine version
|
||||||
|
|
2
.github/workflows/build-os-image.yml
vendored
2
.github/workflows/build-os-image.yml
vendored
|
@ -147,7 +147,7 @@ jobs:
|
||||||
useCache: "false"
|
useCache: "false"
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
2
.github/workflows/check-links.yml
vendored
2
.github/workflows/check-links.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Link Checker
|
- name: Link Checker
|
||||||
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
|
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
|
||||||
with:
|
with:
|
||||||
args: "--config ./.lychee.toml './**/*.md' './**/*.html'"
|
args: "--config ./.lychee.toml './**/*.md' './**/*.html'"
|
||||||
fail: true
|
fail: true
|
||||||
|
|
|
@ -13,10 +13,12 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-reproducibility:
|
check-reproducibility:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
with:
|
||||||
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
|
|
||||||
- name: Check reproducibility
|
- name: Check reproducibility
|
||||||
uses: ./.github/actions/check_measurements_reproducibility
|
uses: ./.github/actions/check_measurements_reproducibility
|
||||||
|
|
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
|
@ -38,13 +38,13 @@ jobs:
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
if: matrix.language == 'go'
|
if: matrix.language == 'go'
|
||||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.1"
|
go-version: "1.24.3"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
|
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
|
@ -63,6 +63,6 @@ jobs:
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
|
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
category: "/language:${{ matrix.language }}"
|
category: "/language:${{ matrix.language }}"
|
||||||
|
|
18
.github/workflows/draft-release.yml
vendored
18
.github/workflows/draft-release.yml
vendored
|
@ -227,7 +227,7 @@ jobs:
|
||||||
uses: ./.github/actions/download_release_binaries
|
uses: ./.github/actions/download_release_binaries
|
||||||
|
|
||||||
- name: Download CLI SBOM
|
- name: Download CLI SBOM
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation.spdx.sbom
|
name: constellation.spdx.sbom
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ jobs:
|
||||||
ref: ${{ inputs.ref || github.head_ref }}
|
ref: ${{ inputs.ref || github.head_ref }}
|
||||||
|
|
||||||
- name: Install Cosign
|
- name: Install Cosign
|
||||||
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3.8.1
|
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
|
||||||
|
|
||||||
- name: Download Syft & Grype
|
- name: Download Syft & Grype
|
||||||
uses: ./.github/actions/install_syft_grype
|
uses: ./.github/actions/install_syft_grype
|
||||||
|
@ -340,12 +340,12 @@ jobs:
|
||||||
uses: ./.github/actions/download_release_binaries
|
uses: ./.github/actions/download_release_binaries
|
||||||
|
|
||||||
- name: Download CLI SBOM
|
- name: Download CLI SBOM
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation.spdx.sbom
|
name: constellation.spdx.sbom
|
||||||
|
|
||||||
- name: Download provenance
|
- name: Download provenance
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.provenance.outputs.provenance-name }}
|
name: ${{ needs.provenance.outputs.provenance-name }}
|
||||||
|
|
||||||
|
@ -418,17 +418,17 @@ jobs:
|
||||||
uses: ./.github/actions/download_release_binaries
|
uses: ./.github/actions/download_release_binaries
|
||||||
|
|
||||||
- name: Download CLI SBOM
|
- name: Download CLI SBOM
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation.spdx.sbom
|
name: constellation.spdx.sbom
|
||||||
|
|
||||||
- name: Download Constellation CLI SBOM's signature
|
- name: Download Constellation CLI SBOM's signature
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation.spdx.sbom.sig
|
name: constellation.spdx.sbom.sig
|
||||||
|
|
||||||
- name: Download Constellation provenance
|
- name: Download Constellation provenance
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.provenance.outputs.provenance-name }}
|
name: ${{ needs.provenance.outputs.provenance-name }}
|
||||||
|
|
||||||
|
@ -472,7 +472,7 @@ jobs:
|
||||||
- name: Create release with artifacts
|
- name: Create release with artifacts
|
||||||
id: create-release
|
id: create-release
|
||||||
# GitHub endorsed release project. See: https://github.com/actions/create-release
|
# GitHub endorsed release project. See: https://github.com/actions/create-release
|
||||||
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
|
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
@ -487,7 +487,7 @@ jobs:
|
||||||
terraform-module.zip
|
terraform-module.zip
|
||||||
|
|
||||||
- name: Create Terraform provider release with artifcats
|
- name: Create Terraform provider release with artifcats
|
||||||
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
|
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
|
||||||
with:
|
with:
|
||||||
draft: true
|
draft: true
|
||||||
generate_release_notes: false
|
generate_release_notes: false
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
name: e2e weekly cleanup
|
name: e2e cleanup
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 0" # At 00:00 every Sunday UTC
|
- cron: "0 0 * * *" # At 00:00 every day
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
2
.github/workflows/e2e-mini.yml
vendored
2
.github/workflows/e2e-mini.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
||||||
ref: ${{ inputs.ref || github.event.workflow_run.head_branch || github.head_ref }}
|
ref: ${{ inputs.ref || github.event.workflow_run.head_branch || github.head_ref }}
|
||||||
|
|
||||||
- name: Azure login OIDC
|
- name: Azure login OIDC
|
||||||
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
|
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
2
.github/workflows/e2e-test-daily.yml
vendored
2
.github/workflows/e2e-test-daily.yml
vendored
|
@ -164,7 +164,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Azure login OIDC
|
- name: Azure login OIDC
|
||||||
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
|
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
|
@ -154,7 +154,7 @@ jobs:
|
||||||
|
|
||||||
- name: Login to AWS (IAM + Cluster role)
|
- name: Login to AWS (IAM + Cluster role)
|
||||||
if: steps.determine.outputs.cloudProvider == 'aws'
|
if: steps.determine.outputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ETerraform
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ETerraform
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
226
.github/workflows/e2e-test-release.yml
vendored
226
.github/workflows/e2e-test-release.yml
vendored
|
@ -39,11 +39,25 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 9
|
max-parallel: 9
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
test:
|
||||||
#
|
- "sonobuoy full"
|
||||||
# Tests on ubuntu runner
|
- "verify"
|
||||||
#
|
- "recover"
|
||||||
|
- "lb"
|
||||||
|
- "autoscaling"
|
||||||
|
- "perf-bench"
|
||||||
|
- "malicious join"
|
||||||
|
|
||||||
|
attestationVariant:
|
||||||
|
- "gcp-sev-es"
|
||||||
|
- "gcp-sev-snp"
|
||||||
|
- "azure-sev-snp"
|
||||||
|
- "azure-tdx"
|
||||||
|
- "aws-sev-snp"
|
||||||
|
kubernetes-version: ["v1.31"]
|
||||||
|
clusterCreation: ["cli"]
|
||||||
|
runner: ["ubuntu-24.04"]
|
||||||
|
include:
|
||||||
# sonobuoy full test on all k8s versions
|
# sonobuoy full test on all k8s versions
|
||||||
- test: "sonobuoy full"
|
- test: "sonobuoy full"
|
||||||
attestationVariant: "gcp-sev-es"
|
attestationVariant: "gcp-sev-es"
|
||||||
|
@ -71,32 +85,6 @@ jobs:
|
||||||
runner: "ubuntu-24.04"
|
runner: "ubuntu-24.04"
|
||||||
clusterCreation: "cli"
|
clusterCreation: "cli"
|
||||||
|
|
||||||
- test: "sonobuoy full"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "sonobuoy full"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "sonobuoy full"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "sonobuoy full"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "sonobuoy full"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
- test: "sonobuoy full"
|
- test: "sonobuoy full"
|
||||||
attestationVariant: "gcp-sev-es"
|
attestationVariant: "gcp-sev-es"
|
||||||
kubernetes-version: "v1.29"
|
kubernetes-version: "v1.29"
|
||||||
|
@ -123,193 +111,25 @@ jobs:
|
||||||
runner: "ubuntu-24.04"
|
runner: "ubuntu-24.04"
|
||||||
clusterCreation: "cli"
|
clusterCreation: "cli"
|
||||||
|
|
||||||
# verify test on latest k8s version
|
|
||||||
- test: "verify"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "verify"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "verify"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "verify"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "verify"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
# recover test on latest k8s version
|
|
||||||
- test: "recover"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "recover"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "recover"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "recover"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "recover"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
# lb test on latest k8s version
|
|
||||||
- test: "lb"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "lb"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "lb"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "lb"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "lb"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
# autoscaling test on latest k8s version
|
|
||||||
- test: "autoscaling"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "autoscaling"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "autoscaling"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "autoscaling"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "autoscaling"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
# perf-bench test on latest k8s version
|
|
||||||
- test: "perf-bench"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "perf-bench"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "perf-bench"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "perf-bench"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
- test: "perf-bench"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
|
|
||||||
# s3proxy test on latest k8s version
|
# s3proxy test on latest k8s version
|
||||||
- test: "s3proxy"
|
- test: "s3proxy"
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
attestationVariant: "gcp-sev-es"
|
||||||
kubernetes-version: "v1.30"
|
kubernetes-version: "v1.31"
|
||||||
runner: "ubuntu-24.04"
|
runner: "ubuntu-24.04"
|
||||||
clusterCreation: "cli"
|
clusterCreation: "cli"
|
||||||
|
|
||||||
# malicious join test on latest k8s version
|
|
||||||
- test: "malicious join"
|
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "gcp-sev-es"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
- test: "malicious join"
|
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "gcp-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
- test: "malicious join"
|
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "azure-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
- test: "malicious join"
|
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "azure-tdx"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
- test: "malicious join"
|
|
||||||
refStream: "ref/main/stream/debug/?"
|
|
||||||
attestationVariant: "aws-sev-snp"
|
|
||||||
kubernetes-version: "v1.30"
|
|
||||||
clusterCreation: "cli"
|
|
||||||
runner: "ubuntu-24.04"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tests on macOS runner
|
# Tests on macOS runner
|
||||||
#
|
#
|
||||||
# Skipping verify test on MacOS since the runner uses a different version of sed
|
# Skipping verify test on MacOS since the runner uses a different version of sed
|
||||||
# TODO(3u13r): Update verify test to work on MacOS runners
|
# TODO: Update verify test to work on MacOS runners
|
||||||
# - test: "verify"
|
# - test: "verify"
|
||||||
# attestationVariant: "azure-sev-snp"
|
# attestationVariant: "azure-sev-snp"
|
||||||
# kubernetes-version: "v1.30"
|
# kubernetes-version: "v1.31"
|
||||||
# runner: "macos-latest"
|
# runner: "macos-latest"
|
||||||
- test: "recover"
|
- test: "recover"
|
||||||
attestationVariant: "gcp-sev-es"
|
attestationVariant: "gcp-sev-es"
|
||||||
kubernetes-version: "v1.30"
|
kubernetes-version: "v1.31"
|
||||||
runner: "macos-latest"
|
runner: "macos-latest"
|
||||||
clusterCreation: "cli"
|
clusterCreation: "cli"
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
|
@ -409,7 +229,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
matrix:
|
matrix:
|
||||||
fromVersion: ["v2.21.1"]
|
fromVersion: ["v2.23.1"]
|
||||||
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
||||||
name: Run upgrade tests
|
name: Run upgrade tests
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
4
.github/workflows/e2e-test-weekly.yml
vendored
4
.github/workflows/e2e-test-weekly.yml
vendored
|
@ -446,7 +446,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
matrix:
|
matrix:
|
||||||
fromVersion: ["v2.21.1"]
|
fromVersion: ["v2.23.1"]
|
||||||
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
attestationVariant: ["gcp-sev-snp", "azure-sev-snp", "azure-tdx", "aws-sev-snp"]
|
||||||
name: Run upgrade tests
|
name: Run upgrade tests
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@ -479,7 +479,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Azure login OIDC
|
- name: Azure login OIDC
|
||||||
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
|
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
|
||||||
with:
|
with:
|
||||||
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
client-id: ${{ secrets.AZURE_E2E_MINI_CLIENT_ID }}
|
||||||
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
||||||
|
|
8
.github/workflows/e2e-upgrade.yml
vendored
8
.github/workflows/e2e-upgrade.yml
vendored
|
@ -274,7 +274,7 @@ jobs:
|
||||||
path: build/constellation
|
path: build/constellation
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -296,7 +296,7 @@ jobs:
|
||||||
|
|
||||||
- name: Login to AWS (IAM role)
|
- name: Login to AWS (IAM role)
|
||||||
if: needs.generate-input-parameters.outputs.cloudProvider == 'aws'
|
if: needs.generate-input-parameters.outputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2EIAM
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -347,7 +347,7 @@ jobs:
|
||||||
|
|
||||||
- name: Login to AWS (Cluster role)
|
- name: Login to AWS (Cluster role)
|
||||||
if: always() && needs.generate-input-parameters.outputs.cloudProvider == 'aws'
|
if: always() && needs.generate-input-parameters.outputs.cloudProvider == 'aws'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionsE2ECluster
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -424,7 +424,7 @@ jobs:
|
||||||
ref: ${{ inputs.gitRef }}
|
ref: ${{ inputs.gitRef }}
|
||||||
|
|
||||||
- name: Download CLI
|
- name: Download CLI
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: constellation-upgrade-${{ inputs.attestationVariant }}
|
name: constellation-upgrade-${{ inputs.attestationVariant }}
|
||||||
path: build
|
path: build
|
||||||
|
|
4
.github/workflows/e2e-windows.yml
vendored
4
.github/workflows/e2e-windows.yml
vendored
|
@ -52,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
e2e-test:
|
e2e-test:
|
||||||
name: E2E Test Windows
|
name: E2E Test Windows
|
||||||
runs-on: windows-2022
|
runs-on: windows-2025
|
||||||
needs: build-cli
|
needs: build-cli
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -61,7 +61,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Download CLI artifact
|
- name: Download CLI artifact
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
name: "constell-exe"
|
name: "constell-exe"
|
||||||
|
|
||||||
|
|
2
.github/workflows/on-release.yml
vendored
2
.github/workflows/on-release.yml
vendored
|
@ -142,7 +142,7 @@ jobs:
|
||||||
- uses: ./.github/actions/setup_bazel_nix
|
- uses: ./.github/actions/setup_bazel_nix
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
2
.github/workflows/purge-main.yml
vendored
2
.github/workflows/purge-main.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Login to AWS
|
- name: Login to AWS
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -244,6 +244,11 @@ jobs:
|
||||||
needs: [verify-inputs, os-image]
|
needs: [verify-inputs, os-image]
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
with:
|
||||||
|
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
|
||||||
|
|
||||||
- name: Check reproducibility
|
- name: Check reproducibility
|
||||||
uses: ./.github/actions/check_measurements_reproducibility
|
uses: ./.github/actions/check_measurements_reproducibility
|
||||||
with:
|
with:
|
||||||
|
@ -266,9 +271,9 @@ jobs:
|
||||||
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
|
ref: ${{ needs.verify-inputs.outputs.WORKING_BRANCH }}
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.1"
|
go-version: "1.24.3"
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Build generateMeasurements tool
|
- name: Build generateMeasurements tool
|
||||||
|
|
6
.github/workflows/reproducible-builds.yml
vendored
6
.github/workflows/reproducible-builds.yml
vendored
|
@ -57,7 +57,7 @@ jobs:
|
||||||
chmod a+x "$HOME/.local/bin/bazel"
|
chmod a+x "$HOME/.local/bin/bazel"
|
||||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
curl -fsSL -o "$HOME/.local/bin/nix-installer" https://github.com/DeterminateSystems/nix-installer/releases/download/v3.0.0/nix-installer-x86_64-linux # renovate:github-release
|
curl -fsSL -o "$HOME/.local/bin/nix-installer" https://github.com/DeterminateSystems/nix-installer/releases/download/v3.4.2/nix-installer-x86_64-linux # renovate:github-release
|
||||||
nixVersion=$(cat .nixversion)
|
nixVersion=$(cat .nixversion)
|
||||||
chmod a+x "$HOME/.local/bin/nix-installer"
|
chmod a+x "$HOME/.local/bin/nix-installer"
|
||||||
"$HOME/.local/bin/nix-installer" install --no-confirm --nix-package-url "https://releases.nixos.org/nix/nix-$nixVersion/nix-$nixVersion-x86_64-linux.tar.xz"
|
"$HOME/.local/bin/nix-installer" install --no-confirm --nix-package-url "https://releases.nixos.org/nix/nix-$nixVersion/nix-$nixVersion-x86_64-linux.tar.xz"
|
||||||
|
@ -175,7 +175,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Download binaries
|
- name: Download binaries
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
pattern: "binaries-${{ matrix.target }}-*"
|
pattern: "binaries-${{ matrix.target }}-*"
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
@ -209,7 +209,7 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Download os images
|
- name: Download os images
|
||||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
with:
|
with:
|
||||||
pattern: "osimages-${{ matrix.target }}-*"
|
pattern: "osimages-${{ matrix.target }}-*"
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
4
.github/workflows/scorecard.yml
vendored
4
.github/workflows/scorecard.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Run analysis
|
- name: Run analysis
|
||||||
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
|
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
|
||||||
with:
|
with:
|
||||||
results_file: results.sarif
|
results_file: results.sarif
|
||||||
results_format: sarif
|
results_format: sarif
|
||||||
|
@ -37,6 +37,6 @@ jobs:
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
- name: Upload to code-scanning
|
- name: Upload to code-scanning
|
||||||
uses: github/codeql-action/upload-sarif@1b549b9259bda1cb5ddde3b41741a82a2d15a841 # v3.28.13
|
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|
4
.github/workflows/test-operator-codegen.yml
vendored
4
.github/workflows/test-operator-codegen.yml
vendored
|
@ -26,9 +26,9 @@ jobs:
|
||||||
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || '' }}
|
||||||
|
|
||||||
- name: Setup Go environment
|
- name: Setup Go environment
|
||||||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: "1.24.1"
|
go-version: "1.24.3"
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Run code generation
|
- name: Run code generation
|
||||||
|
|
2
.github/workflows/test-tidy.yml
vendored
2
.github/workflows/test-tidy.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
||||||
|
|
||||||
- name: Assume AWS role to upload Bazel dependencies to S3
|
- name: Assume AWS role to upload Bazel dependencies to S3
|
||||||
if: startsWith(github.head_ref, 'renovate/')
|
if: startsWith(github.head_ref, 'renovate/')
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationMirrorWrite
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationMirrorWrite
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
4
.github/workflows/test-unittest.yml
vendored
4
.github/workflows/test-unittest.yml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
||||||
rm -rf awscliv2.zip aws
|
rm -rf awscliv2.zip aws
|
||||||
|
|
||||||
- name: Login to AWS (IAM role)
|
- name: Login to AWS (IAM role)
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubActionGocoverage
|
role-to-assume: arn:aws:iam::795746500882:role/GithubActionGocoverage
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
@ -69,7 +69,7 @@ jobs:
|
||||||
|
|
||||||
- name: Comment coverage
|
- name: Comment coverage
|
||||||
if: steps.coverage.outputs.uploadable == 'true' && github.event_name == 'pull_request'
|
if: steps.coverage.outputs.uploadable == 'true' && github.event_name == 'pull_request'
|
||||||
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2.9.1
|
uses: marocchino/sticky-pull-request-comment@67d0dec7b07ed060a405f9b2a64b8ab319fdd7db # v2.9.2
|
||||||
with:
|
with:
|
||||||
header: coverage
|
header: coverage
|
||||||
path: coverage_diff.md
|
path: coverage_diff.md
|
||||||
|
|
2
.github/workflows/update-rpms.yml
vendored
2
.github/workflows/update-rpms.yml
vendored
|
@ -18,7 +18,7 @@ jobs:
|
||||||
token: ${{ secrets.CI_COMMIT_PUSH_PR }}
|
token: ${{ secrets.CI_COMMIT_PUSH_PR }}
|
||||||
|
|
||||||
- name: Assume AWS role to upload Bazel dependencies to S3
|
- name: Assume AWS role to upload Bazel dependencies to S3
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationMirrorWrite
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationMirrorWrite
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
6
.github/workflows/versionsapi.yml
vendored
6
.github/workflows/versionsapi.yml
vendored
|
@ -149,21 +149,21 @@ jobs:
|
||||||
|
|
||||||
- name: Login to AWS without write access
|
- name: Login to AWS without write access
|
||||||
if: steps.check-rights.outputs.write == 'false'
|
if: steps.check-rights.outputs.write == 'false'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRead
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
||||||
- name: Login to AWS with write access
|
- name: Login to AWS with write access
|
||||||
if: steps.check-rights.outputs.write == 'true' && steps.check-rights.outputs.auth == 'false'
|
if: steps.check-rights.outputs.write == 'true' && steps.check-rights.outputs.auth == 'false'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIWrite
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIWrite
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
||||||
- name: Login to AWS with write and image remove access
|
- name: Login to AWS with write and image remove access
|
||||||
if: steps.check-rights.outputs.write == 'true' && steps.check-rights.outputs.auth == 'true'
|
if: steps.check-rights.outputs.write == 'true' && steps.check-rights.outputs.auth == 'true'
|
||||||
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
|
uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1
|
||||||
with:
|
with:
|
||||||
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRemove
|
role-to-assume: arn:aws:iam::795746500882:role/GithubConstellationVersionsAPIRemove
|
||||||
aws-region: eu-central-1
|
aws-region: eu-central-1
|
||||||
|
|
|
@ -6,10 +6,10 @@ def aws_load_balancer_controller_deps():
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_kubernetes_sigs_aws_load_balancer_controller",
|
name = "com_github_kubernetes_sigs_aws_load_balancer_controller",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/0cb78cdff9742945c9968ac12c785164a052b52260d19d218bb28a8bec04a2fd",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/422af7c03ebc73e1be6aea563475ec9ea6396071fa03158b9a3984aa621b8cb1",
|
||||||
"https://github.com/kubernetes-sigs/aws-load-balancer-controller/archive/refs/tags/v2.11.0.tar.gz",
|
"https://github.com/kubernetes-sigs/aws-load-balancer-controller/archive/refs/tags/v2.12.0.tar.gz",
|
||||||
],
|
],
|
||||||
strip_prefix = "aws-load-balancer-controller-2.11.0",
|
strip_prefix = "aws-load-balancer-controller-2.12.0",
|
||||||
build_file_content = """
|
build_file_content = """
|
||||||
filegroup(
|
filegroup(
|
||||||
srcs = ["docs/install/iam_policy.json"],
|
srcs = ["docs/install/iam_policy.json"],
|
||||||
|
@ -18,5 +18,5 @@ filegroup(
|
||||||
)
|
)
|
||||||
""",
|
""",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "0cb78cdff9742945c9968ac12c785164a052b52260d19d218bb28a8bec04a2fd",
|
sha256 = "422af7c03ebc73e1be6aea563475ec9ea6396071fa03158b9a3984aa621b8cb1",
|
||||||
)
|
)
|
||||||
|
|
4
3rdparty/gcp-guest-agent/Dockerfile
vendored
4
3rdparty/gcp-guest-agent/Dockerfile
vendored
|
@ -1,4 +1,4 @@
|
||||||
FROM ubuntu:24.04@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782 as build
|
FROM ubuntu:24.04@sha256:b59d21599a2b151e23eea5f6602f4af4d7d31c4e236d22bf0b62b86d2e386b8f as build
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
@ -6,7 +6,7 @@ RUN apt-get update && apt-get install -y \
|
||||||
git
|
git
|
||||||
|
|
||||||
# Install Go
|
# Install Go
|
||||||
ARG GO_VER=1.23.6
|
ARG GO_VER=1.24.4
|
||||||
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
|
RUN wget -q https://go.dev/dl/go${GO_VER}.linux-amd64.tar.gz && \
|
||||||
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
|
tar -C /usr/local -xzf go${GO_VER}.linux-amd64.tar.gz && \
|
||||||
rm go${GO_VER}.linux-amd64.tar.gz
|
rm go${GO_VER}.linux-amd64.tar.gz
|
||||||
|
|
56
CODEOWNERS
56
CODEOWNERS
|
@ -1,66 +1,64 @@
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
.golangci.yml @katexochen
|
.golangci.yml @daniel-weisse
|
||||||
/3rdparty/gcp-guest-agent @3u13r
|
/3rdparty/gcp-guest-agent @msanft
|
||||||
/bazel @burgerdev
|
/bazel @burgerdev
|
||||||
/bazel/ci @katexochen
|
/bootstrapper @msanft
|
||||||
/bazel/sh @katexochen
|
|
||||||
/bootstrapper @3u13r
|
|
||||||
/cli/internal/cloudcmd @daniel-weisse
|
/cli/internal/cloudcmd @daniel-weisse
|
||||||
/cli/internal/cmd/upgrade* @derpsteb
|
/cli/internal/cmd/upgrade* @daniel-weisse
|
||||||
/cli/internal/libvirt @daniel-weisse
|
/cli/internal/libvirt @daniel-weisse
|
||||||
/cli/internal/terraform @elchead
|
/cli/internal/terraform @daniel-weisse
|
||||||
/csi @daniel-weisse
|
/csi @daniel-weisse
|
||||||
/debugd @daniel-weisse
|
/debugd @daniel-weisse
|
||||||
/disk-mapper @daniel-weisse
|
/disk-mapper @daniel-weisse
|
||||||
/docs @thomasten
|
/docs @thomasten
|
||||||
/e2e @3u13r
|
/e2e @msanft
|
||||||
/hack/azure-snp-report-verify @derpsteb
|
/hack/azure-snp-report-verify @msanft
|
||||||
/hack/bazel-deps-mirror @burgerdev
|
/hack/bazel-deps-mirror @burgerdev
|
||||||
/hack/cli-k8s-compatibility @derpsteb
|
/hack/cli-k8s-compatibility @burgerdev
|
||||||
/hack/clidocgen @thomasten
|
/hack/clidocgen @thomasten
|
||||||
/hack/fetch-broken-e2e @katexochen
|
/hack/fetch-broken-e2e @msanft
|
||||||
/hack/gocoverage @katexochen
|
/hack/gocoverage @msanft
|
||||||
/hack/oci-pin @burgerdev
|
/hack/oci-pin @burgerdev
|
||||||
/hack/qemu-metadata-api @daniel-weisse
|
/hack/qemu-metadata-api @daniel-weisse
|
||||||
/hack/remove-tf-providers @katexochen
|
/hack/remove-tf-providers @msanft
|
||||||
/hack/terraform @3u13r
|
/hack/terraform @msanft
|
||||||
/hack/tools @katexochen
|
/hack/tools @msanft
|
||||||
/hack/versioninfogen @daniel-weisse
|
/hack/versioninfogen @daniel-weisse
|
||||||
/image @msanft
|
/image @msanft
|
||||||
/internal/api @derpsteb
|
/internal/api @daniel-weisse
|
||||||
/internal/atls @thomasten
|
/internal/atls @thomasten
|
||||||
/internal/attestation @daniel-weisse
|
/internal/attestation @daniel-weisse
|
||||||
/internal/cloud @3u13r
|
/internal/cloud @msanft
|
||||||
/internal/compatibility @derpsteb
|
/internal/compatibility @daniel-weisse
|
||||||
/internal/config @derpsteb
|
/internal/config @msanft
|
||||||
/internal/constellation/featureset @thomasten
|
/internal/constellation/featureset @thomasten
|
||||||
/internal/constellation/helm @burgerdev
|
/internal/constellation/helm @burgerdev
|
||||||
/internal/constellation/kubecmd @daniel-weisse
|
/internal/constellation/kubecmd @daniel-weisse
|
||||||
/internal/constellation/state @elchead
|
/internal/constellation/state @msanft
|
||||||
/internal/containerimage @burgerdev
|
/internal/containerimage @burgerdev
|
||||||
/internal/crypto @thomasten
|
/internal/crypto @thomasten
|
||||||
/internal/cryptsetup @daniel-weisse
|
/internal/cryptsetup @daniel-weisse
|
||||||
/internal/file @daniel-weisse
|
/internal/file @daniel-weisse
|
||||||
/internal/grpc @thomasten
|
/internal/grpc @thomasten
|
||||||
/internal/imagefetcher @msanft
|
/internal/imagefetcher @msanft
|
||||||
/internal/installer @3u13r
|
/internal/installer @msanft
|
||||||
/internal/kms @daniel-weisse
|
/internal/kms @daniel-weisse
|
||||||
/internal/kubernetes @3u13r
|
/internal/kubernetes @msanft
|
||||||
/internal/license @thomasten
|
/internal/license @thomasten
|
||||||
/internal/logger @daniel-weisse
|
/internal/logger @daniel-weisse
|
||||||
/internal/nodestate @daniel-weisse
|
/internal/nodestate @daniel-weisse
|
||||||
/internal/osimage @msanft
|
/internal/osimage @msanft
|
||||||
/internal/retry @katexochen
|
/internal/retry @msanft
|
||||||
/internal/semver @derpsteb
|
/internal/semver @daniel-weisse
|
||||||
/internal/sigstore @elchead
|
/internal/sigstore @burgerdev
|
||||||
/internal/staticupload @msanft
|
/internal/staticupload @msanft
|
||||||
/internal/versions @3u13r
|
/internal/versions @msanft
|
||||||
/joinservice @daniel-weisse
|
/joinservice @daniel-weisse
|
||||||
/keyservice @daniel-weisse
|
/keyservice @daniel-weisse
|
||||||
/measurement-reader @daniel-weisse
|
/measurement-reader @daniel-weisse
|
||||||
/operators @3u13r
|
/operators @msanft
|
||||||
/terraform-provider-constellation @msanft @elchead
|
/terraform-provider-constellation @msanft
|
||||||
/tools @burgerdev
|
/tools @burgerdev
|
||||||
/upgrade-agent @3u13r
|
/upgrade-agent @msanft
|
||||||
/verify @daniel-weisse
|
/verify @daniel-weisse
|
||||||
# keep-sorted end
|
# keep-sorted end
|
||||||
|
|
|
@ -12,7 +12,7 @@ If you want to support our development:
|
||||||
* Share our projects on social media
|
* Share our projects on social media
|
||||||
* Join the [Confidential Computing Discord](https://discord.gg/rH8QTH56JN)
|
* Join the [Confidential Computing Discord](https://discord.gg/rH8QTH56JN)
|
||||||
|
|
||||||
Constellation is licensed under the [AGPLv3](LICENSE). When contributing, you also need to agree to our [Contributor License Agreement](https://cla-assistant.io/edgelesssys/constellation).
|
Constellation is licensed under the [BUSL](LICENSE). When contributing, you also need to agree to our [Contributor License Agreement](https://cla-assistant.io/edgelesssys/constellation).
|
||||||
|
|
||||||
## Reporting issues and bugs, asking questions
|
## Reporting issues and bugs, asking questions
|
||||||
|
|
||||||
|
|
702
LICENSE
702
LICENSE
|
@ -1,661 +1,91 @@
|
||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
Business Source License 1.1
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
Parameters
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
Licensor: Edgeless Systems GmbH
|
||||||
|
Licensed Work: Constellation
|
||||||
|
The Licensed Work is (c) Edgeless Systems GmbH
|
||||||
|
Additional Use Grant: None
|
||||||
|
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
Change Date: Four years from the date a MINOR version (SemVer) is published.
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
Change License: GNU Affero General Public License Version 3 (AGPL-3.0-only)
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
For information about alternative licensing arrangements for the Software,
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
please visit: https://www.edgeless.systems/enterprise-support
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
Notice
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
|
||||||
and/or modify the software.
|
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
License text copyright (c) 2023 MariaDB plc, All Rights Reserved.
|
||||||
improvements made in alternate versions of the program, if they
|
“Business Source License” is a trademark of MariaDB plc.
|
||||||
receive widespread use, become available for other developers to
|
|
||||||
incorporate. Many developers of free software are heartened and
|
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
|
||||||
letting the public access it on a server without ever releasing its
|
|
||||||
source code to the public.
|
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
-----------------------------------------------------------------------------
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
|
||||||
provide the source code of the modified version running there to the
|
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
|
||||||
code of the modified version.
|
|
||||||
|
|
||||||
An older license, called the Affero General Public License and
|
Business Source License 1.1
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
|
||||||
this license.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
Terms
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
The Licensor hereby grants you the right to copy, modify, create derivative
|
||||||
|
works, redistribute, and make non-production use of the Licensed Work. The
|
||||||
|
Licensor may make an Additional Use Grant, above, permitting limited
|
||||||
|
production use.
|
||||||
|
|
||||||
0. Definitions.
|
Effective on the Change Date, or the fourth anniversary of the first publicly
|
||||||
|
available distribution of a specific version of the Licensed Work under this
|
||||||
|
License, whichever comes first, the Licensor hereby grants you rights under
|
||||||
|
the terms of the Change License, and the rights granted in the paragraph
|
||||||
|
above terminate.
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
If your use of the Licensed Work does not comply with the requirements
|
||||||
|
currently in effect as described in this License, you must purchase a
|
||||||
|
commercial license from the Licensor, its affiliated entities, or authorized
|
||||||
|
resellers, or you must refrain from using the Licensed Work.
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
All copies of the original and modified Licensed Work, and derivative works
|
||||||
works, such as semiconductor masks.
|
of the Licensed Work, are subject to this License. This License applies
|
||||||
|
separately for each version of the Licensed Work and the Change Date may vary
|
||||||
|
for each version of the Licensed Work released by Licensor.
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
You must conspicuously display this License on each original or modified copy
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
of the Licensed Work. If you receive the Licensed Work in original or
|
||||||
"recipients" may be individuals or organizations.
|
modified form from a third party, the terms and conditions set forth in this
|
||||||
|
License apply to your use of that work.
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
Any use of the Licensed Work in violation of this License will automatically
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
terminate your rights under this License for the current and all other
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
versions of the Licensed Work.
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
This License does not grant you any right in any trademark or logo of
|
||||||
on the Program.
|
Licensor or its affiliates (provided that you may use a trademark or logo of
|
||||||
|
Licensor as expressly required by this License).
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
||||||
permission, would make you directly or secondarily liable for
|
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
||||||
infringement under applicable copyright law, except executing it on a
|
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
||||||
distribution (with or without modification), making available to the
|
TITLE.
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
MariaDB hereby grants you permission to use this License’s text to license
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
your works, and to refer to it using the trademark “Business Source License”,
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
as long as you comply with the Covenants of Licensor below.
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
Covenants of Licensor
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
In consideration of the right to use this License’s text and the “Business
|
||||||
|
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
||||||
|
other recipients of the licensed work to be provided by Licensor:
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
||||||
for making modifications to it. "Object code" means any non-source
|
or a license that is compatible with GPL Version 2.0 or a later version,
|
||||||
form of a work.
|
where “compatible” means that software provided under the Change License can
|
||||||
|
be included in a program with software provided under GPL Version 2.0 or a
|
||||||
|
later version. Licensor may specify additional Change Licenses without
|
||||||
|
limitation.
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
2. To either: (a) specify an additional grant of rights to use that does not
|
||||||
standard defined by a recognized standards body, or, in the case of
|
impose any additional restriction on the right granted in this License, as
|
||||||
interfaces specified for a particular programming language, one that
|
the Additional Use Grant; or (b) insert the text “None”.
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
3. To specify a Change Date.
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
4. Not to modify this License in any other way.
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<https://www.gnu.org/licenses/>.
|
|
||||||
|
|
15
MODULE.bazel
15
MODULE.bazel
|
@ -1,6 +1,6 @@
|
||||||
module(name = "constellation")
|
module(name = "constellation")
|
||||||
|
|
||||||
bazel_dep(name = "aspect_bazel_lib", version = "2.14.0")
|
bazel_dep(name = "aspect_bazel_lib", version = "2.19.4")
|
||||||
|
|
||||||
bazel_lib = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
|
bazel_lib = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
|
||||||
bazel_lib.yq()
|
bazel_lib.yq()
|
||||||
|
@ -8,21 +8,22 @@ use_repo(bazel_lib, "jq_toolchains")
|
||||||
use_repo(bazel_lib, "yq_toolchains")
|
use_repo(bazel_lib, "yq_toolchains")
|
||||||
|
|
||||||
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
||||||
bazel_dep(name = "gazelle", version = "0.42.0")
|
bazel_dep(name = "gazelle", version = "0.43.0")
|
||||||
bazel_dep(name = "hermetic_cc_toolchain", version = "3.2.0")
|
bazel_dep(name = "hermetic_cc_toolchain", version = "3.2.0")
|
||||||
bazel_dep(name = "rules_cc", version = "0.1.1")
|
bazel_dep(name = "rules_cc", version = "0.1.2")
|
||||||
bazel_dep(name = "rules_go", version = "0.53.0", repo_name = "io_bazel_rules_go")
|
bazel_dep(name = "rules_go", version = "0.54.0", repo_name = "io_bazel_rules_go")
|
||||||
bazel_dep(name = "rules_pkg", version = "1.1.0")
|
bazel_dep(name = "rules_pkg", version = "1.1.0")
|
||||||
bazel_dep(name = "rules_proto", version = "7.1.0")
|
bazel_dep(name = "rules_proto", version = "7.1.0")
|
||||||
bazel_dep(name = "rules_python", version = "1.2.0")
|
bazel_dep(name = "rules_python", version = "1.4.1")
|
||||||
|
bazel_dep(name = "rules_shell", version = "0.5.0")
|
||||||
|
|
||||||
bazel_dep(name = "buildifier_prebuilt", version = "8.0.1", dev_dependency = True)
|
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)
|
||||||
|
|
||||||
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
|
go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk")
|
||||||
go_sdk.download(
|
go_sdk.download(
|
||||||
name = "go_sdk",
|
name = "go_sdk",
|
||||||
patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"],
|
patches = ["//3rdparty/bazel/org_golang:go_tls_max_handshake_size.patch"],
|
||||||
version = "1.23.6",
|
version = "1.24.4",
|
||||||
)
|
)
|
||||||
|
|
||||||
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
|
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
|
||||||
|
|
3072
MODULE.bazel.lock
generated
3072
MODULE.bazel.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,6 @@
|
||||||
# Always Encrypted Kubernetes
|
# Always Encrypted Kubernetes
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/edgelesssys/constellation/blob/main/LICENSE"><img src="https://img.shields.io/github/license/edgelesssys/constellation" alt="Constellation License"></a>
|
|
||||||
<a href="https://github.com/edgelesssys/constellation/actions/workflows/test-tidy.yml/badge.svg?branch=main"><img src="https://github.com/edgelesssys/constellation/actions/workflows/test-tidy.yml/badge.svg?branch=main" alt="Govulncheck"></a>
|
<a href="https://github.com/edgelesssys/constellation/actions/workflows/test-tidy.yml/badge.svg?branch=main"><img src="https://github.com/edgelesssys/constellation/actions/workflows/test-tidy.yml/badge.svg?branch=main" alt="Govulncheck"></a>
|
||||||
<a href="https://goreportcard.com/report/github.com/edgelesssys/constellation/v2"><img src="https://goreportcard.com/badge/github.com/edgelesssys/constellation/v2" alt="Go Report"></a>
|
<a href="https://goreportcard.com/report/github.com/edgelesssys/constellation/v2"><img src="https://goreportcard.com/badge/github.com/edgelesssys/constellation/v2" alt="Go Report"></a>
|
||||||
<a href="https://discord.gg/rH8QTH56JN"><img src="https://img.shields.io/discord/823900998606651454?color=7389D8&label=discord&logo=discord&logoColor=ffffff" alt="Discord"></a>
|
<a href="https://discord.gg/rH8QTH56JN"><img src="https://img.shields.io/discord/823900998606651454?color=7389D8&label=discord&logo=discord&logoColor=ffffff" alt="Discord"></a>
|
||||||
|
@ -103,7 +102,7 @@ Refer to [`CONTRIBUTING.md`](CONTRIBUTING.md) on how to contribute. The most imp
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
The Constellation source code is licensed under the [GNU Affero General Public License v3.0](LICENSE). Edgeless Systems provides pre-built and signed binaries and images for Constellation. You may use these free of charge to create and run services for internal consumption, evaluation purposes, or non-commercial use. You can find more information in the [license] section of the docs.
|
Constellation is licensed under the [Business Source License 1.1](LICENSE). You may use it free of charge for non-production use. You can find more information in the [license] section of the docs.
|
||||||
|
|
||||||
<!-- refs -->
|
<!-- refs -->
|
||||||
[architecture]: https://docs.edgeless.systems/constellation/architecture/overview
|
[architecture]: https://docs.edgeless.systems/constellation/architecture/overview
|
||||||
|
|
|
@ -57,12 +57,6 @@ license_report() {
|
||||||
|
|
||||||
AGPL-3.0)
|
AGPL-3.0)
|
||||||
case ${pkg} in
|
case ${pkg} in
|
||||||
github.com/edgelesssys/constellation/v2) ;;
|
|
||||||
|
|
||||||
github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/api/v1alpha1) ;;
|
|
||||||
|
|
||||||
github.com/edgelesssys/constellation/v2/operators/constellation-node-operator/api) ;;
|
|
||||||
|
|
||||||
github.com/edgelesssys/go-tdx-qpl) ;;
|
github.com/edgelesssys/go-tdx-qpl) ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
@ -73,6 +67,8 @@ license_report() {
|
||||||
|
|
||||||
Unknown)
|
Unknown)
|
||||||
case ${pkg} in
|
case ${pkg} in
|
||||||
|
github.com/edgelesssys/constellation/v2/*) ;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
not_allowed
|
not_allowed
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -25,7 +25,7 @@ noHeader=$(
|
||||||
--include='*.go' \
|
--include='*.go' \
|
||||||
--exclude-dir 3rdparty \
|
--exclude-dir 3rdparty \
|
||||||
--exclude-dir build \
|
--exclude-dir build \
|
||||||
-e'SPDX-License-Identifier: AGPL-3.0-only' \
|
-e'SPDX-License-Identifier: BUSL-1.1' \
|
||||||
-e'DO NOT EDIT' | { grep -v internal/cloud/openstack/clouds || true; }
|
-e'DO NOT EDIT' | { grep -v internal/cloud/openstack/clouds || true; }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package artifacts
|
package artifacts
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
load("@rules_shell//shell:sh_library.bzl", "sh_library")
|
||||||
|
|
||||||
exports_files([
|
exports_files([
|
||||||
"repo_command.sh.in",
|
"repo_command.sh.in",
|
||||||
"noop_warn.sh.in",
|
"noop_warn.sh.in",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
"""Bazel rules for CI and dev tooling"""
|
"""Bazel rules for CI and dev tooling"""
|
||||||
|
|
||||||
load("@bazel_skylib//lib:shell.bzl", "shell")
|
load("@bazel_skylib//lib:shell.bzl", "shell")
|
||||||
|
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
|
||||||
|
load("@rules_shell//shell:sh_test.bzl", "sh_test")
|
||||||
|
|
||||||
def _sh_template_impl(ctx):
|
def _sh_template_impl(ctx):
|
||||||
out_file = ctx.actions.declare_file(ctx.label.name + ".bash")
|
out_file = ctx.actions.declare_file(ctx.label.name + ".bash")
|
||||||
|
@ -66,8 +68,7 @@ def sh_template(name, **kwargs):
|
||||||
template = template,
|
template = template,
|
||||||
toolchains = toolchains,
|
toolchains = toolchains,
|
||||||
)
|
)
|
||||||
|
sh_binary(
|
||||||
native.sh_binary(
|
|
||||||
name = name,
|
name = name,
|
||||||
srcs = [script_name],
|
srcs = [script_name],
|
||||||
data = [script_name] + data,
|
data = [script_name] + data,
|
||||||
|
@ -95,8 +96,7 @@ def sh_test_template(name, **kwargs):
|
||||||
substitutions = substitutions,
|
substitutions = substitutions,
|
||||||
template = template,
|
template = template,
|
||||||
)
|
)
|
||||||
|
sh_test(
|
||||||
native.sh_test(
|
|
||||||
name = name,
|
name = name,
|
||||||
srcs = [script_name],
|
srcs = [script_name],
|
||||||
data = [script_name] + data,
|
data = [script_name] + data,
|
||||||
|
|
|
@ -138,42 +138,42 @@ def _gofumpt_deps():
|
||||||
http_file(
|
http_file(
|
||||||
name = "com_github_mvdan_gofumpt_linux_amd64",
|
name = "com_github_mvdan_gofumpt_linux_amd64",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/6ff459c1dcae3b0b00844c1a5a4a5b0f547237d8a4f3624aaea8d424aeef24c6",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/11604bbaf7321abcc2fca2c6a37b7e9198bb1e76e5a86f297c07201e8ab1fda9",
|
||||||
"https://github.com/mvdan/gofumpt/releases/download/v0.7.0/gofumpt_v0.7.0_linux_amd64",
|
"https://github.com/mvdan/gofumpt/releases/download/v0.8.0/gofumpt_v0.8.0_linux_amd64",
|
||||||
],
|
],
|
||||||
executable = True,
|
executable = True,
|
||||||
downloaded_file_path = "gofumpt",
|
downloaded_file_path = "gofumpt",
|
||||||
sha256 = "6ff459c1dcae3b0b00844c1a5a4a5b0f547237d8a4f3624aaea8d424aeef24c6",
|
sha256 = "11604bbaf7321abcc2fca2c6a37b7e9198bb1e76e5a86f297c07201e8ab1fda9",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "com_github_mvdan_gofumpt_linux_arm64",
|
name = "com_github_mvdan_gofumpt_linux_arm64",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/00c18c88ef50437629626ba20d677f4648684cb280952814cdd887677d42cbd3",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/787c1d3d4d20e6fe2b0bf06a5a913ac0f50343dbf9a71540724a2b8092a0e6ca",
|
||||||
"https://github.com/mvdan/gofumpt/releases/download/v0.7.0/gofumpt_v0.7.0_linux_arm64",
|
"https://github.com/mvdan/gofumpt/releases/download/v0.8.0/gofumpt_v0.8.0_linux_arm64",
|
||||||
],
|
],
|
||||||
executable = True,
|
executable = True,
|
||||||
downloaded_file_path = "gofumpt",
|
downloaded_file_path = "gofumpt",
|
||||||
sha256 = "00c18c88ef50437629626ba20d677f4648684cb280952814cdd887677d42cbd3",
|
sha256 = "787c1d3d4d20e6fe2b0bf06a5a913ac0f50343dbf9a71540724a2b8092a0e6ca",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "com_github_mvdan_gofumpt_darwin_amd64",
|
name = "com_github_mvdan_gofumpt_darwin_amd64",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/b7d05e092da45c5ec96344ab635b1d6547c3e27c840ba39bc76989934efd7ce3",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/0dda6600cf263b703a5ad93e792b06180c36afdee9638617a91dd552f2c6fb3e",
|
||||||
"https://github.com/mvdan/gofumpt/releases/download/v0.7.0/gofumpt_v0.7.0_darwin_amd64",
|
"https://github.com/mvdan/gofumpt/releases/download/v0.8.0/gofumpt_v0.8.0_darwin_amd64",
|
||||||
],
|
],
|
||||||
executable = True,
|
executable = True,
|
||||||
downloaded_file_path = "gofumpt",
|
downloaded_file_path = "gofumpt",
|
||||||
sha256 = "b7d05e092da45c5ec96344ab635b1d6547c3e27c840ba39bc76989934efd7ce3",
|
sha256 = "0dda6600cf263b703a5ad93e792b06180c36afdee9638617a91dd552f2c6fb3e",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "com_github_mvdan_gofumpt_darwin_arm64",
|
name = "com_github_mvdan_gofumpt_darwin_arm64",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/08f23114760a090b090706d92b8c52b9875b9eb352d76c77aa354d6aa20b045a",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/7e66e92b7a67d1d12839ab030fb7ae38e5e2273474af3762e67bc7fe9471fcd9",
|
||||||
"https://github.com/mvdan/gofumpt/releases/download/v0.7.0/gofumpt_v0.7.0_darwin_arm64",
|
"https://github.com/mvdan/gofumpt/releases/download/v0.8.0/gofumpt_v0.8.0_darwin_arm64",
|
||||||
],
|
],
|
||||||
executable = True,
|
executable = True,
|
||||||
downloaded_file_path = "gofumpt",
|
downloaded_file_path = "gofumpt",
|
||||||
sha256 = "08f23114760a090b090706d92b8c52b9875b9eb352d76c77aa354d6aa20b045a",
|
sha256 = "7e66e92b7a67d1d12839ab030fb7ae38e5e2273474af3762e67bc7fe9471fcd9",
|
||||||
)
|
)
|
||||||
|
|
||||||
def _tfsec_deps():
|
def _tfsec_deps():
|
||||||
|
@ -181,41 +181,41 @@ def _tfsec_deps():
|
||||||
name = "com_github_aquasecurity_tfsec_linux_amd64",
|
name = "com_github_aquasecurity_tfsec_linux_amd64",
|
||||||
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/f643c390e6eabdf4bd64e807ff63abfe977d4f027c0b535eefe7a5c9f391fc28",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/329ae7f67f2f1813ebe08de498719ea7003c75d3ca24bb0b038369062508008e",
|
||||||
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.13/tfsec_1.28.13_linux_amd64.tar.gz",
|
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.14/tfsec_1.28.14_linux_amd64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "f643c390e6eabdf4bd64e807ff63abfe977d4f027c0b535eefe7a5c9f391fc28",
|
sha256 = "329ae7f67f2f1813ebe08de498719ea7003c75d3ca24bb0b038369062508008e",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_aquasecurity_tfsec_linux_arm64",
|
name = "com_github_aquasecurity_tfsec_linux_arm64",
|
||||||
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/4aed1b122f817b684cc48da9cdc4b98b891808969441914570c089883c85ac50",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/13dcbd3602027be49ce6cab7e1c24b0a8e833f0143fe327b0a13b87686541ce0",
|
||||||
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.13/tfsec_1.28.13_linux_arm64.tar.gz",
|
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.14/tfsec_1.28.14_linux_arm64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "4aed1b122f817b684cc48da9cdc4b98b891808969441914570c089883c85ac50",
|
sha256 = "13dcbd3602027be49ce6cab7e1c24b0a8e833f0143fe327b0a13b87686541ce0",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_aquasecurity_tfsec_darwin_amd64",
|
name = "com_github_aquasecurity_tfsec_darwin_amd64",
|
||||||
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/966c7656f797c120dceb56a208a50dbf6a363c30876662a28e1c65505afca10d",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/0aeef31f83d6f44ba9ba5b6cbb954304c772dee73ac704e38896940f94af887a",
|
||||||
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.13/tfsec_1.28.13_darwin_amd64.tar.gz",
|
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.14/tfsec_1.28.14_darwin_amd64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "966c7656f797c120dceb56a208a50dbf6a363c30876662a28e1c65505afca10d",
|
sha256 = "0aeef31f83d6f44ba9ba5b6cbb954304c772dee73ac704e38896940f94af887a",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_aquasecurity_tfsec_darwin_arm64",
|
name = "com_github_aquasecurity_tfsec_darwin_arm64",
|
||||||
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["tfsec"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/a381580c81d3413bb3fe07aa91ab89e51c1bbbd33c848194a2b43e9be3729c16",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/f39d59a3f9be4eeb3d965657653ad62243103a3d921ce52ca8f907cff45896f5",
|
||||||
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.13/tfsec_1.28.13_darwin_arm64.tar.gz",
|
"https://github.com/aquasecurity/tfsec/releases/download/v1.28.14/tfsec_1.28.14_darwin_arm64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "a381580c81d3413bb3fe07aa91ab89e51c1bbbd33c848194a2b43e9be3729c16",
|
sha256 = "f39d59a3f9be4eeb3d965657653ad62243103a3d921ce52ca8f907cff45896f5",
|
||||||
)
|
)
|
||||||
|
|
||||||
def _golangci_lint_deps():
|
def _golangci_lint_deps():
|
||||||
|
@ -223,45 +223,45 @@ def _golangci_lint_deps():
|
||||||
name = "com_github_golangci_golangci_lint_linux_amd64",
|
name = "com_github_golangci_golangci_lint_linux_amd64",
|
||||||
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/89cc8a7810dc63b9a37900da03e37c3601caf46d42265d774e0f1a5d883d53e2",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/e55e0eb515936c0fbd178bce504798a9bd2f0b191e5e357768b18fd5415ee541",
|
||||||
"https://github.com/golangci/golangci-lint/releases/download/v2.0.2/golangci-lint-2.0.2-linux-amd64.tar.gz",
|
"https://github.com/golangci/golangci-lint/releases/download/v2.1.6/golangci-lint-2.1.6-linux-amd64.tar.gz",
|
||||||
],
|
],
|
||||||
strip_prefix = "golangci-lint-2.0.2-linux-amd64",
|
strip_prefix = "golangci-lint-2.1.6-linux-amd64",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "89cc8a7810dc63b9a37900da03e37c3601caf46d42265d774e0f1a5d883d53e2",
|
sha256 = "e55e0eb515936c0fbd178bce504798a9bd2f0b191e5e357768b18fd5415ee541",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_golangci_golangci_lint_linux_arm64",
|
name = "com_github_golangci_golangci_lint_linux_arm64",
|
||||||
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/789d5b91219ac68c2336f77d41cd7e33a910420594780f455893f8453d09595b",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/582eb73880f4408d7fb89f12b502d577bd7b0b63d8c681da92bb6b9d934d4363",
|
||||||
"https://github.com/golangci/golangci-lint/releases/download/v2.0.2/golangci-lint-2.0.2-linux-arm64.tar.gz",
|
"https://github.com/golangci/golangci-lint/releases/download/v2.1.6/golangci-lint-2.1.6-linux-arm64.tar.gz",
|
||||||
],
|
],
|
||||||
strip_prefix = "golangci-lint-2.0.2-linux-arm64",
|
strip_prefix = "golangci-lint-2.1.6-linux-arm64",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "789d5b91219ac68c2336f77d41cd7e33a910420594780f455893f8453d09595b",
|
sha256 = "582eb73880f4408d7fb89f12b502d577bd7b0b63d8c681da92bb6b9d934d4363",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_golangci_golangci_lint_darwin_amd64",
|
name = "com_github_golangci_golangci_lint_darwin_amd64",
|
||||||
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/a88cbdc86b483fe44e90bf2dcc3fec2af8c754116e6edf0aa6592cac5baa7a0e",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/e091107c4ca7e283902343ba3a09d14fb56b86e071effd461ce9d67193ef580e",
|
||||||
"https://github.com/golangci/golangci-lint/releases/download/v2.0.2/golangci-lint-2.0.2-darwin-amd64.tar.gz",
|
"https://github.com/golangci/golangci-lint/releases/download/v2.1.6/golangci-lint-2.1.6-darwin-amd64.tar.gz",
|
||||||
],
|
],
|
||||||
strip_prefix = "golangci-lint-2.0.2-darwin-amd64",
|
strip_prefix = "golangci-lint-2.1.6-darwin-amd64",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "a88cbdc86b483fe44e90bf2dcc3fec2af8c754116e6edf0aa6592cac5baa7a0e",
|
sha256 = "e091107c4ca7e283902343ba3a09d14fb56b86e071effd461ce9d67193ef580e",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_golangci_golangci_lint_darwin_arm64",
|
name = "com_github_golangci_golangci_lint_darwin_arm64",
|
||||||
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
build_file = "//bazel/toolchains:BUILD.golangci.bazel",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/664550e7954f5f4451aae99b4f7382c1a47039c66f39ca605f5d9af1a0d32b49",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/90783fa092a0f64a4f7b7d419f3da1f53207e300261773babe962957240e9ea6",
|
||||||
"https://github.com/golangci/golangci-lint/releases/download/v2.0.2/golangci-lint-2.0.2-darwin-arm64.tar.gz",
|
"https://github.com/golangci/golangci-lint/releases/download/v2.1.6/golangci-lint-2.1.6-darwin-arm64.tar.gz",
|
||||||
],
|
],
|
||||||
strip_prefix = "golangci-lint-2.0.2-darwin-arm64",
|
strip_prefix = "golangci-lint-2.1.6-darwin-arm64",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "664550e7954f5f4451aae99b4f7382c1a47039c66f39ca605f5d9af1a0d32b49",
|
sha256 = "90783fa092a0f64a4f7b7d419f3da1f53207e300261773babe962957240e9ea6",
|
||||||
)
|
)
|
||||||
|
|
||||||
def _buf_deps():
|
def _buf_deps():
|
||||||
|
@ -270,44 +270,44 @@ def _buf_deps():
|
||||||
strip_prefix = "buf/bin",
|
strip_prefix = "buf/bin",
|
||||||
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/96f701c56484899c85dd0fe3895fad431226e20312f2bd5af2e33a87d260d4ce",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/fa10faf16973f3861992cc2687b651350d70eafd467aea72cf0994556c2a0927",
|
||||||
"https://github.com/bufbuild/buf/releases/download/v1.50.1/buf-Linux-x86_64.tar.gz",
|
"https://github.com/bufbuild/buf/releases/download/v1.54.0/buf-Linux-x86_64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "96f701c56484899c85dd0fe3895fad431226e20312f2bd5af2e33a87d260d4ce",
|
sha256 = "fa10faf16973f3861992cc2687b651350d70eafd467aea72cf0994556c2a0927",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_bufbuild_buf_linux_arm64",
|
name = "com_github_bufbuild_buf_linux_arm64",
|
||||||
strip_prefix = "buf/bin",
|
strip_prefix = "buf/bin",
|
||||||
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/92acc02c6d9126a8ed7e0d18793b6e11289c483a550d21e7b7a4271264925bca",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/f41ef4431858556ece6a77662d6b9317fa4406585998cb3dffb7403b3e86713e",
|
||||||
"https://github.com/bufbuild/buf/releases/download/v1.50.1/buf-Linux-aarch64.tar.gz",
|
"https://github.com/bufbuild/buf/releases/download/v1.54.0/buf-Linux-aarch64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "92acc02c6d9126a8ed7e0d18793b6e11289c483a550d21e7b7a4271264925bca",
|
sha256 = "f41ef4431858556ece6a77662d6b9317fa4406585998cb3dffb7403b3e86713e",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_bufbuild_buf_darwin_amd64",
|
name = "com_github_bufbuild_buf_darwin_amd64",
|
||||||
strip_prefix = "buf/bin",
|
strip_prefix = "buf/bin",
|
||||||
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/28acc2c4c6b5698367f39d1de90b2259ce0d2d48ee4a17b636d69aa9498138d2",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/22c9836a836b867e49e9d0ef223fd934cbf2690e7400facddb9be07b8809f889",
|
||||||
"https://github.com/bufbuild/buf/releases/download/v1.50.1/buf-Darwin-x86_64.tar.gz",
|
"https://github.com/bufbuild/buf/releases/download/v1.54.0/buf-Darwin-x86_64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "28acc2c4c6b5698367f39d1de90b2259ce0d2d48ee4a17b636d69aa9498138d2",
|
sha256 = "22c9836a836b867e49e9d0ef223fd934cbf2690e7400facddb9be07b8809f889",
|
||||||
)
|
)
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_github_bufbuild_buf_darwin_arm64",
|
name = "com_github_bufbuild_buf_darwin_arm64",
|
||||||
strip_prefix = "buf/bin",
|
strip_prefix = "buf/bin",
|
||||||
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
build_file_content = """exports_files(["buf"], visibility = ["//visibility:public"])""",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/06df191fc2f0df70686a97370f2988a22a1d7cd69fb789d296bbd884b5280d29",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/f01f32a690efab3ef22a1c821aebc0c4bec7ca63faddbf64408d7d614e9d7f92",
|
||||||
"https://github.com/bufbuild/buf/releases/download/v1.50.1/buf-Darwin-arm64.tar.gz",
|
"https://github.com/bufbuild/buf/releases/download/v1.54.0/buf-Darwin-arm64.tar.gz",
|
||||||
],
|
],
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
sha256 = "06df191fc2f0df70686a97370f2988a22a1d7cd69fb789d296bbd884b5280d29",
|
sha256 = "f01f32a690efab3ef22a1c821aebc0c4bec7ca63faddbf64408d7d614e9d7f92",
|
||||||
)
|
)
|
||||||
|
|
||||||
def _talos_docgen_deps():
|
def _talos_docgen_deps():
|
||||||
|
|
|
@ -7,7 +7,7 @@ load("@rules_oci//oci:pull.bzl", "oci_pull")
|
||||||
def containter_image_deps():
|
def containter_image_deps():
|
||||||
oci_pull(
|
oci_pull(
|
||||||
name = "distroless_static",
|
name = "distroless_static",
|
||||||
digest = "sha256:3f2b64ef97bd285e36132c684e6b2ae8f2723293d09aae046196cca64251acac",
|
digest = "sha256:3d0f463de06b7ddff27684ec3bfd0b54a425149d0f8685308b1fdf297b0265e9",
|
||||||
image = "gcr.io/distroless/static",
|
image = "gcr.io/distroless/static",
|
||||||
platforms = [
|
platforms = [
|
||||||
"linux/amd64",
|
"linux/amd64",
|
||||||
|
@ -16,6 +16,6 @@ def containter_image_deps():
|
||||||
)
|
)
|
||||||
oci_pull(
|
oci_pull(
|
||||||
name = "libvirtd_base",
|
name = "libvirtd_base",
|
||||||
digest = "sha256:48ba2401ea66490ca1997b9d3e72b4bef7557ffbcdb1c95651fb3308f32fda58",
|
digest = "sha256:f23e0f587860c841adde25b1b4f0d99aa4fbce1c92b01b5b46ab5fa35980a135",
|
||||||
image = "ghcr.io/edgelesssys/constellation/libvirtd-base",
|
image = "ghcr.io/edgelesssys/constellation/libvirtd-base",
|
||||||
)
|
)
|
||||||
|
|
|
@ -9,38 +9,38 @@ def kernel_rpms():
|
||||||
http_file(
|
http_file(
|
||||||
name = "kernel_lts",
|
name = "kernel_lts",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/c87995e19c04e2f033e6db5e92bfcb845ac015722e776c09a7af4c82c86cd273",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/7834bc4bc7e088c98505956382884bdc670ab9a9283288b7fef04a43df31356e",
|
||||||
"https://cdn.confidential.cloud/constellation/kernel/6.6.30-100.constellation/kernel-6.6.30-100.constellation.fc40.x86_64.rpm",
|
"https://cdn.confidential.cloud/constellation/kernel/6.6.87-100.constellation/kernel-6.6.87-100.constellation.fc40.x86_64.rpm",
|
||||||
],
|
],
|
||||||
downloaded_file_path = "kernel-lts.rpm",
|
downloaded_file_path = "kernel-lts.rpm",
|
||||||
sha256 = "c87995e19c04e2f033e6db5e92bfcb845ac015722e776c09a7af4c82c86cd273",
|
sha256 = "7834bc4bc7e088c98505956382884bdc670ab9a9283288b7fef04a43df31356e",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "kernel_core_lts",
|
name = "kernel_core_lts",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/5692d862b0cc0c442c581e5f3dc9f3c36cabda0c29d3f62e9b6313a6ec88b140",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/2763c699d1e2f9810421ac7af2e9c94c6f98533e83f2938c26f1d824e3559b97",
|
||||||
"https://cdn.confidential.cloud/constellation/kernel/6.6.30-100.constellation/kernel-core-6.6.30-100.constellation.fc40.x86_64.rpm",
|
"https://cdn.confidential.cloud/constellation/kernel/6.6.87-100.constellation/kernel-core-6.6.87-100.constellation.fc40.x86_64.rpm",
|
||||||
],
|
],
|
||||||
downloaded_file_path = "kernel-core-lts.rpm",
|
downloaded_file_path = "kernel-core-lts.rpm",
|
||||||
sha256 = "5692d862b0cc0c442c581e5f3dc9f3c36cabda0c29d3f62e9b6313a6ec88b140",
|
sha256 = "2763c699d1e2f9810421ac7af2e9c94c6f98533e83f2938c26f1d824e3559b97",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "kernel_modules_lts",
|
name = "kernel_modules_lts",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/e1b697343b4f8ed8e992cd92860208dc1c28eb8b25a88f42f426326a0bbc307f",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/a7604eec263f190db573d809d20336bbf75e46c51f5977f5db95bb88bfec56d3",
|
||||||
"https://cdn.confidential.cloud/constellation/kernel/6.6.30-100.constellation/kernel-modules-6.6.30-100.constellation.fc40.x86_64.rpm",
|
"https://cdn.confidential.cloud/constellation/kernel/6.6.87-100.constellation/kernel-modules-6.6.87-100.constellation.fc40.x86_64.rpm",
|
||||||
],
|
],
|
||||||
downloaded_file_path = "kernel-modules-lts.rpm",
|
downloaded_file_path = "kernel-modules-lts.rpm",
|
||||||
sha256 = "e1b697343b4f8ed8e992cd92860208dc1c28eb8b25a88f42f426326a0bbc307f",
|
sha256 = "a7604eec263f190db573d809d20336bbf75e46c51f5977f5db95bb88bfec56d3",
|
||||||
)
|
)
|
||||||
http_file(
|
http_file(
|
||||||
name = "kernel_modules_core_lts",
|
name = "kernel_modules_core_lts",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/448c6b10d9ed02aed078ff77223f5e495b2041be12d92eb0e5ca5726a08e0626",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/648fd503d7d54608fbd62ace87c4da098f72abbaac1ab7e343327fc24ccef7f8",
|
||||||
"https://cdn.confidential.cloud/constellation/kernel/6.6.30-100.constellation/kernel-modules-core-6.6.30-100.constellation.fc40.x86_64.rpm",
|
"https://cdn.confidential.cloud/constellation/kernel/6.6.87-100.constellation/kernel-modules-core-6.6.87-100.constellation.fc40.x86_64.rpm",
|
||||||
],
|
],
|
||||||
downloaded_file_path = "kernel-modules-core-lts.rpm",
|
downloaded_file_path = "kernel-modules-core-lts.rpm",
|
||||||
sha256 = "448c6b10d9ed02aed078ff77223f5e495b2041be12d92eb0e5ca5726a08e0626",
|
sha256 = "648fd503d7d54608fbd62ace87c4da098f72abbaac1ab7e343327fc24ccef7f8",
|
||||||
)
|
)
|
||||||
|
|
||||||
# mainline kernel
|
# mainline kernel
|
||||||
|
|
|
@ -7,13 +7,13 @@ def oci_deps():
|
||||||
# Remove this override once https://github.com/bazel-contrib/rules_oci/issues/420 is fixed.
|
# Remove this override once https://github.com/bazel-contrib/rules_oci/issues/420 is fixed.
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "rules_oci",
|
name = "rules_oci",
|
||||||
strip_prefix = "rules_oci-2.2.1",
|
strip_prefix = "rules_oci-2.2.5",
|
||||||
type = "tar.gz",
|
type = "tar.gz",
|
||||||
urls = [
|
urls = [
|
||||||
"https://cdn.confidential.cloud/constellation/cas/sha256/cfea16076ebbec1faea494882ab97d94b1a62d6bcd5aceabad8f95ea0d0a1361",
|
"https://cdn.confidential.cloud/constellation/cas/sha256/361c417e8c95cd7c3d8b5cf4b202e76bac8d41532131534ff8e6fa43aa161142",
|
||||||
"https://github.com/bazel-contrib/rules_oci/releases/download/v2.2.1/rules_oci-v2.2.1.tar.gz",
|
"https://github.com/bazel-contrib/rules_oci/releases/download/v2.2.5/rules_oci-v2.2.5.tar.gz",
|
||||||
],
|
],
|
||||||
sha256 = "cfea16076ebbec1faea494882ab97d94b1a62d6bcd5aceabad8f95ea0d0a1361",
|
sha256 = "361c417e8c95cd7c3d8b5cf4b202e76bac8d41532131534ff8e6fa43aa161142",
|
||||||
patches = ["//bazel/toolchains:0001-disable-Windows-support.patch"],
|
patches = ["//bazel/toolchains:0001-disable-Windows-support.patch"],
|
||||||
patch_args = ["-p1"],
|
patch_args = ["-p1"],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// versions:
|
// versions:
|
||||||
// protoc-gen-go v1.36.5
|
// protoc-gen-go v1.36.6
|
||||||
// protoc v5.29.1
|
// protoc v5.29.1
|
||||||
// source: bootstrapper/initproto/init.proto
|
// source: bootstrapper/initproto/init.proto
|
||||||
|
|
||||||
|
@ -458,83 +458,46 @@ func (x *KubernetesComponent) GetExtract() bool {
|
||||||
|
|
||||||
var File_bootstrapper_initproto_init_proto protoreflect.FileDescriptor
|
var File_bootstrapper_initproto_init_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_bootstrapper_initproto_init_proto_rawDesc = string([]byte{
|
const file_bootstrapper_initproto_init_proto_rawDesc = "" +
|
||||||
0x0a, 0x21, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2f, 0x69,
|
"\n" +
|
||||||
0x6e, 0x69, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x69, 0x74, 0x2e, 0x70, 0x72,
|
"!bootstrapper/initproto/init.proto\x12\x04init\x1a-internal/versions/components/components.proto\"\xd0\x03\n" +
|
||||||
0x6f, 0x74, 0x6f, 0x12, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x1a, 0x2d, 0x69, 0x6e, 0x74, 0x65, 0x72,
|
"\vInitRequest\x12\x17\n" +
|
||||||
0x6e, 0x61, 0x6c, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x63, 0x6f, 0x6d,
|
"\akms_uri\x18\x01 \x01(\tR\x06kmsUri\x12\x1f\n" +
|
||||||
0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e,
|
"\vstorage_uri\x18\x02 \x01(\tR\n" +
|
||||||
0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x03, 0x0a, 0x0b, 0x49, 0x6e, 0x69,
|
"storageUri\x12)\n" +
|
||||||
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6b, 0x6d, 0x73, 0x5f,
|
"\x10measurement_salt\x18\x03 \x01(\fR\x0fmeasurementSalt\x12-\n" +
|
||||||
0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x6d, 0x73, 0x55, 0x72,
|
"\x12kubernetes_version\x18\x05 \x01(\tR\x11kubernetesVersion\x12)\n" +
|
||||||
0x69, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x69,
|
"\x10conformance_mode\x18\x06 \x01(\bR\x0fconformanceMode\x12J\n" +
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x55,
|
"\x15kubernetes_components\x18\a \x03(\v2\x15.components.ComponentR\x14kubernetesComponents\x12\x1f\n" +
|
||||||
0x72, 0x69, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e,
|
"\vinit_secret\x18\b \x01(\fR\n" +
|
||||||
0x74, 0x5f, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6d, 0x65,
|
"initSecret\x12!\n" +
|
||||||
0x61, 0x73, 0x75, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x61, 0x6c, 0x74, 0x12, 0x2d, 0x0a,
|
"\fcluster_name\x18\t \x01(\tR\vclusterName\x12.\n" +
|
||||||
0x12, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73,
|
"\x13apiserver_cert_sans\x18\n" +
|
||||||
0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6b, 0x75, 0x62, 0x65, 0x72,
|
" \x03(\tR\x11apiserverCertSans\x12!\n" +
|
||||||
0x6e, 0x65, 0x74, 0x65, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10,
|
"\fservice_cidr\x18\v \x01(\tR\vserviceCidrJ\x04\b\x04\x10\x05R\x19cloud_service_account_uri\"\xc1\x01\n" +
|
||||||
0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65,
|
"\fInitResponse\x12>\n" +
|
||||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61,
|
"\finit_success\x18\x01 \x01(\v2\x19.init.InitSuccessResponseH\x00R\vinitSuccess\x12>\n" +
|
||||||
0x6e, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x4a, 0x0a, 0x15, 0x6b, 0x75, 0x62, 0x65, 0x72,
|
"\finit_failure\x18\x02 \x01(\v2\x19.init.InitFailureResponseH\x00R\vinitFailure\x12)\n" +
|
||||||
0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73,
|
"\x03log\x18\x03 \x01(\v2\x15.init.LogResponseTypeH\x00R\x03logB\x06\n" +
|
||||||
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
|
"\x04kind\"o\n" +
|
||||||
0x6e, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x6b,
|
"\x13InitSuccessResponse\x12\x1e\n" +
|
||||||
0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65,
|
"\n" +
|
||||||
0x6e, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x69, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72,
|
"kubeconfig\x18\x01 \x01(\fR\n" +
|
||||||
0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x69, 0x74, 0x53, 0x65,
|
"kubeconfig\x12\x19\n" +
|
||||||
0x63, 0x72, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f,
|
"\bowner_id\x18\x02 \x01(\fR\aownerId\x12\x1d\n" +
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73,
|
"\n" +
|
||||||
0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x61, 0x70, 0x69, 0x73, 0x65,
|
"cluster_id\x18\x03 \x01(\fR\tclusterId\"+\n" +
|
||||||
0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x73, 0x61, 0x6e, 0x73, 0x18, 0x0a,
|
"\x13InitFailureResponse\x12\x14\n" +
|
||||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x70, 0x69, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43,
|
"\x05error\x18\x01 \x01(\tR\x05error\"#\n" +
|
||||||
0x65, 0x72, 0x74, 0x53, 0x61, 0x6e, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69,
|
"\x0fLogResponseType\x12\x10\n" +
|
||||||
0x63, 0x65, 0x5f, 0x63, 0x69, 0x64, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73,
|
"\x03log\x18\x01 \x01(\fR\x03log\"x\n" +
|
||||||
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x69, 0x64, 0x72, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05,
|
"\x13KubernetesComponent\x12\x10\n" +
|
||||||
0x52, 0x19, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f,
|
"\x03url\x18\x01 \x01(\tR\x03url\x12\x12\n" +
|
||||||
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x72, 0x69, 0x22, 0xc1, 0x01, 0x0a, 0x0c,
|
"\x04hash\x18\x02 \x01(\tR\x04hash\x12!\n" +
|
||||||
0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0c,
|
"\finstall_path\x18\x03 \x01(\tR\vinstallPath\x12\x18\n" +
|
||||||
0x69, 0x6e, 0x69, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
|
"\aextract\x18\x04 \x01(\bR\aextract26\n" +
|
||||||
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x75,
|
"\x03API\x12/\n" +
|
||||||
0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52,
|
"\x04Init\x12\x11.init.InitRequest\x1a\x12.init.InitResponse0\x01B@Z>github.com/edgelesssys/constellation/v2/bootstrapper/initprotob\x06proto3"
|
||||||
0x0b, 0x69, 0x6e, 0x69, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0c,
|
|
||||||
0x69, 0x6e, 0x69, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
||||||
0x28, 0x0b, 0x32, 0x19, 0x2e, 0x69, 0x6e, 0x69, 0x74, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x61,
|
|
||||||
0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52,
|
|
||||||
0x0b, 0x69, 0x6e, 0x69, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x29, 0x0a, 0x03,
|
|
||||||
0x6c, 0x6f, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x69, 0x6e, 0x69, 0x74,
|
|
||||||
0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65,
|
|
||||||
0x48, 0x00, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22,
|
|
||||||
0x6f, 0x0a, 0x13, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65,
|
|
||||||
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6b, 0x75, 0x62, 0x65, 0x63, 0x6f,
|
|
||||||
0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6b, 0x75, 0x62, 0x65,
|
|
||||||
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f,
|
|
||||||
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49,
|
|
||||||
0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18,
|
|
||||||
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64,
|
|
||||||
0x22, 0x2b, 0x0a, 0x13, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52,
|
|
||||||
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x23, 0x0a,
|
|
||||||
0x0f, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x79, 0x70, 0x65,
|
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6c,
|
|
||||||
0x6f, 0x67, 0x22, 0x78, 0x0a, 0x13, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73,
|
|
||||||
0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x68,
|
|
||||||
0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12,
|
|
||||||
0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18,
|
|
||||||
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x61,
|
|
||||||
0x74, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20,
|
|
||||||
0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x78, 0x74, 0x72, 0x61, 0x63, 0x74, 0x32, 0x36, 0x0a, 0x03,
|
|
||||||
0x41, 0x50, 0x49, 0x12, 0x2f, 0x0a, 0x04, 0x49, 0x6e, 0x69, 0x74, 0x12, 0x11, 0x2e, 0x69, 0x6e,
|
|
||||||
0x69, 0x74, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12,
|
|
||||||
0x2e, 0x69, 0x6e, 0x69, 0x74, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
||||||
0x73, 0x65, 0x30, 0x01, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
|
|
||||||
0x6f, 0x6d, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x65, 0x73, 0x73, 0x73, 0x79, 0x73, 0x2f, 0x63,
|
|
||||||
0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x32, 0x2f,
|
|
||||||
0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x69,
|
|
||||||
0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
})
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
file_bootstrapper_initproto_init_proto_rawDescOnce sync.Once
|
file_bootstrapper_initproto_init_proto_rawDescOnce sync.Once
|
||||||
|
|
26
bootstrapper/internal/addresses/BUILD.bazel
Normal file
26
bootstrapper/internal/addresses/BUILD.bazel
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||||
|
load("//bazel/go:go_test.bzl", "go_test")
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "interfaces",
|
||||||
|
srcs = ["interfaces.go"],
|
||||||
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/interfaces",
|
||||||
|
visibility = ["//bootstrapper:__subpackages__"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_library(
|
||||||
|
name = "addresses",
|
||||||
|
srcs = ["addresses.go"],
|
||||||
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/addresses",
|
||||||
|
visibility = ["//bootstrapper:__subpackages__"],
|
||||||
|
)
|
||||||
|
|
||||||
|
go_test(
|
||||||
|
name = "addresses_test",
|
||||||
|
srcs = ["addresses_test.go"],
|
||||||
|
deps = [
|
||||||
|
":addresses",
|
||||||
|
"@com_github_stretchr_testify//assert",
|
||||||
|
"@com_github_stretchr_testify//require",
|
||||||
|
],
|
||||||
|
)
|
45
bootstrapper/internal/addresses/addresses.go
Normal file
45
bootstrapper/internal/addresses/addresses.go
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
package addresses
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net"
|
||||||
|
)
|
||||||
|
|
||||||
|
// GetMachineNetworkAddresses retrieves all network interface addresses.
|
||||||
|
func GetMachineNetworkAddresses(interfaces []NetInterface) ([]string, error) {
|
||||||
|
var addresses []string
|
||||||
|
|
||||||
|
for _, i := range interfaces {
|
||||||
|
addrs, err := i.Addrs()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
for _, addr := range addrs {
|
||||||
|
var ip net.IP
|
||||||
|
switch v := addr.(type) {
|
||||||
|
case *net.IPNet:
|
||||||
|
ip = v.IP
|
||||||
|
case *net.IPAddr:
|
||||||
|
ip = v.IP
|
||||||
|
default:
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if ip.IsLoopback() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
addresses = append(addresses, ip.String())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return addresses, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NetInterface represents a network interface used to get network addresses.
|
||||||
|
type NetInterface interface {
|
||||||
|
Addrs() ([]net.Addr, error)
|
||||||
|
}
|
67
bootstrapper/internal/addresses/addresses_test.go
Normal file
67
bootstrapper/internal/addresses/addresses_test.go
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
/*
|
||||||
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
package addresses_test
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"net"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/addresses"
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestGetMachineNetworkAddresses(t *testing.T) {
|
||||||
|
_, someAddr, err := net.ParseCIDR("10.9.0.1/24")
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
testCases := map[string]struct {
|
||||||
|
interfaces []addresses.NetInterface
|
||||||
|
wantErr bool
|
||||||
|
}{
|
||||||
|
"successful": {
|
||||||
|
interfaces: []addresses.NetInterface{
|
||||||
|
&mockNetInterface{
|
||||||
|
addrs: []net.Addr{
|
||||||
|
someAddr,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"unsuccessful": {
|
||||||
|
interfaces: []addresses.NetInterface{
|
||||||
|
&mockNetInterface{addrs: nil, err: errors.New("someError")},
|
||||||
|
},
|
||||||
|
wantErr: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
for name, tc := range testCases {
|
||||||
|
t.Run(name, func(t *testing.T) {
|
||||||
|
assert := assert.New(t)
|
||||||
|
|
||||||
|
addrs, err := addresses.GetMachineNetworkAddresses(tc.interfaces)
|
||||||
|
|
||||||
|
if tc.wantErr {
|
||||||
|
assert.Error(err)
|
||||||
|
} else {
|
||||||
|
assert.Equal([]string{"10.9.0.0"}, addrs)
|
||||||
|
assert.NoError(err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type mockNetInterface struct {
|
||||||
|
addrs []net.Addr
|
||||||
|
err error
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mockNetInterface) Addrs() ([]net.Addr, error) {
|
||||||
|
return m.addrs, m.err
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package certificate provides functions to create a certificate request and matching private key.
|
// Package certificate provides functions to create a certificate request and matching private key.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package clean provides functionality to stop a list of services gracefully and synchronously.
|
// Package clean provides functionality to stop a list of services gracefully and synchronously.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package clean
|
package clean
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package diskencryption handles interaction with a node's state disk.
|
// Package diskencryption handles interaction with a node's state disk.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package diskencryption
|
package diskencryption
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// The etcdio package provides utilities to manage etcd I/O.
|
// The etcdio package provides utilities to manage etcd I/O.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package etcdio
|
package etcdio
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package etcdio
|
package etcdio
|
||||||
|
|
|
@ -8,6 +8,7 @@ go_library(
|
||||||
visibility = ["//bootstrapper:__subpackages__"],
|
visibility = ["//bootstrapper:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
"//bootstrapper/initproto",
|
"//bootstrapper/initproto",
|
||||||
|
"//bootstrapper/internal/addresses",
|
||||||
"//bootstrapper/internal/journald",
|
"//bootstrapper/internal/journald",
|
||||||
"//internal/atls",
|
"//internal/atls",
|
||||||
"//internal/attestation",
|
"//internal/attestation",
|
||||||
|
@ -43,6 +44,7 @@ go_test(
|
||||||
"//bootstrapper/initproto",
|
"//bootstrapper/initproto",
|
||||||
"//internal/atls",
|
"//internal/atls",
|
||||||
"//internal/attestation/variant",
|
"//internal/attestation/variant",
|
||||||
|
"//internal/constants",
|
||||||
"//internal/crypto/testvector",
|
"//internal/crypto/testvector",
|
||||||
"//internal/file",
|
"//internal/file",
|
||||||
"//internal/kms/setup",
|
"//internal/kms/setup",
|
||||||
|
@ -54,6 +56,7 @@ go_test(
|
||||||
"@com_github_stretchr_testify//require",
|
"@com_github_stretchr_testify//require",
|
||||||
"@org_golang_google_grpc//:grpc",
|
"@org_golang_google_grpc//:grpc",
|
||||||
"@org_golang_x_crypto//bcrypt",
|
"@org_golang_x_crypto//bcrypt",
|
||||||
|
"@org_golang_x_crypto//ssh",
|
||||||
"@org_uber_go_goleak//:goleak",
|
"@org_uber_go_goleak//:goleak",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -26,11 +26,13 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
|
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
|
||||||
|
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/addresses"
|
||||||
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/journald"
|
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/journald"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/atls"
|
"github.com/edgelesssys/constellation/v2/internal/atls"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/attestation"
|
"github.com/edgelesssys/constellation/v2/internal/attestation"
|
||||||
|
@ -153,35 +155,23 @@ func (s *Server) Init(req *initproto.InitRequest, stream initproto.API_InitServe
|
||||||
s.kmsURI = req.KmsUri
|
s.kmsURI = req.KmsUri
|
||||||
|
|
||||||
if err := bcrypt.CompareHashAndPassword(s.initSecretHash, req.InitSecret); err != nil {
|
if err := bcrypt.CompareHashAndPassword(s.initSecretHash, req.InitSecret); err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "invalid init secret %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "invalid init secret %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cloudKms, err := kmssetup.KMS(stream.Context(), req.StorageUri, req.KmsUri)
|
cloudKms, err := kmssetup.KMS(stream.Context(), req.StorageUri, req.KmsUri)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "creating kms client: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "creating kms client: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate values for cluster attestation
|
// generate values for cluster attestation
|
||||||
clusterID, err := deriveMeasurementValues(stream.Context(), req.MeasurementSalt, cloudKms)
|
clusterID, err := deriveMeasurementValues(stream.Context(), req.MeasurementSalt, cloudKms)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "deriving measurement values: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "deriving measurement values: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeLockAcquired, err := s.nodeLock.TryLockOnce(clusterID)
|
nodeLockAcquired, err := s.nodeLock.TryLockOnce(clusterID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "locking node: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "locking node: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
if !nodeLockAcquired {
|
if !nodeLockAcquired {
|
||||||
// The join client seems to already have a connection to an
|
// The join client seems to already have a connection to an
|
||||||
|
@ -208,10 +198,7 @@ func (s *Server) Init(req *initproto.InitRequest, stream initproto.API_InitServe
|
||||||
}()
|
}()
|
||||||
|
|
||||||
if err := s.setupDisk(stream.Context(), cloudKms); err != nil {
|
if err := s.setupDisk(stream.Context(), cloudKms); err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "setting up disk: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "setting up disk: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
state := nodestate.NodeState{
|
state := nodestate.NodeState{
|
||||||
|
@ -219,32 +206,67 @@ func (s *Server) Init(req *initproto.InitRequest, stream initproto.API_InitServe
|
||||||
MeasurementSalt: req.MeasurementSalt,
|
MeasurementSalt: req.MeasurementSalt,
|
||||||
}
|
}
|
||||||
if err := state.ToFile(s.fileHandler); err != nil {
|
if err := state.ToFile(s.fileHandler); err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "persisting node state: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "persisting node state: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derive the emergency ssh CA key
|
// Derive the emergency ssh CA key
|
||||||
key, err := cloudKms.GetDEK(stream.Context(), crypto.DEKPrefix+constants.SSHCAKeySuffix, ed25519.SeedSize)
|
key, err := cloudKms.GetDEK(stream.Context(), crypto.DEKPrefix+constants.SSHCAKeySuffix, ed25519.SeedSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "retrieving DEK for key derivation: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "retrieving DEK for key derivation: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
ca, err := crypto.GenerateEmergencySSHCAKey(key)
|
ca, err := crypto.GenerateEmergencySSHCAKey(key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "generating emergency SSH CA key: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "generating emergency SSH CA key: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
if err := s.fileHandler.Write(constants.SSHCAKeyPath, ssh.MarshalAuthorizedKey(ca.PublicKey()), file.OptMkdirAll); err != nil {
|
if err := s.fileHandler.Write(constants.SSHCAKeyPath, ssh.MarshalAuthorizedKey(ca.PublicKey()), file.OptMkdirAll); err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "writing ssh CA pubkey: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "writing ssh CA pubkey: %s", err)))
|
||||||
err = errors.Join(err, e)
|
}
|
||||||
}
|
|
||||||
return err
|
interfaces, err := net.Interfaces()
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "getting network interfaces: %s", err)))
|
||||||
|
}
|
||||||
|
// Needed since go doesn't implicitly convert slices of structs to slices of interfaces
|
||||||
|
interfacesForFunc := make([]addresses.NetInterface, len(interfaces))
|
||||||
|
for i := range interfaces {
|
||||||
|
interfacesForFunc[i] = &interfaces[i]
|
||||||
|
}
|
||||||
|
|
||||||
|
principalList, err := addresses.GetMachineNetworkAddresses(interfacesForFunc)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "failed to get network addresses: %s", err)))
|
||||||
|
}
|
||||||
|
hostname, err := os.Hostname()
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "failed to get hostname: %s", err)))
|
||||||
|
}
|
||||||
|
|
||||||
|
principalList = append(principalList, hostname)
|
||||||
|
principalList = append(principalList, req.ApiserverCertSans...)
|
||||||
|
|
||||||
|
hostKeyContent, err := s.fileHandler.Read(constants.SSHHostKeyPath)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "failed to read host SSH key: %s", err)))
|
||||||
|
}
|
||||||
|
|
||||||
|
hostPrivateKey, err := ssh.ParsePrivateKey(hostKeyContent)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "failed to parse host SSH key: %s", err)))
|
||||||
|
}
|
||||||
|
|
||||||
|
hostKeyPubSSH := hostPrivateKey.PublicKey()
|
||||||
|
|
||||||
|
hostCertificate, err := crypto.GenerateSSHHostCertificate(principalList, hostKeyPubSSH, ca)
|
||||||
|
if err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "generating SSH host certificate: %s", err)))
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := s.fileHandler.Write(constants.SSHAdditionalPrincipalsPath, []byte(strings.Join(req.ApiserverCertSans, ",")), file.OptMkdirAll); err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "writing list of public ssh principals: %s", err)))
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := s.fileHandler.Write(constants.SSHHostCertificatePath, ssh.MarshalAuthorizedKey(hostCertificate), file.OptMkdirAll); err != nil {
|
||||||
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "writing ssh host certificate: %s", err)))
|
||||||
}
|
}
|
||||||
|
|
||||||
clusterName := req.ClusterName
|
clusterName := req.ClusterName
|
||||||
|
@ -261,10 +283,7 @@ func (s *Server) Init(req *initproto.InitRequest, stream initproto.API_InitServe
|
||||||
req.ServiceCidr,
|
req.ServiceCidr,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if e := s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "initializing cluster: %s", err)); e != nil {
|
return errors.Join(err, s.sendLogsWithMessage(stream, status.Errorf(codes.Internal, "initializing cluster: %s", err)))
|
||||||
err = errors.Join(err, e)
|
|
||||||
}
|
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("Init succeeded")
|
log.Info("Init succeeded")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package initserver
|
package initserver
|
||||||
|
@ -9,9 +9,12 @@ package initserver
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/ed25519"
|
||||||
|
"encoding/pem"
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -20,6 +23,7 @@ import (
|
||||||
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
|
"github.com/edgelesssys/constellation/v2/bootstrapper/initproto"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/atls"
|
"github.com/edgelesssys/constellation/v2/internal/atls"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/attestation/variant"
|
"github.com/edgelesssys/constellation/v2/internal/attestation/variant"
|
||||||
|
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/crypto/testvector"
|
"github.com/edgelesssys/constellation/v2/internal/crypto/testvector"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/file"
|
"github.com/edgelesssys/constellation/v2/internal/file"
|
||||||
kmssetup "github.com/edgelesssys/constellation/v2/internal/kms/setup"
|
kmssetup "github.com/edgelesssys/constellation/v2/internal/kms/setup"
|
||||||
|
@ -31,6 +35,7 @@ import (
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"go.uber.org/goleak"
|
"go.uber.org/goleak"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
|
"golang.org/x/crypto/ssh"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -67,7 +72,7 @@ func TestNew(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
|
||||||
server, err := New(
|
server, err := New(
|
||||||
context.TODO(), newFakeLock(), &stubClusterInitializer{}, atls.NewFakeIssuer(variant.Dummy{}),
|
t.Context(), newFakeLock(), &stubClusterInitializer{}, atls.NewFakeIssuer(variant.Dummy{}),
|
||||||
&stubDisk{}, fh, &tc.metadata, logger.NewTest(t),
|
&stubDisk{}, fh, &tc.metadata, logger.NewTest(t),
|
||||||
)
|
)
|
||||||
if tc.wantErr {
|
if tc.wantErr {
|
||||||
|
@ -100,17 +105,31 @@ func TestInit(t *testing.T) {
|
||||||
|
|
||||||
masterSecret := uri.MasterSecret{Key: []byte("secret"), Salt: []byte("salt")}
|
masterSecret := uri.MasterSecret{Key: []byte("secret"), Salt: []byte("salt")}
|
||||||
|
|
||||||
|
_, privkey, err := ed25519.GenerateKey(nil)
|
||||||
|
require.NoError(t, err)
|
||||||
|
pemHostKey, err := ssh.MarshalPrivateKey(privkey, "")
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
fsWithHostKey := afero.NewMemMapFs()
|
||||||
|
hostKeyFile, err := fsWithHostKey.Create(constants.SSHHostKeyPath)
|
||||||
|
require.NoError(t, err)
|
||||||
|
_, err = hostKeyFile.Write(pem.EncodeToMemory(pemHostKey))
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.NoError(t, hostKeyFile.Close())
|
||||||
|
readOnlyFSWithHostKey := afero.NewReadOnlyFs(fsWithHostKey)
|
||||||
|
|
||||||
testCases := map[string]struct {
|
testCases := map[string]struct {
|
||||||
nodeLock *fakeLock
|
nodeLock *fakeLock
|
||||||
initializer ClusterInitializer
|
initializer ClusterInitializer
|
||||||
disk encryptedDisk
|
disk encryptedDisk
|
||||||
fileHandler file.Handler
|
fileHandler file.Handler
|
||||||
req *initproto.InitRequest
|
req *initproto.InitRequest
|
||||||
stream stubStream
|
stream stubStream
|
||||||
logCollector stubJournaldCollector
|
logCollector stubJournaldCollector
|
||||||
initSecretHash []byte
|
initSecretHash []byte
|
||||||
wantErr bool
|
hostkeyDoesntExist bool
|
||||||
wantShutdown bool
|
wantErr bool
|
||||||
|
wantShutdown bool
|
||||||
}{
|
}{
|
||||||
"successful init": {
|
"successful init": {
|
||||||
nodeLock: newFakeLock(),
|
nodeLock: newFakeLock(),
|
||||||
|
@ -174,7 +193,7 @@ func TestInit(t *testing.T) {
|
||||||
nodeLock: newFakeLock(),
|
nodeLock: newFakeLock(),
|
||||||
initializer: &stubClusterInitializer{},
|
initializer: &stubClusterInitializer{},
|
||||||
disk: &stubDisk{},
|
disk: &stubDisk{},
|
||||||
fileHandler: file.NewHandler(afero.NewReadOnlyFs(afero.NewMemMapFs())),
|
fileHandler: file.NewHandler(readOnlyFSWithHostKey),
|
||||||
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||||
stream: stubStream{},
|
stream: stubStream{},
|
||||||
logCollector: stubJournaldCollector{logPipe: &stubReadCloser{reader: bytes.NewReader([]byte{})}},
|
logCollector: stubJournaldCollector{logPipe: &stubReadCloser{reader: bytes.NewReader([]byte{})}},
|
||||||
|
@ -205,11 +224,31 @@ func TestInit(t *testing.T) {
|
||||||
logCollector: stubJournaldCollector{logPipe: &stubReadCloser{reader: bytes.NewReader([]byte{})}},
|
logCollector: stubJournaldCollector{logPipe: &stubReadCloser{reader: bytes.NewReader([]byte{})}},
|
||||||
wantErr: true,
|
wantErr: true,
|
||||||
},
|
},
|
||||||
|
"host key doesn't exist": {
|
||||||
|
nodeLock: newFakeLock(),
|
||||||
|
initializer: &stubClusterInitializer{},
|
||||||
|
disk: &stubDisk{},
|
||||||
|
fileHandler: file.NewHandler(afero.NewMemMapFs()),
|
||||||
|
initSecretHash: initSecretHash,
|
||||||
|
req: &initproto.InitRequest{InitSecret: initSecret, KmsUri: masterSecret.EncodeToURI(), StorageUri: uri.NoStoreURI},
|
||||||
|
stream: stubStream{},
|
||||||
|
logCollector: stubJournaldCollector{logPipe: &stubReadCloser{reader: bytes.NewReader([]byte{})}},
|
||||||
|
hostkeyDoesntExist: true,
|
||||||
|
wantShutdown: true,
|
||||||
|
wantErr: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, tc := range testCases {
|
for name, tc := range testCases {
|
||||||
t.Run(name, func(t *testing.T) {
|
t.Run(name, func(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
require := require.New(t)
|
||||||
|
|
||||||
|
if _, err := tc.fileHandler.Stat(constants.SSHHostKeyPath); errors.Is(err, os.ErrNotExist) {
|
||||||
|
if !tc.hostkeyDoesntExist {
|
||||||
|
require.NoError(tc.fileHandler.Write(constants.SSHHostKeyPath, pem.EncodeToMemory(pemHostKey), file.OptMkdirAll))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
serveStopper := newStubServeStopper()
|
serveStopper := newStubServeStopper()
|
||||||
server := &Server{
|
server := &Server{
|
||||||
|
@ -352,9 +391,9 @@ func TestSetupDisk(t *testing.T) {
|
||||||
|
|
||||||
masterSecret := uri.MasterSecret{Key: tc.masterKey, Salt: tc.salt}
|
masterSecret := uri.MasterSecret{Key: tc.masterKey, Salt: tc.salt}
|
||||||
|
|
||||||
cloudKms, err := kmssetup.KMS(context.Background(), uri.NoStoreURI, masterSecret.EncodeToURI())
|
cloudKms, err := kmssetup.KMS(t.Context(), uri.NoStoreURI, masterSecret.EncodeToURI())
|
||||||
require.NoError(err)
|
require.NoError(err)
|
||||||
assert.NoError(server.setupDisk(context.Background(), cloudKms))
|
assert.NoError(server.setupDisk(t.Context(), cloudKms))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ go_library(
|
||||||
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/joinclient",
|
importpath = "github.com/edgelesssys/constellation/v2/bootstrapper/internal/joinclient",
|
||||||
visibility = ["//bootstrapper:__subpackages__"],
|
visibility = ["//bootstrapper:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
|
"//bootstrapper/internal/addresses",
|
||||||
"//bootstrapper/internal/certificate",
|
"//bootstrapper/internal/certificate",
|
||||||
"//internal/attestation",
|
"//internal/attestation",
|
||||||
"//internal/cloud/metadata",
|
"//internal/cloud/metadata",
|
||||||
|
@ -21,6 +22,7 @@ go_library(
|
||||||
"@io_k8s_kubernetes//cmd/kubeadm/app/constants",
|
"@io_k8s_kubernetes//cmd/kubeadm/app/constants",
|
||||||
"@io_k8s_utils//clock",
|
"@io_k8s_utils//clock",
|
||||||
"@org_golang_google_grpc//:grpc",
|
"@org_golang_google_grpc//:grpc",
|
||||||
|
"@org_golang_x_crypto//ssh",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -35,6 +37,7 @@ go_test(
|
||||||
deps = [
|
deps = [
|
||||||
"//internal/cloud/metadata",
|
"//internal/cloud/metadata",
|
||||||
"//internal/constants",
|
"//internal/constants",
|
||||||
|
"//internal/crypto",
|
||||||
"//internal/file",
|
"//internal/file",
|
||||||
"//internal/grpc/atlscredentials",
|
"//internal/grpc/atlscredentials",
|
||||||
"//internal/grpc/dialer",
|
"//internal/grpc/dialer",
|
||||||
|
@ -49,6 +52,7 @@ go_test(
|
||||||
"@io_k8s_kubernetes//cmd/kubeadm/app/apis/kubeadm/v1beta3",
|
"@io_k8s_kubernetes//cmd/kubeadm/app/apis/kubeadm/v1beta3",
|
||||||
"@io_k8s_utils//clock/testing",
|
"@io_k8s_utils//clock/testing",
|
||||||
"@org_golang_google_grpc//:grpc",
|
"@org_golang_google_grpc//:grpc",
|
||||||
|
"@org_golang_x_crypto//ssh",
|
||||||
"@org_uber_go_goleak//:goleak",
|
"@org_uber_go_goleak//:goleak",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -23,10 +23,12 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/addresses"
|
||||||
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/certificate"
|
"github.com/edgelesssys/constellation/v2/bootstrapper/internal/certificate"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/attestation"
|
"github.com/edgelesssys/constellation/v2/internal/attestation"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
||||||
|
@ -37,6 +39,7 @@ import (
|
||||||
"github.com/edgelesssys/constellation/v2/internal/versions/components"
|
"github.com/edgelesssys/constellation/v2/internal/versions/components"
|
||||||
"github.com/edgelesssys/constellation/v2/joinservice/joinproto"
|
"github.com/edgelesssys/constellation/v2/joinservice/joinproto"
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
|
"golang.org/x/crypto/ssh"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
kubeadm "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3"
|
kubeadm "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3"
|
||||||
kubeconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
|
kubeconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
|
||||||
|
@ -209,6 +212,42 @@ func (c *JoinClient) requestJoinTicket(serviceEndpoint string) (ticket *joinprot
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interfaces, err := net.Interfaces()
|
||||||
|
if err != nil {
|
||||||
|
c.log.With(slog.Any("error", err)).Error("Failed to get network interfaces")
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
// Needed since go doesn't implicitly convert slices of structs to slices of interfaces
|
||||||
|
interfacesForFunc := make([]addresses.NetInterface, len(interfaces))
|
||||||
|
for i := range interfaces {
|
||||||
|
interfacesForFunc[i] = &interfaces[i]
|
||||||
|
}
|
||||||
|
|
||||||
|
principalList, err := addresses.GetMachineNetworkAddresses(interfacesForFunc)
|
||||||
|
if err != nil {
|
||||||
|
c.log.With(slog.Any("error", err)).Error("Failed to get network addresses")
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
hostname, err := os.Hostname()
|
||||||
|
if err != nil {
|
||||||
|
c.log.With(slog.Any("error", err)).Error("Failed to get hostname")
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
principalList = append(principalList, hostname)
|
||||||
|
|
||||||
|
hostKeyData, err := c.fileHandler.Read(constants.SSHHostKeyPath)
|
||||||
|
if err != nil {
|
||||||
|
c.log.With(slog.Any("error", err)).Error("Failed to read SSH host key file")
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
hostKey, err := ssh.ParsePrivateKey(hostKeyData)
|
||||||
|
if err != nil {
|
||||||
|
c.log.With(slog.Any("error", err)).Error("Failed to parse SSH host key file")
|
||||||
|
return nil, nil, err
|
||||||
|
}
|
||||||
|
hostKeyPubSSH := hostKey.PublicKey()
|
||||||
|
|
||||||
conn, err := c.dialer.Dial(serviceEndpoint)
|
conn, err := c.dialer.Dial(serviceEndpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.log.With(slog.String("endpoint", serviceEndpoint), slog.Any("error", err)).Error("Join service unreachable")
|
c.log.With(slog.String("endpoint", serviceEndpoint), slog.Any("error", err)).Error("Join service unreachable")
|
||||||
|
@ -218,9 +257,11 @@ func (c *JoinClient) requestJoinTicket(serviceEndpoint string) (ticket *joinprot
|
||||||
|
|
||||||
protoClient := joinproto.NewAPIClient(conn)
|
protoClient := joinproto.NewAPIClient(conn)
|
||||||
req := &joinproto.IssueJoinTicketRequest{
|
req := &joinproto.IssueJoinTicketRequest{
|
||||||
DiskUuid: c.diskUUID,
|
DiskUuid: c.diskUUID,
|
||||||
CertificateRequest: certificateRequest,
|
CertificateRequest: certificateRequest,
|
||||||
IsControlPlane: c.role == role.ControlPlane,
|
IsControlPlane: c.role == role.ControlPlane,
|
||||||
|
HostPublicKey: hostKeyPubSSH.Marshal(),
|
||||||
|
HostCertificatePrincipals: principalList,
|
||||||
}
|
}
|
||||||
ticket, err = protoClient.IssueJoinTicket(ctx, req)
|
ticket, err = protoClient.IssueJoinTicket(ctx, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -275,6 +316,10 @@ func (c *JoinClient) startNodeAndJoin(ticket *joinproto.IssueJoinTicketResponse,
|
||||||
return fmt.Errorf("writing ssh ca key: %w", err)
|
return fmt.Errorf("writing ssh ca key: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := c.fileHandler.Write(constants.SSHHostCertificatePath, ticket.HostCertificate, file.OptMkdirAll); err != nil {
|
||||||
|
return fmt.Errorf("writing ssh host certificate: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
state := nodestate.NodeState{
|
state := nodestate.NodeState{
|
||||||
Role: c.role,
|
Role: c.role,
|
||||||
MeasurementSalt: ticket.MeasurementSalt,
|
MeasurementSalt: ticket.MeasurementSalt,
|
||||||
|
|
|
@ -1,14 +1,18 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package joinclient
|
package joinclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"crypto/ed25519"
|
||||||
|
"encoding/pem"
|
||||||
|
"errors"
|
||||||
"net"
|
"net"
|
||||||
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -16,6 +20,7 @@ import (
|
||||||
|
|
||||||
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
"github.com/edgelesssys/constellation/v2/internal/cloud/metadata"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/constants"
|
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||||
|
"github.com/edgelesssys/constellation/v2/internal/crypto"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/file"
|
"github.com/edgelesssys/constellation/v2/internal/file"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/grpc/atlscredentials"
|
"github.com/edgelesssys/constellation/v2/internal/grpc/atlscredentials"
|
||||||
"github.com/edgelesssys/constellation/v2/internal/grpc/dialer"
|
"github.com/edgelesssys/constellation/v2/internal/grpc/dialer"
|
||||||
|
@ -28,6 +33,7 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"go.uber.org/goleak"
|
"go.uber.org/goleak"
|
||||||
|
"golang.org/x/crypto/ssh"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
kubeadm "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3"
|
kubeadm "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1beta3"
|
||||||
testclock "k8s.io/utils/clock/testing"
|
testclock "k8s.io/utils/clock/testing"
|
||||||
|
@ -53,15 +59,70 @@ func TestClient(t *testing.T) {
|
||||||
caDerivationKey := make([]byte, 256)
|
caDerivationKey := make([]byte, 256)
|
||||||
respCaKey := &joinproto.IssueJoinTicketResponse{AuthorizedCaPublicKey: caDerivationKey}
|
respCaKey := &joinproto.IssueJoinTicketResponse{AuthorizedCaPublicKey: caDerivationKey}
|
||||||
|
|
||||||
|
// TODO: fix test since keys are generated with systemd service
|
||||||
|
makeIssueJoinTicketAnswerWithValidCert := func(t *testing.T, originalAnswer issueJoinTicketAnswer, fh file.Handler) issueJoinTicketAnswer {
|
||||||
|
require := require.New(t)
|
||||||
|
|
||||||
|
sshKeyBytes, err := fh.Read(constants.SSHHostKeyPath)
|
||||||
|
require.NoError(err)
|
||||||
|
sshKey, err := ssh.ParsePrivateKey(sshKeyBytes)
|
||||||
|
require.NoError(err)
|
||||||
|
_, randomCAKey, err := ed25519.GenerateKey(nil)
|
||||||
|
require.NoError(err)
|
||||||
|
randomCA, err := ssh.NewSignerFromSigner(randomCAKey)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
cert, err := crypto.GenerateSSHHostCertificate([]string{"asdf"}, sshKey.PublicKey(), randomCA)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
certBytes := ssh.MarshalAuthorizedKey(cert)
|
||||||
|
|
||||||
|
if originalAnswer.resp == nil {
|
||||||
|
originalAnswer.resp = &joinproto.IssueJoinTicketResponse{HostCertificate: certBytes}
|
||||||
|
} else {
|
||||||
|
originalAnswer.resp.HostCertificate = certBytes
|
||||||
|
}
|
||||||
|
|
||||||
|
return originalAnswer
|
||||||
|
}
|
||||||
|
|
||||||
|
makeIssueJoinTicketAnswerWithInvalidCert := func(t *testing.T, originalAnswer issueJoinTicketAnswer) issueJoinTicketAnswer {
|
||||||
|
require := require.New(t)
|
||||||
|
_, randomCAKey, err := ed25519.GenerateKey(nil)
|
||||||
|
require.NoError(err)
|
||||||
|
randomCA, err := ssh.NewSignerFromSigner(randomCAKey)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
randomKey, _, err := ed25519.GenerateKey(nil)
|
||||||
|
require.NoError(err)
|
||||||
|
randomSSHKey, err := ssh.NewPublicKey(randomKey)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
cert, err := crypto.GenerateSSHHostCertificate([]string{"asdf"}, randomSSHKey, randomCA)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
certBytes := ssh.MarshalAuthorizedKey(cert)
|
||||||
|
|
||||||
|
if originalAnswer.resp == nil {
|
||||||
|
originalAnswer.resp = &joinproto.IssueJoinTicketResponse{HostCertificate: certBytes}
|
||||||
|
} else {
|
||||||
|
originalAnswer.resp.HostCertificate = certBytes
|
||||||
|
}
|
||||||
|
|
||||||
|
return originalAnswer
|
||||||
|
}
|
||||||
|
|
||||||
testCases := map[string]struct {
|
testCases := map[string]struct {
|
||||||
role role.Role
|
role role.Role
|
||||||
clusterJoiner *stubClusterJoiner
|
clusterJoiner *stubClusterJoiner
|
||||||
disk encryptedDisk
|
disk encryptedDisk
|
||||||
nodeLock *fakeLock
|
nodeLock *fakeLock
|
||||||
apiAnswers []any
|
apiAnswers []any
|
||||||
wantLock bool
|
wantLock bool
|
||||||
wantJoin bool
|
wantJoin bool
|
||||||
wantNumJoins int
|
wantNumJoins int
|
||||||
|
wantNotMatchingCert bool
|
||||||
|
wantCertNotExisting bool
|
||||||
}{
|
}{
|
||||||
"on worker: metadata self: errors occur": {
|
"on worker: metadata self: errors occur": {
|
||||||
role: role.Worker,
|
role: role.Worker,
|
||||||
|
@ -79,6 +140,23 @@ func TestClient(t *testing.T) {
|
||||||
wantJoin: true,
|
wantJoin: true,
|
||||||
wantLock: true,
|
wantLock: true,
|
||||||
},
|
},
|
||||||
|
"on worker: SSH host cert not matching": {
|
||||||
|
role: role.Worker,
|
||||||
|
apiAnswers: []any{
|
||||||
|
selfAnswer{err: assert.AnError},
|
||||||
|
selfAnswer{err: assert.AnError},
|
||||||
|
selfAnswer{err: assert.AnError},
|
||||||
|
selfAnswer{instance: workerSelf},
|
||||||
|
listAnswer{instances: peers},
|
||||||
|
issueJoinTicketAnswer{resp: respCaKey},
|
||||||
|
},
|
||||||
|
clusterJoiner: &stubClusterJoiner{},
|
||||||
|
nodeLock: newFakeLock(),
|
||||||
|
disk: &stubDisk{},
|
||||||
|
wantJoin: true,
|
||||||
|
wantLock: true,
|
||||||
|
wantNotMatchingCert: true,
|
||||||
|
},
|
||||||
"on worker: metadata self: invalid answer": {
|
"on worker: metadata self: invalid answer": {
|
||||||
role: role.Worker,
|
role: role.Worker,
|
||||||
apiAnswers: []any{
|
apiAnswers: []any{
|
||||||
|
@ -195,33 +273,43 @@ func TestClient(t *testing.T) {
|
||||||
listAnswer{instances: peers},
|
listAnswer{instances: peers},
|
||||||
issueJoinTicketAnswer{resp: respCaKey},
|
issueJoinTicketAnswer{resp: respCaKey},
|
||||||
},
|
},
|
||||||
clusterJoiner: &stubClusterJoiner{},
|
clusterJoiner: &stubClusterJoiner{},
|
||||||
nodeLock: lockedLock,
|
nodeLock: lockedLock,
|
||||||
disk: &stubDisk{},
|
disk: &stubDisk{},
|
||||||
wantLock: true,
|
wantLock: true,
|
||||||
|
wantCertNotExisting: true,
|
||||||
},
|
},
|
||||||
"on control plane: disk open fails": {
|
"on control plane: disk open fails": {
|
||||||
role: role.ControlPlane,
|
role: role.ControlPlane,
|
||||||
clusterJoiner: &stubClusterJoiner{},
|
clusterJoiner: &stubClusterJoiner{},
|
||||||
nodeLock: newFakeLock(),
|
nodeLock: newFakeLock(),
|
||||||
disk: &stubDisk{openErr: assert.AnError},
|
disk: &stubDisk{openErr: assert.AnError},
|
||||||
|
wantCertNotExisting: true,
|
||||||
},
|
},
|
||||||
"on control plane: disk uuid fails": {
|
"on control plane: disk uuid fails": {
|
||||||
role: role.ControlPlane,
|
role: role.ControlPlane,
|
||||||
clusterJoiner: &stubClusterJoiner{},
|
clusterJoiner: &stubClusterJoiner{},
|
||||||
nodeLock: newFakeLock(),
|
nodeLock: newFakeLock(),
|
||||||
disk: &stubDisk{uuidErr: assert.AnError},
|
disk: &stubDisk{uuidErr: assert.AnError},
|
||||||
|
wantCertNotExisting: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for name, tc := range testCases {
|
for name, tc := range testCases {
|
||||||
t.Run(name, func(t *testing.T) {
|
t.Run(name, func(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
|
require := require.New(t)
|
||||||
|
|
||||||
clock := testclock.NewFakeClock(time.Now())
|
clock := testclock.NewFakeClock(time.Now())
|
||||||
metadataAPI := newStubMetadataAPI()
|
metadataAPI := newStubMetadataAPI()
|
||||||
fileHandler := file.NewHandler(afero.NewMemMapFs())
|
fileHandler := file.NewHandler(afero.NewMemMapFs())
|
||||||
|
|
||||||
|
_, hostKey, err := ed25519.GenerateKey(nil)
|
||||||
|
require.NoError(err)
|
||||||
|
hostKeyPEM, err := ssh.MarshalPrivateKey(hostKey, "hostkey")
|
||||||
|
require.NoError(err)
|
||||||
|
require.NoError(fileHandler.Write(constants.SSHHostKeyPath, pem.EncodeToMemory(hostKeyPEM), file.OptMkdirAll))
|
||||||
|
|
||||||
netDialer := testdialer.NewBufconnDialer()
|
netDialer := testdialer.NewBufconnDialer()
|
||||||
dialer := dialer.New(nil, nil, netDialer)
|
dialer := dialer.New(nil, nil, netDialer)
|
||||||
|
|
||||||
|
@ -259,13 +347,43 @@ func TestClient(t *testing.T) {
|
||||||
case listAnswer:
|
case listAnswer:
|
||||||
metadataAPI.listAnswerC <- a
|
metadataAPI.listAnswerC <- a
|
||||||
case issueJoinTicketAnswer:
|
case issueJoinTicketAnswer:
|
||||||
joinserviceAPI.issueJoinTicketAnswerC <- a
|
var answer issueJoinTicketAnswer
|
||||||
|
if tc.wantNotMatchingCert {
|
||||||
|
answer = makeIssueJoinTicketAnswerWithInvalidCert(t, a)
|
||||||
|
} else {
|
||||||
|
answer = makeIssueJoinTicketAnswerWithValidCert(t, a, fileHandler)
|
||||||
|
}
|
||||||
|
joinserviceAPI.issueJoinTicketAnswerC <- answer
|
||||||
}
|
}
|
||||||
clock.Step(time.Second)
|
clock.Step(time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
client.Stop()
|
client.Stop()
|
||||||
|
|
||||||
|
if !tc.wantCertNotExisting {
|
||||||
|
hostCertBytes, err := fileHandler.Read(constants.SSHHostCertificatePath)
|
||||||
|
require.NoError(err)
|
||||||
|
hostKeyBytes, err := fileHandler.Read(constants.SSHHostKeyPath)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
hostCertKey, _, _, _, err := ssh.ParseAuthorizedKey(hostCertBytes)
|
||||||
|
require.NoError(err)
|
||||||
|
hostCert, ok := hostCertKey.(*ssh.Certificate)
|
||||||
|
require.True(ok)
|
||||||
|
|
||||||
|
hostKey, err := ssh.ParsePrivateKey(hostKeyBytes)
|
||||||
|
require.NoError(err)
|
||||||
|
|
||||||
|
if !tc.wantNotMatchingCert {
|
||||||
|
assert.Equal(hostKey.PublicKey().Marshal(), hostCert.Key.Marshal())
|
||||||
|
} else {
|
||||||
|
assert.NotEqual(hostKey.PublicKey().Marshal(), hostCert.Key.Marshal())
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
_, err := fileHandler.Stat(constants.SSHHostCertificatePath)
|
||||||
|
require.True(errors.Is(err, os.ErrNotExist))
|
||||||
|
}
|
||||||
|
|
||||||
if tc.wantJoin {
|
if tc.wantJoin {
|
||||||
assert.Greater(tc.clusterJoiner.joinClusterCalled, 0)
|
assert.Greater(tc.clusterJoiner.joinClusterCalled, 0)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package journald
|
package journald
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package kubernetes
|
package kubernetes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package k8sapi is used to interact with the Kubernetes API to create or update required resources.
|
// Package k8sapi is used to interact with the Kubernetes API to create or update required resources.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package k8sapi
|
package k8sapi
|
||||||
|
@ -87,7 +87,6 @@ func (k *KubernetesUtil) InstallComponents(ctx context.Context, kubernetesCompon
|
||||||
func (k *KubernetesUtil) InitCluster(
|
func (k *KubernetesUtil) InitCluster(
|
||||||
ctx context.Context, initConfig []byte, nodeName, clusterName string, ips []net.IP, conformanceMode bool, log *slog.Logger,
|
ctx context.Context, initConfig []byte, nodeName, clusterName string, ips []net.IP, conformanceMode bool, log *slog.Logger,
|
||||||
) ([]byte, error) {
|
) ([]byte, error) {
|
||||||
// TODO(3u13r): audit policy should be user input
|
|
||||||
auditPolicy, err := resources.NewDefaultAuditPolicy().Marshal()
|
auditPolicy, err := resources.NewDefaultAuditPolicy().Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("generating default audit policy: %w", err)
|
return nil, fmt.Errorf("generating default audit policy: %w", err)
|
||||||
|
@ -186,7 +185,6 @@ func (k *KubernetesUtil) InitCluster(
|
||||||
|
|
||||||
// JoinCluster joins existing Kubernetes cluster using kubeadm join.
|
// JoinCluster joins existing Kubernetes cluster using kubeadm join.
|
||||||
func (k *KubernetesUtil) JoinCluster(ctx context.Context, joinConfig []byte, log *slog.Logger) error {
|
func (k *KubernetesUtil) JoinCluster(ctx context.Context, joinConfig []byte, log *slog.Logger) error {
|
||||||
// TODO(3u13r): audit policy should be user input
|
|
||||||
auditPolicy, err := resources.NewDefaultAuditPolicy().Marshal()
|
auditPolicy, err := resources.NewDefaultAuditPolicy().Marshal()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("generating default audit policy: %w", err)
|
return fmt.Errorf("generating default audit policy: %w", err)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package k8sapi
|
package k8sapi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (c) Edgeless Systems GmbH
|
Copyright (c) Edgeless Systems GmbH
|
||||||
|
|
||||||
SPDX-License-Identifier: AGPL-3.0-only
|
SPDX-License-Identifier: BUSL-1.1
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package k8sapi
|
package k8sapi
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue