Pipeline is echoing all the variables in the build setup section
Asked by Devendra Sharma:

I have recently observed that pipeline execution is echoing all the variables (workspace, pipeline repo etc.) in the build setup.  
This was not happening earlier, and I observed this after nov-9. Can I switch this behavior off? I am using **image: atlassian/default-image:3** image in my pipeline.


Answers:
author: Patrik S
body: Hello [@Devendra Sharma](/t5/user/viewprofilepage/user-id/4316593) ,

Thank you for reaching out to Atlassian Community!

The feature of printing the name of all the environment variables used in pipelines was recently released, to give the users more visibility of the variables available inside the build container.

However, I understand you wanted to disable this feature for your bitbucket repositories. Would you mind sharing with us the reason why you would like to opt-out of this feature and if you are running into any issues with this new functionality in pipelines? Any feedback is appreciated :)

Thank you, [@Devendra Sharma](/t5/user/viewprofilepage/user-id/4316593) .

Kind regards,

Patrik S

comments: author: Devendra Sharma
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,

Thanks for the response and I understand it's a feature to log the variables in the pipeline.

The reason I want to switch it off on demand because we have few workspace variables which are used to store secrets and I don't want everyone to know about those variables otherwise anyone can use those variables in their pipelines, and I will have control on their usage.

Thanks,  
Dev


author: Patrik S
body: Hello [@Devendra Sharma](/t5/user/viewprofilepage/user-id/4316593) ,

Thank you very much for sharing your feedback about this feature with us.

Users of your repository that have **write** access always had access to the variables in the pipeline step, so the feature of showing the env variables in the Build Setup is not giving additional permissions/access to these users that they didn't have previously.

Also, all the values of env variables configured as [Secured variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Secured-variables) will be masked from the pipeline logs so they are not disclosed to your team members viewing build logs.

Thank you, [@Devendra Sharma](/t5/user/viewprofilepage/user-id/4316593) .

Patrik S


author: Patrik S
body: Hello [@Devendra Sharma](/t5/user/viewprofilepage/user-id/4316593) ,

We have created a feature request to add the ability to disable the logging o environment variables names in the Build setup section :

* <https://jira.atlassian.com/browse/BCLOUD-22317>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you!

Patrik S


author: Devendra Sharma
body: I have voted for this feature

Thanks,


Tags: bitbucket-cloud

bitbucket-pipelines

build

cloud

variable