IBM / go-sdk-core

The go-sdk-core repository contains core functionality required by Go code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
30 stars 24 forks source link

fix: redact secrets when logging requests/responses #141

Closed padamstx closed 2 years ago

padamstx commented 2 years ago

This commit introduces a number of changes:

  1. A new RedactSecrets(string) function that will recognize a few different patterns re: secrets and redact things like passwords, access tokens, api keys, etc.

  2. Debug logging of requests and responses was added to the IAM and CP4D authenticators

  3. The Iam and CP4D authenticator tests were instrumented to make it easy to enable debug logging while running the tests to facilitate debugging and problem diagnosis.

  4. All components that perform debug logging of requests and responses will now use the new RedactSecrets function to sanitize the logged messages.

ibm-devx-sdk commented 2 years ago

:tada: This PR is included in version 5.7.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: