Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slsa sysimage #5011

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/provenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
- buildconfigs/key_xor_test_app.toml
- buildconfigs/oak_containers_kernel.toml
- buildconfigs/oak_containers_stage1.toml
- buildconfigs/oak_containers_system_image.toml
- buildconfigs/oak_echo_enclave_app.toml
- buildconfigs/oak_echo_raw_enclave_app.toml
- buildconfigs/oak_functions_enclave_app.toml
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/reusable_provenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ jobs:
actions: read
id-token: write
contents: write # For uploading provenances.
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_container-based_slsa3.yml@v1.10.0
# We are using a patched version that emits stdout and stderr as the build progresses, rather than waiting until the very end to
# read everything in. This works around some issues we encountered when the
# output is very large. If our patch is eventually accepted upstream (or any other fix), we can switch back to using the main
# repository.
# See: https://github.com/slsa-framework/slsa-github-generator/issues/3571
uses: jul-sh/slsa-github-generator/.github/workflows/builder_container-based_slsa3.yml@oak
with:
builder-image: 'europe-west2-docker.pkg.dev/oak-ci/oak-development/oak-development'
builder-digest: ${{ needs.get_inputs.outputs.builder-digest }}
Expand Down
12 changes: 12 additions & 0 deletions buildconfigs/oak_containers_system_image.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is the static build configuration that we use with the docker-based SLSA3 generator for
# building the `stage1` binary, and its provenance.
# See https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/docker.
command = [
"nix",
"develop",
".#systemImageProvenance",
"--command",
"just",
"oak_containers_system_image",
]
artifact_path = "./oak_containers_system_image/target/image.tar.xz"
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,13 @@
strip-nondeterminism
];
};
systemImageProvenance = with pkgs; mkShell {
inputsFrom = [
rust
bazelShell
];
packages = [ ];
};
# Shell for most CI steps (i.e. without contaniners support).
ci = pkgs.mkShell {
inputsFrom = [
Expand Down
Loading