Answer the question
In order to leave comments, you need to log in
Where and how best to store confidential data for project deployment?
The project code is stored in a private git repo. Keys and passwords from third-party services with which the project interacts (AWS, Robokassa, Paypal, Stripe) are outside the repo - so far on my local laptop in 1Password, for example. In the project, all private data ends up in environment variables, and scripts take it from there. For Laravel, this is either through creating .env.php at the root of the project, or through the web server configs or settings when starting the docker container.
During deployment, SSH keys and keys from DigitalOcean are also required.
Tasks now:
Answer the question
In order to leave comments, you need to log in
Hashicorp Vault
or Ansible Vault
Despite the coincidence of names, these are fundamentally different things.
Divide / separate / clearly limit powers.
A small service that manages the key, for example, and the rest do not have access to keys, but only access this service. And he only allows them to do what they can.
Or see an example of how CloudFlare KeyLess works.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question