Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/templates/coordinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ spec:
serviceAccountName: marblerun-coordinator
containers:
- env:
{{- if .Values.coordinator.debugLogging }}
- name: EDG_DEBUG_LOGGING
value: "1"
{{- end }}
- name: EDG_COORDINATOR_MESH_ADDR
value: "{{ .Values.coordinator.meshServerHost }}:{{ .Values.coordinator.meshServerPort }}"
- name: EDG_COORDINATOR_CLIENT_ADDR
Expand Down
2 changes: 2 additions & 0 deletions charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ coordinator:
sealDir: "/coordinator/data/"
# OE_SIMULATION needs be set to "1" when running on systems without SGX1+FLC capabilities
simulation: false
# Enable debug logging in the coordinator
debugLogging: false

probes:
readiness:
Expand Down
10 changes: 10 additions & 0 deletions coordinator/seal/distributed/seal.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,17 @@ func (s *Sealer) SetSealMode(mode seal.Mode) {
s.mux.Lock()
defer s.mux.Unlock()
s.log.Debug("Setting seal mode", zap.Int("sealMode", int(mode)))

needsResealing := s.mode != mode && s.keyEncryptionKey != nil

s.mode = mode

if needsResealing {
s.log.Debug("Seal mode changed: resealing key encryption key")
if err := s.sealKEK(context.Background()); err != nil {
s.log.Error("Failed to reseal key encryption key after seal mode change", zap.Error(err))
}
}
}

// sealKEK seals the sealer's key encryption key using the enclave's product or unique key (if not disabled).
Expand Down
1 change: 1 addition & 0 deletions test/e2e/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func (h *Helm) InstallChart(
"tenantID": os.Getenv(constants.EnvAzureTenantID),
"clientSecret": os.Getenv(constants.EnvAzureClientSecret),
},
"debugLogging": true,
},
}
values = mergeMaps(values, extraValues)
Expand Down