# Feature request: allow variables in repository fields

**URL:** <https://www.finalbuilder.com/forums/t/feature-request-allow-variables-in-repository-fields/5186>\
**Category:** Feature Requests\
**Tags:** implemented\
**Created:** [June 18, 2014, 10:45am UTC](https://www.finalbuilder.com/forums/t/feature-request-allow-variables-in-repository-fields/5186 "2014-06-18T10:45:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [June 18, 2014, 10:45am UTC](https://www.finalbuilder.com/forums/t/feature-request-allow-variables-in-repository-fields/5186/1 "2014-06-18T10:45:39Z")

</div>

I am using bitbucket for some private projects for a client. Since I group by project, I have BitBucketUsername and BitBucketPassword variables on the project level so I can use them in all the configurations.  
  
However, when I use %BitBucketUsername% in the repository setup, they aren’t being replaced:  
  
An error occurred while contacting the Git repository: 'fatal: Authentication failed for ‘https://%BitBucketUsername%:%BitBucketPassword%@bitbucket.org/company/repository.git’ ’

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [June 18, 2014, 12:19pm UTC](https://www.finalbuilder.com/forums/t/feature-request-allow-variables-in-repository-fields/5186/2 "2014-06-18T12:19:54Z")

</div>

Hi Geert   
  
 We have looked at this before, but it brings up some security issues that we need to find a way to handle. Storing passwords in variables is somewhat insecure, in that there are a number of ways that those passwords could potentially ‘leak’. So we decided to no allow them for the time being and will try to come up with a way of sharing credentials between configs, repos etc.

---

<div class="post-metadata">

**Author:** ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)\
**Post date:** [June 18, 2014, 12:36pm UTC](https://www.finalbuilder.com/forums/t/feature-request-allow-variables-in-repository-fields/5186/3 "2014-06-18T12:36:01Z")

</div>

I thought that the password type was meant for this, but I can imagine other sources of leaks. Thanks for the reply, will await your solution in the future.
