-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrubbing annotations from logs #1324
Conversation
Updated scrubbing for guest side, and added scrubbing for annotations Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
internal/guest/bridge/bridge.go
Outdated
@@ -301,8 +301,19 @@ func (b *Bridge) ListenAndServe(bridgeIn io.ReadCloser, bridgeOut io.WriteCloser | |||
trace.StringAttribute("activityID", base.ActivityID), | |||
trace.StringAttribute("cid", base.ContainerID)) | |||
|
|||
log.G(ctx).WithField("message", string(message)).Debug("request read message") | |||
|
|||
etry := log.G(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, i forgot an n
internal/log/scrub.go
Outdated
return nil | ||
} | ||
if ss, ok := m["ContainerConfig"]; ok { | ||
// ContainerConfig is a json encoded struct passed as a regular sting field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string*
Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
Updated scrubbing for guest side, and added scrubbing for annotations
Updated scrubbing to include logging from guest Linux GCS
Added scrubbing for annotations.
Signed-off-by: Hamza El-Saawy hamzaelsaawy@microsoft.com