Deployment Profile reference
openlakeforge.yaml at the project root says where a project deploys, which
stages it runs, how people reach its services and who may sign in. This page
lists every field, its type and default, and the rules olf checks across
fields.
The file is validated against docs/schema/deployment-profile.schema.json and
then by tools/olf/olf/profile.py, which is the authority where the two differ.
Check a profile without deploying:
olf profile validate --project .olf profile resolve --project . --jsonEvery object rejects fields it does not list. The decisions behind the model are in ADR 0011 (profile and stages), ADR 0013 (access) and ADR 0014 (identity).
A complete example
Section titled “A complete example”apiVersion: openlakeforge.io/v1alpha1kind: DeploymentProfile
metadata: name: openlakeforge
spec: provider: type: local preset: slim stages: dev: enabled: true prod: enabled: true access: base_domain: olf.localhost issuer: local-ca identity: issuer: github github: organization: my-org teams: platform-admin: [platform-team] analyst: [analysts] oauth_app_secret_ref: name: github-oauth-appEnvelope
Section titled “Envelope”| Field | Type | Required | Meaning |
|---|---|---|---|
apiVersion |
string | yes | Must be openlakeforge.io/v1alpha1. |
kind |
string | yes | Must be DeploymentProfile. |
metadata |
object | yes | See below. |
spec |
object | yes | See below. |
metadata
Section titled “metadata”| Field | Type | Required | Meaning |
|---|---|---|---|
name |
string | yes | Names this deployment. Must match ^[a-z](https://github.com/OpenLakeForge/openlakeforge/tree/v0.5.0-alpha.1/docs/reference/[a-z0-9-]{0,61}[a-z0-9])?$: it becomes the openlakeforge.io/profile label on every namespace the deployment owns, and teardown finds them by it. |
| Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
provider |
object | yes | Where the platform runs. | |
preset |
slim or full |
yes | Default optional capabilities for every stage. | |
stages |
object | yes | Which lifecycle stages exist. | |
access |
object | no | absent: no ingress | How user-facing services are published. |
identity |
object | no | absent: sign-in off | Who may sign in and which roles they hold. |
spec.provider
Section titled “spec.provider”| Field | Type | Required | Meaning |
|---|---|---|---|
type |
local, aws or azure |
yes | The deployment target. local is a kind cluster on this machine. |
region |
string, non-empty | no | Cloud region. Rejected when type is local. Used for aws; when unset, AWS_REGION and then eu-west-1 apply. For azure the region comes from the foundation tfvars (AZURE_TFVARS_FILE). |
spec.preset
Section titled “spec.preset”| Value | analytics default |
governance default |
|---|---|---|
slim |
false |
false |
full |
true |
true |
The preset is the default for each stage’s capabilities (below); a stage that
states its capabilities keeps its own values.
spec.stages
Section titled “spec.stages”An object with at least one of the keys dev, uat and prod. Any other key is
rejected. A stage left out is disabled: prod is never created implicitly.
Each stage takes:
| Field | Type | Default | Meaning |
|---|---|---|---|
enabled |
boolean | true |
Whether the stage is deployed. |
capabilities |
object | the preset’s defaults | Optional services in this stage. |
capabilities takes:
| Field | Type | Default | Meaning |
|---|---|---|---|
analytics |
boolean | false |
Deploy Superset in this stage. |
governance |
boolean | false |
Deploy OpenMetadata governance for this stage. |
The preset defaults apply only when the stage has no capabilities object at
all. Once capabilities is written, a capability it leaves out is false.
A disabled stage resolves both capabilities to false whatever was written.
spec.access
Section titled “spec.access”Declaring the block turns the ingress on; access: {} asks for the defaults.
Without it there is no ingress at all.
| Field | Type | Default | Meaning |
|---|---|---|---|
base_domain |
string | olf.localhost |
Lowercase DNS name with at least one dot. Every service host is <service>.<base_domain> or <service>-<stage>.<base_domain>, and the portal is served at the base domain itself. |
issuer |
string, ^[a-z](https://github.com/OpenLakeForge/openlakeforge/tree/v0.5.0-alpha.1/docs/reference/[a-z0-9-]{0,61}[a-z0-9])?$ |
local-ca |
The certificate issuer. The local provider ships only local-ca (a CA the platform creates) and none, which serves plain HTTP. |
spec.identity
Section titled “spec.identity”Declares who signs in. issuer selects one of two shapes, and the other
shape’s fields are rejected.
| Field | Type | Applies to | Meaning |
|---|---|---|---|
issuer |
github or external |
both | Required. Which OIDC issuer signs people in. |
github |
object | github |
Required for github; rejected for external. |
issuer_url |
string, https:// URL |
external |
Required. The issuer’s URL; the token iss claim must equal it. It needs a host and no query, fragment, whitespace or control characters. |
role_claim |
string, non-empty | external |
Required. The token claim holding role values, for example groups or cognito:groups. |
role_mapping |
object | external |
Required. Canonical role to the claim values that grant it. |
client_ids |
object | external |
Optional issuer-assigned client ids, keyed by consumer. |
For github, issuer_url, role_claim, role_mapping and client_ids must
not be written: olf derives them (role_claim becomes groups, and each role
maps to <organization>:<slug> for its teams).
The canonical roles, highest first, are platform-admin, data-engineer,
analyst and viewer (release/identity-roles.yaml). Any other role name is
rejected.
spec.identity.github
Section titled “spec.identity.github”| Field | Type | Required | Meaning |
|---|---|---|---|
organization |
string, ^[A-Za-z0-9-]+$ |
yes | The organisation login exactly as GitHub shows it, case included: Dex compares it exactly. |
host |
hostname string | no | A GitHub Enterprise Server hostname, with no scheme or path. Absent means github.com. Dex then trusts the platform CA for it. |
teams |
object | yes | Canonical role to a list of GitHub team slugs. At least one role. |
oauth_app_secret_ref |
object | yes | The Secret holding the GitHub OAuth App client id and secret. |
teams rules: each key is a canonical role; each value is a non-empty list of
team slugs as GitHub shows them in the team URL (olf lowercases them). A slug
may not repeat within a list, and one team may not map to two roles.
oauth_app_secret_ref:
| Field | Type | Default | Meaning |
|---|---|---|---|
name |
string | none; required | The Kubernetes Secret’s name: a DNS subdomain of at most 253 characters, each label at most 63. You create the Secret; the profile never carries a value. |
client_id_key |
string | client-id |
The Secret key holding the client id. |
client_secret_key |
string | client-secret |
The Secret key holding the client secret. Must differ from client_id_key. |
Keys match [-._a-zA-Z0-9]+ and are at most 253 characters.
spec.identity.role_mapping (external only)
Section titled “spec.identity.role_mapping (external only)”An object whose keys are canonical roles (at least one). Each value is a non-empty list of non-empty claim-value strings. A value may not repeat within a role, and one claim value may not map to two roles.
spec.identity.client_ids (external only)
Section titled “spec.identity.client_ids (external only)”An object with at least one key from perimeter, superset, openmetadata and
trino; each value is a non-empty string. A consumer left out uses its own name
as the client id. external deploys no issuer: you provide the four client
Secrets the contract names, as described in ADR 0014.
Cross-field rules
Section titled “Cross-field rules”| Rule | Rejected when |
|---|---|
| At least one stage runs | Every stage is disabled. |
| DEV gates the others | uat or prod is enabled while dev is disabled or absent: every promotion sources from DEV. |
| Region is cloud-only | spec.provider.region is set with type: local. |
| Identity needs access on local | type: local has spec.identity but no spec.access: sign-in needs the route hostnames. |
| Authentication off publishes nothing | There is no spec.identity, and spec.access is declared on aws or azure, or with a base_domain not ending in .localhost on local. Without identity no one signs in, so it is allowed only where nothing is reachable beyond the operator’s machine: locally on *.localhost, and on the clouds without spec.access, where services are reached with olf forward. |
| Plain HTTP is local-only | spec.access.issuer is none and the provider is not local, or base_domain does not end in .localhost. |
| Issuer shape | external lacks issuer_url, role_claim or role_mapping; github lacks github or sets issuer_url, role_claim or role_mapping; github is set without issuer: github; client_ids is set without issuer: external. |
On local, olf deploy also refuses a spec.access.issuer other than
local-ca or none before it creates the cluster.
Related
Section titled “Related”- ADR 0011: Deployment Profile and stages
- ADR 0013: service access
- ADR 0014: identity and authorization
olfCLI
Synced from openlakeforge @ v0.5.0-alpha.1 (1598142), docs/reference/deployment-profile.md.