Skip to content

Resource · Guide or article

Secrets Management

Practical rules for keeping API keys, tokens and passwords out of source control and logs, followed by loading patterns for several languages. Relevant for backend and DevOps candidates facing security or configuration questions in design rounds.

Reviewed

Open the original: Secrets Management (opens the original site in a new tab)

Add to a roadmap

Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.

Source content: English

Secret management refers to the tools and practices used to manage digital authentication credentials (like API keys, tokens, passwords, and certificates). These secrets are used to protect access to sensitive data and services, making their management critical for security.

PrepKit overview

PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.

Suited to
The source does not state a level
Format
Guide

What it covers

  • Lists five practices: centralized encrypted storage, access control, rotation, audit trails and automated secret lifecycle.
  • Recommends separate per-environment config files excluded through .gitignore, and warns that a secret pushed to any branch stays in git history and must be rotated.
  • Sets usage rules: do not log secrets, put them in reports, or pass them in URLs or forms.
  • Shows loading code for .NET user-secrets, .NET Framework appSettings, Node and Python dotenv, Python environs, and Databricks secret scopes.
  • Notes that these techniques still leave plaintext secrets in process memory at runtime.

How to use it

PrepKit study advice, not a claim made by the source.

Audit one of your own repositories against the five practices and the git-history warning, and write down what you would change. You should be able to explain, step by step, what you would do in the first hour after a key is committed to a public repo.

Scope and limitations

Several parts assume Azure, such as setting app settings with the Azure CLI and relying on Azure to encrypt the environment, and it suggests sharing local files through a Teams chat. It is team guidance, not interview material.

Access and format

Free English web page in the ISE Engineering Fundamentals Playbook on microsoft.github.io; the text comes from the CC BY 4.0 microsoft/code-with-engineering-playbook repository.

Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 016770e43d8a

Evidence behind this overview
  • docs/CI-CD/dev-sec-ops/secrets-management/README.md

Pages that include this

Get the PrepKit newsletter

Optional. You don't need it to use PrepKit.

How we handle your email