-
Notifications
You must be signed in to change notification settings - Fork 159
Strip secret fields from GRPC loggin #225
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
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: davidz627 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
07be090
to
ffb03d7
Compare
@@ -49,12 +50,12 @@ func NewNodeServiceCapability(cap csi.NodeServiceCapability_RPC_Type) *csi.NodeS | |||
|
|||
func logGRPC(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) { |
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.
i think there's actually a logGRPC function under csi-lib-utils/rpc if you want
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.
discussed offline, it is the client side version. since pd driver is server side we have to use a different logGRPC
ffb03d7
to
75257e8
Compare
75257e8
to
0c2fcee
Compare
/lgtm |
GCE PD Driver does not use secret fields, but this is cheap and will strip secret fields from logs in case they are accidentally passed to the driver.
Fixes: #180
/assign @msau42 @saad-ali