dell/csm

[Bug] CSM Authorization module if not put in error mode ends up putting password in plain text all over the logs

Closed this issue · 8 comments

Bug Description

CSM Authorization module if not put in error mode ends up putting password in plain text all over the logs

Logs

CSM Authorization module if not put in error mode ends up putting password in plain text all over the logs

Screenshots

No response

Additional Environment Information

No response

Steps to Reproduce

Set info as LOG_LEVEL

Expected Behavior

Password should never be printed in logs

CSM Driver(s)

CSM 1.7.1

Installation Type

No response

Container Storage Modules Enabled

Powermax, reverseproxy,authorization

Container Orchestrator

Openshift

Operating System

Core OS

@gloriousbao: Thank you for submitting this issue!

The issue is currently awaiting triage. Please make sure you have given us as much context as possible.

If the maintainers determine this is a relevant issue, they will remove the needs-triage label and respond appropriately.


We want your feedback! If you have any questions or suggestions regarding our contributing process/workflow, please reach out to us at container.storage.modules@dell.com.

atye commented

Followed up with @coulof for sanitized log examples.

/sync

link: 25977

Defaulted container "proxy-server" out of: proxy-server, opa, kube-mgmt
time="2024-07-05T16:15:58Z" level=info msg="Config: {Version: Zipkin:{CollectorURI: ServiceName:proxy-server Probability:0.8} Certificate:{CrtFile: KeyFile: RootCertificate:} Proxy:{Host::8080 ReadTimeout:30s WriteTimeout:30s} Web:{ShowDebugHTTP:false DebugHost::9090 ShutdownTimeout:15s JWTSigningSecret:xxxxxx} Database:{Host:redis.karavi.svc.cluster.local:6379 Password:} OpenPolicyAgent:{Host:127.0.0.1:8181}}"
time="2024-07-05T16:15:58Z" level=info msg="configuration has been set" LOG_LEVEL=debug
time="2024-07-05T16:15:58Z" level=info msg="configuration has been set" LOG_LEVEL=debug
time="2024-07-05T16:15:58Z" level=info msg="main: started application version "develop""
time="2024-07-05T16:15:58Z" level=info msg="main: initializing debugging support"
time="2024-07-05T16:15:58Z" level=debug msg="main: debug listening" debug host=":9090"
time="2024-07-05T16:15:58Z" level=info msg="main: initializing proxy service"
time="2024-07-05T16:15:58Z" level=info msg="main: proxy listening" proxy host=":8080"

atye commented

@randhikpurwalam @coulof

I don't see any username or password information in the logs provided in the previous comment. Could you replicate the behavior where you saw plain text passwords and send those logs?

atye commented

@randhikpurwalam I misunderstood that the JWT Signing Secret was in question. A fix was just put in to not print the configuration. This will be available in the next nightly image and when the 1.11 image is released.