What tools do you use, and how do you address secrets in environment variables and repositories?
Asked at
AI answer
I do not store secrets in source code, configuration files in the repository, or its history. For CI/CD, I use the platform's protected secret store or a separate secrets manager (for example, Vault or a cloud Secret Manager); where possible, I issue short-lived credentials through federation or workload identity. I limit access according to the principle of least privilege and rotate secrets regularly.
For local development, I use a .env file added to .gitignore and a safe .env.example without real values. Environment variables are convenient for passing secrets to a process, but they are not a storage solution by themselves: access to them should be restricted, and they should not be written to logs, dumps, or diagnostic messages. If a secret gets into the repository, I revoke or rotate it first—deleting the file from the latest commit is not enough; then I check the history and logs for further exposure.
Also asked at Bastion-Tech - DSO - Скрининг
- Do you currently have any offers or are you still going through interviews?
- How soon would you be able to start working part-time?
- Why are you considering changing jobs now? Is it related to professional development, or are there other reasons?
- Briefly tell me what you’ve been working on recently: what did you do hands-on, and what team were you part of?
- What are you interested in at the moment? What kinds of challenges would you like to work on, what technologies would you like to get hands-on experience with, and in what direction would you like to grow?
Similar questions
- When it comes to managing secrets and keys, how do you organize the secret lifecycle?
- How have you handled the storage and rotation of secrets in your work?
- Have you worked with HashiCorp Vault? What is it, exactly?
- Where are secrets stored in GitLab CI?
- You eliminated secret storage. Have you worked with HashiCorp Vault?