The Flavor library is responsible for retrieving the hardware/software measurements of the host in a pre-defined format. When integrated with the Host Verification service, Flavor would be equivalent to what is known today as the Whitelist.
cmd - contains the command line interface utility to use the library
- Create a flavors for VM and container
- RHEL 8.1
- Epel 8 Repo
- Proxy settings if applicable
- git
go
version >=go1.13
& <=go1.14.4
The Flavor
requires Go version 1.13 that has support for go modules
. The build was validated with the latest version go1.14.4 of go
. It is recommended that you use go1.14.1 version of go
. You can use the following to install go
.
wget https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz
tar -xzf go1.14.4.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
- Git clone the flavor
- Run scripts to build the flavor
git clone https://github.com/intel-secl/flavor.git
cd flavor
go build ./...
Name | Repo URL | Minimum Version Required |
---|---|---|
logrus | github.com/sirupsen/logrus | v1.4.0 |
testify | github.com/stretchr/testify | v1.3.0 |
uuid | github.com/satori/go.uuid | v1.2.1-0.20181028125025-b2ce2384e17b |
Note: All dependencies are listed in go.mod