Descriptor Enrichment Overview
When Witboost evaluates a governance policy or dispatches a provisioning request, it works against the project's descriptor — a YAML document containing all the metadata that describes the project and its components.
Descriptor enrichment adds information to this document, either while it is being generated (static enrichment) or at evaluation time (dynamic enrichment). For example, a descriptor can include a schema from a repository file or the project's current deployment status.
Static vs. dynamic enrichment
The two approaches serve different needs:
| Static data | Dynamic data | |
|---|---|---|
| When computed | During descriptor rendering | At evaluation time (provisioning, policy testing) |
| Stored in the release snapshot | Yes | No |
| Reflects current state | Values resolved during rendering; frozen in a release | Live platform state, subject to cache TTL |
| Example | Repository schemas, values from published descriptors | Current deployment status per environment |
Static enrichment
Static enrichment includes information from other sources when the descriptor is generated. You can:
- Include repository files, such as a schema in a data contract or shared cluster configuration.
- Reuse values from published descriptors, such as metadata from an upstream product or consumable in the Marketplace.
These values become part of the generated descriptor. Generating it again can pick up changes in the source data, but the values stored in an existing release snapshot do not change.
To get started, read the guide to defining projects and components, which introduces how their YAML definitions are generated. Then follow the configuration examples for including repository files and published descriptor values.
Dynamic enrichment with providers
Some governance decisions require information that changes after a release is created, such as whether a project is currently deployed in a given environment. Descriptor Enrichment Providers add this live platform state at evaluation time, without changing the release snapshot.
Dynamic enrichment data is never stored in the release snapshot. If you inspect a release's descriptor directly, you will not find fields such as witboost.deploymentStatus — those are added in memory at evaluation time only.
When dynamic enrichment data is available
Dynamic enrichment data is added to the descriptor in two situations:
- During a deployment: before governance policies are evaluated and before the descriptor is passed to Tech Adapters.
- During a policy test (Builder Edit & Test): before the governance engine evaluates the policy, so test results reflect the same data that would be present in a real deployment.
In both cases, by the time a governance policy runs, the descriptor already contains all available enriched data. Policies do not need any special handling to access it — they read it like any other descriptor field.
Testing policies against their perimeter: When testing a policy against its perimeter in the Governance section, the descriptor contains enriched data from when the project was last deployed, but this data is static (stored), not live. The policy evaluates against the stored enriched descriptor, not freshly computed enriched data.
How dynamic enrichment works
Descriptor Enrichment Providers are platform components that each add a specific set of fields to the descriptor. Providers are:
- Registered automatically when the platform starts
- Disabled by default — operators must explicitly enable them through the Administration Panel
- Invoked at evaluation time — just before governance policies run or before the descriptor is passed to Tech Adapters
- Cached — provider results are cached for a configurable TTL to reduce latency and upstream load
Each provider:
- Has a unique identifier (e.g.,
witboost.deployment-status) - Adds fields under a specific key in the descriptor (e.g.,
witboost.deploymentStatus) - Can be independently enabled, disabled, and configured
- Can be restricted to specific project types using System Types filtering
Next steps
- To get started with static enrichment: Start with the guide to defining projects and components, then follow the configuration examples
- To enable a provider: See Enable Descriptor Enrichment Providers
- To understand configuration options: See Descriptor Enrichment Configuration
- To see available providers: See Descriptor Enrichment Providers