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

api: for Azure attestationconfigapi use TCB values from SNP report instead of MAA token #2429

Merged
merged 30 commits into from
Oct 17, 2023

Conversation

elchead
Copy link
Contributor

@elchead elchead commented Oct 11, 2023

Context

Since the MAA version values are intransparent and were found to not be reliable for TCB version inference, we are now using the values from the SNP report instead.

Proposed change(s)

  • store the json output of verify on Azure and pass to the attestationconfigapi upload tool
  • check that Launch TCB, Committed TCB, and Reported TCB are equal
  • fix go-sev-guest library version to newer hash on main, because current release has debug prints

Additional info

Checklist

  • Update docs
  • Add labels (e.g., for changelog category)
  • Is PR title adequate for changelog?
  • Link to Milestone

@elchead elchead requested a review from derpsteb as a code owner October 11, 2023 06:59
@netlify
Copy link

netlify bot commented Oct 11, 2023

Deploy Preview for constellation-docs canceled.

Name Link
🔨 Latest commit eef54ca
🔍 Latest deploy log https://app.netlify.com/sites/constellation-docs/deploys/652ea9d523f77a0008fd4fb4

@elchead
Copy link
Contributor Author

elchead commented Oct 11, 2023

@elchead elchead added the no changelog Change won't be listed in release changelog label Oct 11, 2023
@elchead elchead added this to the v2.13.0 milestone Oct 11, 2023
@elchead elchead force-pushed the feat/api/azure-use-tcb-values-for-version branch 2 times, most recently from 47b5b31 to 6d2d72a Compare October 11, 2023 07:47
@elchead
Copy link
Contributor Author

elchead commented Oct 11, 2023

The verify test currently only allows uploads to the API on main. Is this restriction necessary? It would be easier to test without it and also I don't see any no harm

@elchead elchead requested a review from malt3 as a code owner October 11, 2023 13:56
@elchead elchead force-pushed the feat/api/azure-use-tcb-values-for-version branch from eb523a8 to 5f5a2a3 Compare October 11, 2023 14:07
@elchead elchead force-pushed the feat/api/azure-use-tcb-values-for-version branch from 71105d8 to 75895ec Compare October 16, 2023 07:13
@elchead
Copy link
Contributor Author

elchead commented Oct 16, 2023

Copy link
Member

@daniel-weisse daniel-weisse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only reviewed the Go code.
Looks mostly good to me

cli/internal/cmd/verify.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@malt3 malt3 removed their request for review October 17, 2023 07:03
daniel-weisse and others added 16 commits October 17, 2023 14:00
…pe (#2459)

* Add missing quotation marks for region flag
* Revert default Azure region to northeurope

---------

Signed-off-by: Daniel Weiße <[email protected]>
* add field docs to the state file

* mark only optional fields

* tidy

* use talos encoder
* create state file during config generate

* use written file in `constellation create`

* document creation of state file

* remove accidentally added test

* check error when writing state file
* custom byte slice marshalling

Signed-off-by: Moritz Sanft <[email protected]>

* byte slice compatibility

Signed-off-by: Moritz Sanft <[email protected]>

* other byte slice compat test

Signed-off-by: Moritz Sanft <[email protected]>

* add missing dep

Signed-off-by: Moritz Sanft <[email protected]>

* export byte type alias

Signed-off-by: Moritz Sanft <[email protected]>

* regenerate exported type

Signed-off-by: Moritz Sanft <[email protected]>

* test marshal and unmarshal together

Signed-off-by: Moritz Sanft <[email protected]>

---------

Signed-off-by: Moritz Sanft <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…nager Docker tag to v1.26.4 (#2466)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mkosi now warns about what settings are defined in what sections.
Soon, the config parsing might fail when settings are in the wrong sections.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
#2473)

* image: use systemd-dissect from the host when calculating measurements

* ci: setup bazel and nix toolchains before merging os image measurements
@elchead elchead merged commit 5819a11 into main Oct 17, 2023
6 of 8 checks passed
@elchead elchead deleted the feat/api/azure-use-tcb-values-for-version branch October 17, 2023 15:36
@github-actions
Copy link
Contributor

Coverage report

Package Old New Trend
cli/internal/cmd 50.70% 50.60% ↘️
internal/api/attestationconfigapi/cli 6.80% 10.90% ↗️
internal/verify [no test files] [no test files] 🚧

@burgerdev burgerdev mentioned this pull request Apr 30, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Change won't be listed in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants