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.
| Level | What it groups | Example |
|---|---|---|
| Organization | People and projects | Acme |
| Project | One application's configuration | storefront |
| Environment | Values for a deployment context | development, production |
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.
# Shared
DATABASE_URL=postgres://${DB_HOST}:5432/app
# Development
DB_HOST=dev.db.internal
# Production
DB_HOST=prod.db.internalReferences 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.