Skip to content

Commit

Permalink
coordinator: enable snp validator logging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
davidweisse committed Jun 12, 2024
1 parent 5fe2c48 commit aa29f85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions internal/attestation/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"fmt"
"log/slog"

"github.com/edgelesssys/contrast/internal/logger"
"github.com/edgelesssys/contrast/internal/oid"
"github.com/google/go-sev-guest/abi"
"github.com/google/go-sev-guest/proto/sevsnp"
Expand Down Expand Up @@ -69,7 +68,7 @@ func NewValidatorWithCallbacks(optsGen validateOptsGenerator, kdsGetter trust.HT
validateOptsGen: optsGen,
callbackers: callbacks,
kdsGetter: kdsGetter,
logger: slog.New(logger.NewHandler(log.Handler(), "snp-validator")),
logger: log,
metrics: metrics{attestationFailures: attestataionFailures},
}
}
Expand Down
1 change: 1 addition & 0 deletions internal/kuberesource/parts.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ func Coordinator(namespace string) *CoordinatorConfig {
Container().
WithName("coordinator").
WithImage("ghcr.io/edgelesssys/contrast/coordinator:latest").
WithEnv(NewEnvVar("CONTRAST_LOG_SUBSYSTEMS", "snp-validator")).
WithVolumeDevices(applycorev1.VolumeDevice().
WithName("state-device").
WithDevicePath("/dev/csi0"),
Expand Down

0 comments on commit aa29f85

Please sign in to comment.