Skip to content

Commit ba71b32

Browse files
fix: remove a sensitive field from an agent log line (#20968) (#21063)
This PR removes a log field that could expose sensitive information in agent logs for workspaces that pass such information to the agent via its manifest. (cherry picked from commit 1d726c8) Co-authored-by: Sas Swart <sas.swart.cdk@gmail.com>
1 parent c94c470 commit ba71b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ func (a *agent) handleManifest(manifestOK *checkpoint) func(ctx context.Context,
11271127
if err != nil {
11281128
return xerrors.Errorf("fetch metadata: %w", err)
11291129
}
1130-
a.logger.Info(ctx, "fetched manifest", slog.F("manifest", mp))
1130+
a.logger.Info(ctx, "fetched manifest")
11311131
manifest, err := agentsdk.ManifestFromProto(mp)
11321132
if err != nil {
11331133
a.logger.Critical(ctx, "failed to convert manifest", slog.F("manifest", mp), slog.Error(err))

0 commit comments

Comments
 (0)