[KongchangAI]
Conceptenvironment variable / env var

Environment Variable

A key-value configuration mechanism provided by an operating system or process at runtime, allowing programs to read external parameters during startup or execution. It is widely used to control application behavior, pass secrets, and distinguish between runtime environments.

Timeline (last 90 days)

Oct 12

Environment variable assignments (such as $env:FOO=bar or export FOO=bar) are only effective in the current Shell process and its child processes, and become invalid when the terminal is closed; to take effect permanently, they need to be written into the Shell startup script (such as .bashrc, .zshrc, $PROFILE) or system environment variables.

Unverified50%
Oct 12

There are three common types of credential carriers: API keys exported in shell environment variables, configuration files and credential caches on disk (such as ~/.aws/credentials, ~/.ssh/id_rsa, ~/.npmrc), and cloud providers' instance metadata endpoints (such as 169.254.169.254).

Unverified50%
Oct 12

Users should not commit real API keys to code repositories, and should configure keys via environment variables.

Unverified50%

All Facts (4)

Source Articles