Skip to content

Commit

Permalink
Allow different versions for differently signed RoT images (#5580)
Browse files Browse the repository at this point in the history
Currently we restrict all RoT archives for {Gimlet, PSC, Sidecar} to be
the same version. This restricts us to having staging and production
images to be the same version. What we actually want is all archives for
a particular kind _signed with the same key_ to have the same version.
  • Loading branch information
labbott authored May 20, 2024
1 parent a5213df commit 94ef8e5
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 39 deletions.
13 changes: 7 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions tufaceous-lib/src/assemble/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,14 @@ impl<'a> FakeDataAttributes<'a> {
KnownArtifactKind::SwitchRot => "fake-sidecar-rot",
};

// For our purposes sign = board represents what we want for the RoT
// and we don't care about the SP at this point
let caboose = CabooseBuilder::default()
.git_commit("this-is-fake-data")
.board(board)
.version(self.version.to_string())
.name(self.name)
.sign(board)
.build();

let mut builder = HubrisArchiveBuilder::with_fake_image();
Expand Down
Loading

0 comments on commit 94ef8e5

Please sign in to comment.