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

runtime: Enclave quote status related cleanups/improvements #4396

Merged
merged 2 commits into from
Dec 14, 2021

Conversation

Yawning
Copy link
Contributor

@Yawning Yawning commented Dec 13, 2021

Yes I had to move the Constraints field definition to the node package, because it doesn't belong in our IAS support code, and there will be an import loop otherwise.

Previous builds would default to lax verification.  After this change
the default verify behavior will be the strict (requires `OK` quote
status), unless `OASIS_UNSAFE_LAX_AVR_VERIFY` is set.

Note: As with previously, this option has no effect if AVR verification
is disabled entirely.
@Yawning Yawning marked this pull request as ready for review December 13, 2021 17:00
@Yawning Yawning force-pushed the yawning/feature/sgx-contraints branch from 153a5c0 to 943f218 Compare December 13, 2021 17:02
go/common/sgx/common.go Outdated Show resolved Hide resolved
@Yawning Yawning force-pushed the yawning/feature/sgx-contraints branch from 943f218 to ffa93cd Compare December 13, 2021 17:43
When verifying a TEECapabilities structure, additionally verify the
quote status against the new SGXConstraints.AllowedQuoteStatuses vector
so that nodes that have an invalid quote status can be omitted from
scheduling entirely.

Note: QuoteOK is ALWAYS allowed, as disallowing it is nonsensical.
@Yawning Yawning force-pushed the yawning/feature/sgx-contraints branch from ffa93cd to 4556f9c Compare December 13, 2021 17:44
@kostko kostko linked an issue Dec 14, 2021 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Dec 14, 2021

Codecov Report

Merging #4396 (4556f9c) into master (50dce38) will decrease coverage by 0.38%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4396      +/-   ##
==========================================
- Coverage   69.40%   69.01%   -0.39%     
==========================================
  Files         413      413              
  Lines       46983    46993      +10     
==========================================
- Hits        32610    32434     -176     
- Misses      10406    10588     +182     
- Partials     3967     3971       +4     
Impacted Files Coverage Δ
go/common/sgx/common.go 66.01% <ø> (ø)
go/common/node/node.go 71.71% <45.45%> (-1.69%) ⬇️
go/oasis-node/cmd/ias/auth.go 68.96% <100.00%> (-6.90%) ⬇️
go/registry/api/api.go 59.82% <100.00%> (ø)
go/registry/tests/tester.go 92.65% <100.00%> (ø)
go/ias/http/http.go 20.33% <0.00%> (-44.07%) ⬇️
go/keymanager/api/policy_sgx.go 33.33% <0.00%> (-13.34%) ⬇️
go/storage/api/context.go 87.87% <0.00%> (-12.13%) ⬇️
go/runtime/host/sandbox/sandbox.go 71.06% <0.00%> (-9.90%) ⬇️
... and 39 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50dce38...4556f9c. Read the comment docs.

@Yawning Yawning merged commit ae68fd6 into master Dec 14, 2021
@Yawning Yawning deleted the yawning/feature/sgx-contraints branch December 14, 2021 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add acceptable enclave quote statuses to SGX constraints
2 participants