fix: address gateway review findings

This commit is contained in:
Harivansh Rathi 2026-04-09 17:52:14 +00:00
parent 59d3290bb9
commit 500354cd9b
14 changed files with 441 additions and 66 deletions

View file

@ -25,6 +25,7 @@ type Config struct {
EgressInterface string
FirecrackerBinaryPath string
JailerBinaryPath string
GuestLoginCAPublicKey string
}
// Load loads and validates the firecracker-host daemon configuration from the environment.
@ -43,6 +44,7 @@ func Load() (Config, error) {
EgressInterface: strings.TrimSpace(os.Getenv("FIRECRACKER_HOST_EGRESS_INTERFACE")),
FirecrackerBinaryPath: strings.TrimSpace(os.Getenv("FIRECRACKER_BINARY_PATH")),
JailerBinaryPath: strings.TrimSpace(os.Getenv("JAILER_BINARY_PATH")),
GuestLoginCAPublicKey: strings.TrimSpace(os.Getenv("GUEST_LOGIN_CA_PUBLIC_KEY")),
}
if err := cfg.Validate(); err != nil {
return Config{}, err