Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,15 @@ func (c *revalClient) Render(ctx context.Context, input HelmReValRenderInput) (H
)

log.V(1).Info("Do ReVal request")
log.V(2).WithValues("input", input).Info("Payload")
// input.APIKey, input.HelmRegistryAuthConfig, and input.ImageRegistryAuthConfig
// carry credentials and must not be logged.
log.V(2).WithValues(
"helmChart", input.HelmChartURL,
"releaseName", input.ReleaseName,
"instanceType", input.InstanceType,
"gpu", input.GPUName,
"k8sVersion", input.K8sVersion,
).Info("Payload")
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Comment thread
mesutoezdil marked this conversation as resolved.

// httpCode tracks the label value for the metric. It defaults to "error" (network failure),
// is set to stage-specific values on pre-call failures, and to the HTTP status code on success.
Expand All @@ -111,6 +119,7 @@ func (c *revalClient) Render(ctx context.Context, input HelmReValRenderInput) (H
return HelmReValRenderOutput{}, err
}

//nolint:gosec // input.APIKey belongs in this request body, sent to the ReVal service itself
payload, err := json.Marshal(input)
if err != nil {
httpCode = "marshal_error"
Expand Down
Loading