Hi,
I know that maybe it is not the right channel and I should open a bug for this. But I do not really know which plugin/component is responsible of this.
I have noticed that the new UI does not mask sensitive information… which is masked correctly in the pipeline logs.
First example using curl wrapped with a withCredentials:
As you can see the Authorization header is masked correctly in the pipeline logs, but not on the UI. Obviously I had to hide it to share the screenshot, but it is there.
Second example using the sonar scanner wrapped with withSonarQubeEnv:
I think this is a major security concern, so I have disabled the plugin till this is not fixed properly.
I would suggest anyone using this plugin to check if they are affected and disable the it in case they are.
I think the problem you encounter is that groovy interpolates your secrets when you’re using double quotes for the sh step. That means that the PASSWD is replaced with the actual password before the sh step is instantiated.
Thanks @mawinter69, this is what I have seen in the stuff I linked as well. I am giving it a try but to be honest I was expecting the logs and the UI to behave in the same way… here the confusion.