Skip to content
Browse documentation

Core concepts

Organizations, projects, and environments

Learn how Bulgur groups secrets and selects values for each application environment.

A simple hierarchy

An organization is the team boundary. A project represents an application or service. Each project has environments such as Development, Preview, Staging, and Production.

Secrets are name-value pairs in an environment. Their metadata can include a description, tags, a sensitive flag, and a version. Keep production values in the production environment and grant each consumer only the access it needs.

LevelWhat it groupsExample
OrganizationPeople and projectsAcme
ProjectOne application's configurationstorefront
EnvironmentValues for a deployment contextdevelopment, production

Shared values and overrides

Shared is a special environment whose values are inherited by the project's concrete environments. A concrete environment's value overrides a Shared value with the same name; otherwise, the Shared value is included.

A read of Development therefore returns its effective values: Shared values plus Development values, with Development taking precedence. Shared is a base layer, not another value set added on top of the selected environment.

dotenv
# Shared
API_TIMEOUT=10
SERVICE_URL=https://staging.service.example

# Production overrides the shared URL
SERVICE_URL=https://service.example

An environment-bound token can read that concrete environment and its inherited Shared values, but cannot target Shared directly. A project-bound token can cover the project's environments, including Shared, according to its operation scope.

Reference another secret

A value can include a reference such as ${DB_HOST}. Bulgur resolves references against the merged Shared and selected-environment values when values are pulled or loaded. The concrete environment wins when names overlap.

dotenv
# Shared
DATABASE_URL=postgres://${DB_HOST}:5432/app

# Development
DB_HOST=dev.db.internal

# Production
DB_HOST=prod.db.internal

References can chain. Unknown names and cycles are left unresolved rather than treated as a successful lookup. Write $${NAME} when you need the literal text ${NAME}.

Values are delivered in different ways

  • CLI run fetches values for a command; pull writes a selected output format to a file.
  • The Node SDK can fetch values at runtime. loadValues returns a request-local map; load writes to process.env and is intended for one-time startup.
  • Integrations copy selected values to a provider. After synchronization, that platform stores its own copy under its controls.