num-codex / codex-processes-ap1

Business processes for the NUM CODEX project (AP1) as plugins for the HiGHmed Data Sharing Framework
Apache License 2.0
3 stars 6 forks source link

[Feature Request] Hide fTTP API Key on startup connection test #113

Closed schwzr closed 1 year ago

schwzr commented 1 year ago

Currently, when the process plugin is started, the API key is printed in plain text during the connection test to the fTTP (see the following example).

app_1  | INFO main - FttpClientFactory.testConnection(136) | Testing connection to fTTP with {trustStorePath: AAA, certificatePath: AAA, privateKeyPath: AAA, privateKeyPassword: null, basicAuthUsername null, basicAuthPassword null, serverBase: AAA, apiKey: THIS_IS_THE_API_KEY, study: num, target: AAA, proxyUrl null, proxyUsername, proxyPassword null}

This could be displayed similar to the output of the basic auth password with *, possibly specifying the first and last character (e.g. Z********y ) to ensure that the config option was parsed correctly.