veraison / services

Attestation verification services based on Veraison components
Apache License 2.0
26 stars 14 forks source link

BUG: Arm CCA plugin crashing when no platform configuration endorsements are present #263

Closed thomas-fossati closed 3 months ago

thomas-fossati commented 3 months ago

What version of the package are you using?

2063e7e56950d9b7158b75a7d644f51c4dd2aa54

Does this issue reproduce with the latest release?

yes

What OS and CPU architecture are you using (go env)?

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:    22.04
Codename:   jammy
> go env
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/home/ubuntu/.cache/go-build'
GOENV='/home/ubuntu/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/ubuntu/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/ubuntu/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/go-1.22'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/go-1.22/pkg/tool/linux_arm64'
GOVCS=''
GOVERSION='go1.22.2'
GCCGO='gccgo'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/ubuntu/veraison/services/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4221075022=/tmp/go-build -gno-record-gcc-switches'

What did you do?

What did you expect to see?

A "successful" EAR.

What did you see instead?

An HTTP "500 Internal Server Error" due to the crashing Arm CCA plugin.

VTS logs reporting a broken pipe on the IPC with the Arm CCA plugin:

ERROR vts Plugin.AppraiseEvidence RPC call failed: unexpected EOF
ERROR plugin  plugin process exited {"path": "/home/ubuntu/veraison-deployment/plugins/arm-cca.plugin", "pid": 1279294, "error": "exit status 2"}