Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
qa-images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
system-transparency
project
qa-images
Commits
95206cc1
Commit
95206cc1
authored
1 year ago
by
Linus Nordberg
Browse files
Options
Downloads
Plain Diff
Merge branch 'stimages-010' into 'main'
Use stimages-0.1.0 See merge request
!9
parents
dcba0ebf
5761fa9c
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!9
Use stimages-0.1.0
Pipeline
#4200
passed
1 year ago
Stage: stimages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
HACKING
+34
-2
34 additions, 2 deletions
HACKING
with
35 additions
and
3 deletions
.gitlab-ci.yml
+
1
−
1
View file @
95206cc1
variables
:
STMGR_VERSION
:
v0.3.3
STIMAGES_GIT
:
https://git.glasklar.is/system-transparency/core/stimages.git
STIMAGES_VERSION
:
releng-01
0
STIMAGES_VERSION
:
stimages-0.1.
0
ROOTCERT
:
'
https://git.glasklar.is/glasklar/trust/glasklar-ca/-/raw/main/QA-CA/ST-signing/Glasklar%20QA%20ST%20signing%20root%20cert.pem'
stages
:
...
...
This diff is collapsed.
Click to expand it.
HACKING
+
34
−
2
View file @
95206cc1
# Tagging
Example
tagging v5
:
Example
setting the tag '5'
:
$ export T=v5; git tag -sam $T $T && git push && git push --tags
$ (export T=5; git tag -sam $T $T && git push && git push --tags)
# Generating and verifying detached signatures for stboot images
Example using Linus' keys.
## downloading released images, from the package repo
click https://git.glasklar.is/system-transparency/project/qa-images/-/packages and select the qa-stboot version you want to publish
## downloading images from artifacts
click https://git.glasklar.is/system-transparency/project/qa-images/-/pipelines
unzip ~/Downloads/artifacts.zip
cd stimages/build
mv stboot.uki qa-stboot-amd64.uki
mv stboot.iso qa-stboot-amd64.iso
## generating allowed_signers file and signing two files twice
echo 'linus@glasklarteknik.se,qa@system-transparency.org namespaces="qa@system-transparency.org" sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMdhCI0ClJsD4cTCuU2CPLiYf1KYk+XN3BC5pKQstYINAAAABHNzaDo= linus:YK5C-31' > allowed_signers
ssh-keygen -Y sign -f ~/.ssh/linus:YK5C-31 -n qa@system-transparency.org qa-stboot-amd64.{uki,iso}
gpg --detach-sign --armor --local-user 8C4CD511095E982EB0EFBFA21E8BF34923291265 qa-stboot-amd64.uki
gpg --detach-sign --armor --local-user 8C4CD511095E982EB0EFBFA21E8BF34923291265 qa-stboot-amd64.iso
## uploading seven files
for f in allowed_signers qa-stboot-amd64.{uki,iso} qa-stboot-amd64.{uki,iso}.sig qa-stboot-amd64.{uki,iso}.asc; do
[ -f $f ] && echo "$f" | cat - "$f" | ssh -l st listen.sigsum.org; done
## downloading seven files and verifying two of them, twice
for f in allowed_signers qa-stboot-amd64.{uki,iso} qa-stboot-amd64.{uki,iso}.sig qa-stboot-amd64.{uki,iso}.asc; do
curl -sO https://st.glasklar.is/st/qa/"$f"; done
for f in qa-stboot-amd64.{uki,iso}; do
ssh-keygen -Y verify -f allowed_signers -I qa@system-transparency.org -n qa@system-transparency.org -s "$f".sig < "$f" || echo "$f: verification failed"
gpg --verify "$f".asc "$f"
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment