Open TimGerlach opened 2 years ago
The integration uses the download function from the Buildpack-internal base component which prints out the whole Url. We are currently evaluating the option to adapt the sanitizer to prevent the logging of the secret portion of the key.
Observed Issue
When using the Dynatrace integration of this buildpack it will log the complete API token into the staging logs of Cloud Foundry.
For example when running
cf push
with Dynatrace enabled it looks like the following:Expected Behaviour
According to the Dynatrace API token format specification the public portion of the token can be treated like a public secret key. This allows for identifying which token was used for staging the app. The secret portion of the token, however, should not be logged to avoid that it shows up in CI/CD pipelines, for example.
Therefore, a better way of logging the API token would be like so: