# Company-Wide Environment Variables

**URL:** <https://forum.buildkite.community/t/company-wide-environment-variables/1033>\
**Category:** Features Requests\
**Created:** [May 12, 2020, 9:48pm UTC](https://forum.buildkite.community/t/company-wide-environment-variables/1033 "2020-05-12T21:48:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigo.boratto](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rodrigo.boratto](https://forum.buildkite.community/u/rodrigo.boratto)\
**Post date:** [May 12, 2020, 9:48pm UTC](https://forum.buildkite.community/t/company-wide-environment-variables/1033/1 "2020-05-12T21:48:23Z")

</div>

Hello!

Congratz for this amazing tool! 😃 Really enjoying!  
Well, there is a good function on GITLAB that I use is a company-wide Environment Variables. Maybe I’m doing something wrong here, but, all my services share several variables for my CI/CD routines and I have to copy&paste all of them on each service.

Another good thing on Gitlab is restrictions, some users can’t see these variables. So secure them will be good too.

Thank you,

Rodrigo

---

<div class="post-metadata">

**Author:** ![xiaket](https://avatars.discourse-cdn.com/v4/letter/x/7feea3/32.png) [@xiaket](https://forum.buildkite.community/u/xiaket)\
**Post date:** [May 12, 2020, 9:57pm UTC](https://forum.buildkite.community/t/company-wide-environment-variables/1033/2 "2020-05-12T21:57:26Z")

</div>

Heya mate, if you are using the elastic-ci-stack-for-aws, you could take a look at the bootstrap.sh, in which you could do arbitrary things on the agent, including inserting global envvars.

---

<div class="post-metadata">

**Author:** ![Jason](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/jason/32/742_2.png) [@Jason](https://forum.buildkite.community/u/Jason)\
**Post date:** [May 13, 2020, 5:06am UTC](https://forum.buildkite.community/t/company-wide-environment-variables/1033/3 "2020-05-13T05:06:29Z")

</div>

Hey Rodrigo and welcome!

As an extension to what @xiaket suggested, you could use the Environment hook on the agent for just this kind of thing [https://buildkite.com/docs/agent/v3/hooks](https://buildkite.com/docs/agent/v3/hooks)

---

<div class="post-metadata">

**Author:** ![rodrigo.boratto](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rodrigo.boratto](https://forum.buildkite.community/u/rodrigo.boratto)\
**Post date:** [May 13, 2020, 12:14pm UTC](https://forum.buildkite.community/t/company-wide-environment-variables/1033/4 "2020-05-13T12:14:39Z")

</div>

hmm! Thank you mates! 🥳  
I got it. Sorry for not reading the entire docs… =/

I will implement an **Environment** hook on my agents then.
