func ParseConfig(file string) (config *sidecar.Config, err error) {
	sidecarConfig := new(sidecar.Config)
	dat, err := ioutil.ReadFile(file)
	if err != nil {
		return nil, err
	}
	if err := hcl.Decode(sidecarConfig, string(dat)); err != nil {
		return nil, err
	}
	return sidecarConfig, nil
}
ParseConfig parses the given HCL file into a SidecarConfig struct
package main
import (
	"io/ioutil"
	"github.com/hashicorp/hcl"
	"github.com/spiffe/spiffe-helper/pkg/sidecar"
)