maxdraco

Environment variable

A named setting a running program inherits from whatever started it.

Concept Programming and AI

An environment variable is a named setting that a running program inherits from whatever started it, such as the user’s home folder or the language to use. Programs often receive passwords and API keys this way, so the secrets are not written into the source code. Changing one usually means restarting the program, and anything that can read the program’s environment, or a crash report that dumps it, can see the secrets too.

See also

  • Secrets manager (vault) A service that stores passwords, keys and tokens in one protected place and hands them out only to programs and people allowed to have them.
  • Shell (command line) The program that reads typed commands and runs them; bash and zsh are common ones.
  • AI Artificial intelligence: software that performs tasks usually thought to need human judgement.
  • API A defined way for one program to ask another for data or actions.
  • Endpoint (route) One specific address on a web service that a program can call to do one job.
  • Exit code The number a program hands back when it finishes: zero for success, anything else for failure.
  • Git Free software that records every change to a set of files, used to keep the history of most software projects.
  • GraphQL A query language for APIs in which the client asks for exactly the data it wants in one request.

Sources

  1. Environment Variables (POSIX.1-2024, Base Definitions, Chapter 8)The Open Group / IEEEofficial healthy, checked 2026-11-15 archived copy
  2. Environment variableWikipedia healthy, checked 2026-11-15 archived copy

In security catalogues