Skip to content

Commit

Permalink
Use VSOCK tunnel by default.
Browse files Browse the repository at this point in the history
If the testing flag is given, use the noop tunnel.  That's the same
behavior as for the attester.
  • Loading branch information
NullHypothesis committed Oct 24, 2024
1 parent b11aaed commit 54f211c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/veil/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 54f211c

Please sign in to comment.