Skip to content

Commit

Permalink
fix typo in logs (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Oct 18, 2024
1 parent 5672cca commit 837588b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The measurements are expected to be a JSON map, and multiple valid measurements
The (single) validated measurement is json-marshalled and forwarded (returned in the case of client) as "X-Flashbots-Measurement" header, and the type of attestation as "X-Flashbots-Attestation-Type" header. For mapping attestation types to OIDs and issuers, see [internal/attestation/variant/variant.go](./internal/attestation/variant/variant.go).
To only validate and forward the measurement (as opposed to also authorizing the measurement against an expected one), simply provide an empty expected measurements object.

### Debugging DCAP quote isses
### Debugging DCAP quote issues

If logging dcap quotes to disk is enabled, issues with the respective quotes can be investigated using [github.com/google/go-tdx-guest](https://github.com/google/go-tdx-guest)'s check tool
```
Expand Down
2 changes: 1 addition & 1 deletion proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ func (p *Proxy) copyMeasurementsToHeader(conn *tls.ConnectionState, header *http
header.Set(AttestationTypeHeader, atlsVariant.String())
header.Set(MeasurementHeader, string(marshaledPcrs))

p.log.With(AttestationTypeHeader, atlsVariant.String()).With(MeasurementHeader, string(marshaledPcrs)).Debug("[proxy-request: add-headers] meaasurement headers added")
p.log.With(AttestationTypeHeader, atlsVariant.String()).With(MeasurementHeader, string(marshaledPcrs)).Debug("[proxy-request: add-headers] measurement headers added")
return 0, nil
}

0 comments on commit 837588b

Please sign in to comment.