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

Write to a single bucket for the Trusted OS artifacts. #69

Merged
merged 2 commits into from
Sep 28, 2023
Merged
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
9 changes: 5 additions & 4 deletions release/cloudbuild_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ steps:
- storage
- cp
- output/trusted_os.elf
- gs://${_TRUSTED_OS_BUCKET}/${_TEST_TAG_NAME}/trusted_os.elf
- gs://${_FIRMWARE_BUCKET}/${_FIRMWARE_COMPONENT}/${_TEST_TAG_NAME}/trusted_os.elf
- name: gcr.io/cloud-builders/gcloud
args:
- storage
- cp
- output/trusted_os.sig
- gs://${_TRUSTED_OS_BUCKET}/${_TEST_TAG_NAME}/trusted_os_transparency_dev.sig
- gs://${_FIRMWARE_BUCKET}/${_FIRMWARE_COMPONENT}/${_TEST_TAG_NAME}/trusted_os_transparency_dev.sig
### Construct log entry / Claimant Model statement.
- name: golang
args:
Expand Down Expand Up @@ -89,10 +89,11 @@ steps:
- storage
- cp
- output/trusted_os_manifest.json
- gs://${_TRUSTED_OS_BUCKET}/${_TEST_TAG_NAME}/trusted_os_manifest.json
- gs://${_FIRMWARE_BUCKET}/${_FIRMWARE_COMPONENT}/${_TEST_TAG_NAME}/trusted_os_manifest.json
substitutions:
# Build-related.
_TRUSTED_OS_BUCKET: trusted-os-artifacts-ci
_FIRMWARE_BUCKET: armored-witness-firmware-ci
_FIRMWARE_COMPONENT: trusted-os
_TAMAGO_VERSION: '1.20.6'
_TEST_TAG_NAME: '0.1.2'
# Signing-related.
Expand Down
10 changes: 6 additions & 4 deletions release/cloudbuild_withsecure_signature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ steps:
- -c
- >-
gcloud storage cp ${_WITHSECURE_DIR}/${_TEST_TAG_NAME}.txt
gs://${_TRUSTED_OS_BUCKET}/$(echo ${_TEST_TAG_NAME} | sed -e "s/^withsecure_v//")/trusted_os_manifest.txt
gs://${_FIRMWARE_BUCKET}/${_FIRMWARE_COMPONENT}/$(echo ${_TEST_TAG_NAME} | sed -e "s/^withsecure_v//")/trusted_os_manifest.txt
### Write the firmware release to the transparency log.
# Copy the signed note to the sequence bucket, preparing to write to log.
- name: gcr.io/cloud-builders/gcloud
args:
- storage
- cp
- ${_WITHSECURE_DIR}/${_TEST_TAG_NAME}.txt
- 'gs://${_LOG_NAME}/${_ENTRIES_DIR}/trusted_os_manifest.txt'
- gs://${_LOG_NAME}/${_ENTRIES_DIR}/trusted_os_manifest.txt
# Sequence log entry.
- name: gcr.io/cloud-builders/gcloud
args:
Expand All @@ -50,12 +50,14 @@ steps:

substitutions:
# TODO(jayhou): do not use CI bucket when we flip this trigger to prod.
_TRUSTED_OS_BUCKET: trusted-os-artifacts-ci
_FIRMWARE_BUCKET: armored-witness-firmware-ci
_FIRMWARE_COMPONENT: trusted-os
_WITHSECURE_DIR: release/withsecure
# TODO(jayhou): remove this when we flip this trigger to prod.
_TEST_TAG_NAME: withsecure_v0.1.2
# Log-related.
_ENTRIES_DIR: firmware-log-sequence
# TODO(jayhou): switch to prod origin.
_ORIGIN: transparency.dev/armored-witness/firmware_transparency/ci/0
# TODO(jayhou): do not use CI bucket when we flip this trigger to prod.
_LOG_NAME: firmware-log-ci
_LOG_NAME: armored-witness-firmware-log-ci