Skip to content

Exclude TLS key password from chaincode server log#547

Merged
bestbeforetoday merged 1 commit into
hyperledger:mainfrom
bestbeforetoday:password-log
May 11, 2026
Merged

Exclude TLS key password from chaincode server log#547
bestbeforetoday merged 1 commit into
hyperledger:mainfrom
bestbeforetoday:password-log

Conversation

@bestbeforetoday
Copy link
Copy Markdown
Member

The constructor for the NettyGrpcServer implementation included an info level log of all of the chaincode server properties, including the TLS key password. While both the key and accompanying password are necessary to allow the chaincode server to be impersonated, an attacker with access to the chaincode server filesystem where the key is stored would likely also have access to the logs containing the key password. The password is sensitive information that should not be logged regardless.

The constructor for the NettyGrpcServer implementation included an info
level log of all of the chaincode server properties, including the TLS
key password. While both the key and accompanying password are necessary
to allow the chaincode server to be impersonated, an attacker with
access to the chaincode server filesystem where the key is stored would
likely also have access to the logs containing the key password. The
password is sensitive information that should not be logged regardless.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@sonarqubecloud
Copy link
Copy Markdown

@bestbeforetoday bestbeforetoday marked this pull request as ready for review May 11, 2026 15:35
@bestbeforetoday bestbeforetoday requested a review from a team as a code owner May 11, 2026 15:35
@bestbeforetoday bestbeforetoday merged commit 46fa6f9 into hyperledger:main May 11, 2026
10 checks passed
@bestbeforetoday bestbeforetoday deleted the password-log branch May 11, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant