From 54f211c3da2de31ec0ca136c8ae70cc51481ea85 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Thu, 24 Oct 2024 07:25:00 -0500 Subject: [PATCH] Use VSOCK tunnel by default. If the testing flag is given, use the noop tunnel. That's the same behavior as for the attester. --- cmd/veil/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/veil/main.go b/cmd/veil/main.go index 5d90eb3..658915f 100644 --- a/cmd/veil/main.go +++ b/cmd/veil/main.go @@ -102,10 +102,12 @@ func run(ctx context.Context, out io.Writer, args []string) (err error) { // Initialize dependencies and start the service. var attester enclave.Attester = enclave.NewNitroAttester() + var tunneler tunnel.Mechanism = tunnel.NewVSOCK() if cfg.Testing { attester = enclave.NewNoopAttester() + tunneler = tunnel.NewNoop() } - service.Run(ctx, cfg, attester, tunnel.NewNoop()) + service.Run(ctx, cfg, attester, tunneler) return nil }