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

Constellation CLI is not always reproducible #3453

Open
burgerdev opened this issue Oct 22, 2024 · 0 comments
Open

Constellation CLI is not always reproducible #3453

burgerdev opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working known issue This is a known issue of the latest release

Comments

@burgerdev
Copy link
Contributor

burgerdev commented Oct 22, 2024

Issue description

The build process for the constellation binary is not deterministic.

The CLI embeds an OCI image manifest hash for ghcr.io/edgelesssys/constellation/qemu-metadata-api. One of the layers consists of files from the Nix store. Depending on the optimisation settings of the Nix store, some files may or may not be hard links to others, resulting in a diff in the layer tarball.

Workaround: try to stick close to the reproducible builds workflow.

Steps to reproduce the behavior

  1. Start a new Ubuntu 24.04 VM.
  2. Install Bazel (e.g. download binary from Github releases).
  3. Install Nix with the https://github.com/DeterminateSystems/nix-installer (which configures auto-optimise-store = true).
  4. Clone the repo and check out a released tag.
  5. Build the CLI (e.g. bazel build //cli:cli_enterprise_linux_amd64).
  6. Compare to the released binary.

Version

This affects v2.19.0 and older releases.

@burgerdev burgerdev added the bug Something isn't working label Oct 22, 2024
@burgerdev burgerdev self-assigned this Oct 22, 2024
@burgerdev burgerdev added the known issue This is a known issue of the latest release label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working known issue This is a known issue of the latest release
Projects
None yet
Development

No branches or pull requests

1 participant