# Increase in secret referencing

**URL:** https://community.doppler.com/t/increase-in-secret-referencing/611
**Category:** Feature Requests
**Created:** [May 2, 2022, 11:54pm UTC](https://community.doppler.com/t/increase-in-secret-referencing/611 "2022-05-02T23:54:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alejandro485](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/alejandro485/32/218_2.png) [@alejandro485](https://community.doppler.com/u/alejandro485)
#### Post date: [May 2, 2022, 11:54pm UTC](https://community.doppler.com/t/increase-in-secret-referencing/611/1 "2022-05-02T23:54:34Z")

</div>

Doppler currently has a system of referencing environment secrets between projects which is written in each box of each secret in each configuration, which is very good and on that functionality would like to form an improvement for a particular case where the references are made in projects of similar configurations, the idea is that you can bring the values of a variable in all environments of a source project, and cross with the values of the target project in their environments.

For example, I have 3 projects, MAIN\_PROJECT, A\_PROJECT and B\_PROJECT, the project MAIN\_PROJECT has 3 environments: DEVELOP, STAGING and PROD, and it has 3 secrets

- MAIN\_PROJECT

Secret | DEVELOP | STAGING | PROD |  
VAR\_1 | qwe | rty | uio |  
VAR\_2 | asd | zxc | qwe |  
VAR\_3 | qwerti | qwerto | qwertu |

In A\_PROJECT you need the secrets VAR\_1 and VAR\_2 from MAIN\_PROJECT and you have the same environments, then with the new feature from A\_PROJECT you can navigate to MAIN\_PROJECT and select from there the variables you need, in the back you make the reference with the writing in each box but the user only selects the external secrets, and A\_PROJECT would look like this:

- A\_PROJECT

Secret | DEVELOP | STAGING | PROD |  
VAR\_1 | $MAIN.DEV.VAR\_1 | $MAIN.STG.VAR\_1 | $MAIN.PRD.VAR\_1 |  
VAR\_2 | $MAIN.DEV.VAR\_2 | $MAIN.STG.VAR\_2 | $MAIN.PRD.VAR\_2 |

Here you could take 2 approaches, one is within the receiving project to somehow save the references so that you somehow know which secrets were added with this feature, or just write the fields for each secret without further ado, which would also be fine.

Now, in B\_PROJECT let’s say you need the secret VAR\_3, but it has a different/additional environment, in that case the cross over could not be done for that specific box and the blank space would be left for the user to define its value, or reference.

B\_PROJECT

Secret | DEVELOP | STAGING | PRODUCT |  
VAR\_3 | $MAIN.DEV.VAR\_3 | $MAIN.STG.VAR\_3 | _646363_ |

For the user it is a pop-up where the projects are explored and selecting the projects, environment and secrets.

The main reason for this functionality is that you can reference secrets much more quickly and conveniently than typing them into each field one at a time, and it would also help a lot in migrating secrets from other systems to here: in principle you only need one project that contains all the secrets.

I hope I have described the functionality well, best regards.
