FLUIDFLUID
  • Introduction
  • Quickstart
  • Why FLUID
  • FAQ
  • What FLUID Is
  • Core Principles
  • Agentic-Native Layer
  • FLUID vs ODCS / ODPS
  • Reference Implementation
  • Anatomy
  • Cheatsheet
  • Minimal Contract
  • Specification
  • Versions
  • Changelog
  • JSON Schema 0.7.6 (stable)
  • Reference 0.7.6 (HTML)
  • Preview: 0.7.7
Examples
How-to
What's New
Deck
  • Contributing
  • Governance
  • Conformance Corpus
  • Vision
GitHub
  • Introduction
  • Quickstart
  • Why FLUID
  • FAQ
  • What FLUID Is
  • Core Principles
  • Agentic-Native Layer
  • FLUID vs ODCS / ODPS
  • Reference Implementation
  • Anatomy
  • Cheatsheet
  • Minimal Contract
  • Specification
  • Versions
  • Changelog
  • JSON Schema 0.7.6 (stable)
  • Reference 0.7.6 (HTML)
  • Preview: 0.7.7
Examples
How-to
What's New
Deck
  • Contributing
  • Governance
  • Conformance Corpus
  • Vision
GitHub
  • What's New

    • What's New
    • FLUID 0.7.7 (preview) — Recursive Streaming Types
    • FLUID 0.7.6 — Declarative Packaging Modes
    • What's New in FLUID 0.7.5 — Streaming Kafka → Iceberg Sink & Confluent Tableflow
    • What's New in FLUID 0.7.4 — Runtime agentPolicy Enforcement at the MCP Gateway
    • What's New in FLUID 0.7.3 — Source-Aligned Acquisition
    • What's New in FLUID 0.7.2 — Semantic Truth Engine
    • What's New in FLUID 0.7.1 — Agentic Governance + Provider-First Orchestration

FLUID 0.7.6 — Declarative Packaging Modes

Stable

0.7.6 is the latest stable version. It was a preview while 0.7.5 was stable, and a contract uses it by declaring fluidVersion: "0.7.6". The next preview is 0.7.7. See Stable and preview versions.

0.7.6 adds declarative ownership of infrastructure containers (packaging), a declared list of downstream consumers, pins for upstreams in another mesh, binding-level fields that let one cloud-neutral contract carry encryption, identity mapping and data expiry to each platform it is deployed on, row filters and masked columns in an expose's access policy, Apache Flink as a build engine, a continuous trigger for builds that run as long-lived jobs, credentials by environment variable for a REST catalog an Iceberg sink writes to, and the optional Bitol-shaped fields the ODCS and ODPS exporters wanted: a team roster, a structured description, contract ids, Kafka serialization and column-level quality rules.

  • Schema: fluid-schema-0.7.6.json · Reference: specs/0.7.6/fluid-spec.html · Diff: diff-0.7.5-to-0.7.6.md
  • Compatibility: additive over 0.7.5. scripts/check-compat.py --from 0.7.5 --to 0.7.6 reports no narrowing change, so a valid 0.7.5 contract stays valid when it declares "0.7.6".

What is new

Every addition below is optional. The list is derived from the schemas: these are the property paths present in 0.7.6 and absent in 0.7.5.

PathWhat it declares
packagingContract-wide ownership mode for the containers a product writes into.
exposes[].binding.packagingA per-binding override of packaging.
consumers[]The downstream artifacts (dashboards, notebooks, applications…) built on this product.
consumes[].upstreamWorkspace, consumes[].upstreamDigestA pin on an upstream that lives in another mesh.
exposes[].semantics.measures[].aggParamsParameters for an aggregation, used by agg: percentile.
exposes[].binding.encryption.kmsThe key that data at rest is encrypted with.
exposes[].binding.principalsWhat each logical principal named in the contract is on this binding's platform.
exposes[].binding.governance.lakeFormation.bucketPolicyWhich grantees may read a Lake Formation location directly from object storage.
exposes[].lifecycle.expireWhether data older than the expose's retention is deleted.
exposes[].policy.privacy.masking[].params.{keepFirst, keepLast, saltEnv, keyEnv}Typed parameters for masking rules.
exposes[].policy.authz.rowFilters[]Which rows each principal may read.
exposes[].policy.authz.columnRestrictions[].maskThe masking rule an access: mask restriction applies.
exposes[].binding.governance.lakeFormation.maskedViewsThe role and Glue connection behind the views that serve masked columns on Lake Formation.
build(s).properties.sink.catalogAuthHow an acquisition sink authenticates to an Iceberg REST catalog, by naming environment variables.
metadata.teamA roster: the team's name and its members, each with a username and optionally a name, role and email.
description (as an object){purpose, usage, limitations}. In 0.7.5 the root description is a plain string, which is still accepted.
consumes[].contractId, consumes[].contractVersionThe upstream's own contract id, and the exact upstream version this product was built against.
exposes[].contract.idAn explicit, stable contract id for an expose.
exposes[].contract.schema[].qualityColumn-level data quality rules in ODCS's own shape.
exposes[].binding.location.hostThe host or endpoint of a binding; for Kafka, the bootstrap servers.
exposes[].binding.serialization.{value, key}How Kafka message values and keys are serialized.

fluidVersion accepts "0.7.6" in addition to "0.7.3", "0.7.4" and "0.7.5". Four enums gain values: build(s).execution.trigger.type accepts continuous, build(s).engine accepts flink, build(s).properties.sink.catalog accepts lakekeeper and polaris, and exposes[].policy.authz.columnRestrictions[].access accepts mask.

0.7.6 also writes down the meaning of a field that already existed: exposes[].policy.authz.columnRestrictions (below).

Reading the 0.7.6 schema descriptions

Many 0.7.6 field descriptions explain what the reference implementation does with the field (fluid apply, the OpenTofu resources it emits, fluid verify). Those passages are non-normative: they describe one implementation. A FLUID document is valid or invalid by its schema; an implementation that validates the same documents conforms whether or not it provisions the same resources.


packaging — who owns the containers

packaging:
  mode: shared            # isolated | shared — the default for every container kind
  pool: analytics-eu      # id of the platform-owned pool the product writes into
  containers:             # per-kind overrides: bucket | database | dataset | schema | warehouse | cluster
    warehouse: isolated   # hybrid tier: shared database, owned warehouse
  • isolated — the product creates and owns the container.
  • shared — the container already exists and belongs to the platform; the product writes into it but does not create or own it.
  • exposes[].binding.packaging has the same shape and overrides packaging key by key for that binding. An absent packaging block declares nothing, and the 0.7.6 schema describes that case as the behaviour from before the block existed.

The schema constrains the shape; it does not require pool. The reference implementation refuses a contract in which any container resolves to shared and no pool is set (packaging (pool-required)), and refuses isolated for the cluster container kind on a Confluent or Kafka binding (cluster-isolated-unsupported). Which platform resource each container kind stands for is implementation-defined; the 0.7.6 schema's description of containers lists the reference implementation's mapping.

consumers — what is built on this product

consumers:
  - name: weekly_revenue_dashboard     # required — identifier, unique within the contract
    type: dashboard                    # required — dashboard | notebook | analysis | ml | application
    label: Weekly Revenue Dashboard
    maturity: high                     # high | medium | low
    owner: { team: finance-analytics, email: finance-analytics@example.com }
    url: https://bi.example.com/dashboards/42
    exposeIds: [orders]                # which output ports it reads; absent = all

The shape follows dbt exposures. The block is purely declarative: the 0.7.6 schema says consumers never affect plan or apply, and marks the block as reserved — the reference implementation carries it through but does not yet act on it.

Cross-mesh pins on consumes[]

consumes:
  - productId: crm.bronze.accounts
    exposeId: accounts
    upstreamWorkspace: crm-mesh                  # the other mesh that owns this upstream
    upstreamDigest: "sha256:4f1c9a0d6e2b7c8a1f3e5d9b0c2a4e6f8d1b3c5e7a9f0b2d4c6e8a1b3d5f7091"
  • upstreamWorkspace names the federated workspace that owns the upstream. Omit it for an upstream in the same workspace.
  • upstreamDigest is the digest of the upstream contract this product was composed against, written sha256: followed by 64 lowercase hex characters.
  • Setting upstreamWorkspace requires upstreamDigest. The schema states this with dependentRequired, a JSON Schema Draft 2020-12 keyword. 0.7.6 is the first FLUID schema to use a keyword that Draft 7 does not have, so a validator that applies Draft 7 rules ignores this requirement. Every FLUID schema declares Draft 2020-12 (see Validation semantics).

What the digest is computed over is not defined by the standard; it is implementation-defined. In the reference implementation it is a SHA-256 over the parsed, canonicalised upstream contract, printed by fluid contract digest <contract>, and fluid apply compares it with the upstream's current digest to detect that the upstream changed since composition.

aggParams on semantic measures

semantics:
  measures:
    - name: p95_amount
      agg: percentile
      expr: amount
      aggParams:
        percentile: 0.95              # in [0, 1]; 0.5 is the median
        useDiscretePercentile: false  # discrete instead of interpolated percentile

aggParams mirrors agg_params in dbt-semantic-interfaces. In 0.7.6 it is used by agg: percentile.

Binding fields: encryption, principals, Lake Formation bucket policy

binding:
  platform: gcp
  format: bigquery_table
  location: { project: acme-analytics, dataset: sales, table: orders, region: europe-west1 }
  encryption:
    kms: product                      # product (default) | none | a key reference
  principals:                         # logical principal -> identity on this platform
    "group:analysts": "group:analysts@example.com"
    "group:stewards": ["group:data-stewards@example.com"]

encryption.kms accepts product, none, an AWS KMS alias (alias/<name>), an AWS KMS key or alias ARN, or a Google Cloud KMS key name (projects/<p>/locations/<l>/keyRings/<r>/cryptoKeys/<k>). The schema refuses an alias/… or arn:… value on a gcp binding, and a projects/… value on an aws binding. In the 0.7.6 schema's description, product means a customer-managed key created for this product, and none means the platform's default encryption.

principals maps the principals the contract names — in accessPolicy.grants[].principal and exposes[].policy.authz.columnRestrictions[].principal — to identities on this binding's platform, so the base contract stays cloud-neutral and each environment binds it. A value is one identity or a list of them; [] says the principal has no identity on this platform. On a gcp binding each identity must be an IAM member (user:, group:, serviceAccount: or domain:), and on an aws binding an IAM principal ARN; the schema enforces both. The schema's description adds that, when the block is present, every principal the contract names for the expose must be mapped; the reference implementation refuses an unmapped one.

governance.lakeFormation.bucketPolicy (cross-account (default) | none | all-grantees) decides which Lake Formation grantees also get a statement in the S3 bucket policy emitted beside the grants. A bucket-policy statement lets its principal read the objects directly, which bypasses Lake Formation's column, row and cell filters; none emits no bucket policy at all.

An emitted bucket policy is authoritative

The 0.7.6 schema's description of bucketPolicy ends: "An emitted aws_s3_bucket_policy is authoritative: it replaces every other statement on the bucket. When no grantee is left none is emitted." Applying a contract that emits a bucket policy therefore replaces every other statement on that bucket.

Whether one is emitted depends on the value. cross-account, the default, gives a statement only to principals "whose ARN names an AWS account other than the one running the apply, decided at plan time against the caller identity"; same-account grantees get none, "since on a registered location Lake Formation vends them credentials". So a contract that never sets bucketPolicy still has an emitted policy replace every other statement on the bucket as soon as one of its grantees is in another AWS account. all-grantees gives every grantee a statement, same-account included, "which is the output before this field existed and reopens the direct S3 read path". none emits no bucket policy, so nothing is replaced.

A statement (s3:ListBucket and s3:GetBucketLocation on the bucket, s3:GetObject under location.path) "lets its principal read the objects straight from S3, which skips Lake Formation's column, row and cell filters and its revocations": Lake Formation's filters do not apply to that read, and revoking the grant in Lake Formation does not close it.

The schema describes none as "the tightest setting when the location is registered (registerLocation) and every reader, cross-account ones included, queries through a Lake Formation integrated engine, or when the bucket policy is managed elsewhere". Like the other 0.7.6 descriptions of what fluid apply emits, this is a non-normative description of the reference implementation (see the tip above).

exposes[].lifecycle.expire

lifecycle:
  retention: P400D   # ISO-8601 duration
  expire: true       # default false: delete data older than retention

An expose's lifecycle has the same fields as the contract-root lifecycle, plus expire. With expire: false — the default — retention is a declaration only, so a contract that already declares a retention period does not start deleting data. With expire: true, data older than retention is deleted. How a platform expires data is implementation-defined. The reference implementation honours expire on an AWS S3 binding and on a BigQuery table, and refuses it on other GCP bindings rather than ignoring it.

Typed masking parameters

policy:
  privacy:
    masking:
      - { column: phone, strategy: mask, params: { keepLast: 4 } }                    # ********4567
      - { column: email, strategy: hash, params: { saltEnv: FLUID_PII_HASH_SECRET } }
ParamStrategyMeaning
keepFirst, keepLastmaskLeading / trailing characters left unmasked (0–64; defaults 0 and 4).
saltEnvhashName of the environment variable that holds the salt (default FLUID_PII_HASH_SECRET).
keyEnvtokenize, encryptName of the environment variable that holds the key.

params stays open (additionalProperties: true). The typed keys name secrets by environment variable rather than carrying them; the schema's description adds that the reference implementation's runner refuses any other key, including a literal salt or key. The 0.7.6 description of strategy also gives each strategy's output form — for example, hash is the lowercase hex SHA-256 of salt followed by value — and notes that k_anonymity is accepted by the schema but is a property of a whole table, not a per-value transform.

Row filters and masked columns

policy:
  authz:
    readers: ["group:support", "group:analysts-eu"]
    columnRestrictions:
      - principal: "group:support"
        columns: [phone]
        access: mask
        mask: last_four            # last_four | first_four | nullify
    rowFilters:
      - principal: "group:analysts-eu"
        name: eu_only              # optional; a lowercase identifier
        where: "region = 'EU'"

rowFilters[] lets a principal read only the rows its where predicate selects. A reader that no filter names reads every row, and the schema's description allows one filter per principal per expose. where is one SQL boolean expression over the expose's columns, with no statement separator or comment. principal and where are required, and name, the filter's name on the platform, must match ^[a-z][a-z0-9_]{0,62}$. Principals resolve through binding.principals, as for column restrictions.

access: mask lets the principal read the restricted columns masked, never their raw values, by the rule in mask: last_four (XXXXX and the value's last four characters), first_four (its first four characters and XXXXX) or nullify (NULL). The schema requires mask with access: mask and refuses it with any other access. A deny beats a mask, and a mask beats an allow for the principal it names.

binding:
  platform: aws
  format: parquet
  location: { bucket: acme-lake, path: support/contacts/, region: eu-west-1, database: support, table: contacts }
  governance:
    lakeFormation:
      maskedViews:
        definer: "arn:aws:iam::123456789012:role/fluid-view-definer"
        validationConnection: athena-view-validation

Lake Formation cannot mask a column. governance.lakeFormation.maskedViews says where the views that serve masked columns come from: definer, the IAM role the views are defined as, and validationConnection, the Glue connection Glue validates each view's SQL through. Both are required. In the reference implementation, a masked principal's grant on the table excludes the columns, and the principal reads a protected SECURITY DEFINER Glue Data Catalog view, <table>_masked, that returns them masked by the same rule and applies the principal's row filter. On BigQuery it attaches a data policy to the columns' policy tag. Like the other descriptions of what fluid apply emits, this is non-normative.

engine: flink

build:
  pattern: embedded-logic
  engine: flink
  properties:
    language: flink_sql
    sql: |
      INSERT INTO payments_reconciled
      SELECT p.payment_id, p.amount, s.settled_at
      FROM payments AS p JOIN settlements AS s ON p.payment_id = s.payment_id
    parameters:
      parallelism: 4
      upgradeMode: savepoint       # the operator's savepoint | last-state | stateless
      flinkConfiguration:
        execution.checkpointing.interval: 60s

flink names Apache Flink as the build's engine, usually for a long-running Flink SQL job (properties.language: flink_sql). The embedded-logic properties are a closed set, so deployment settings go under properties.parameters; the schema's description recommends the names the Flink Kubernetes Operator's job spec uses (parallelism, upgradeMode) and flinkConfiguration. A 0.7.5 contract cannot declare engine: flink.

For a contract that declares 0.7.6, the reference implementation validates and plans a flink build but ships no runner for it (a 0.7.7 contract can ask it to deploy the job; see 0.7.7): the platform that runs the job, such as the Flink Kubernetes Operator or AWS Managed Service for Apache Flink, executes it. It never runs such a build's SQL on DuckDB or turns it into a warehouse statement, and it treats a build with properties.language: flink_sql the same way on any fluidVersion.

REST catalog credentials: sink.catalogAuth

exposes:
  - exposeId: events
    kind: table
    contract:
      schema:
        - { name: event_id, type: STRING, required: true }
    binding:
      platform: local
      format: iceberg
      location: { catalog: lakekeeper, uri: "http://lakekeeper:8181/catalog", warehouse: analytics, database: default, table: events }
builds:
  - id: ingest
    pattern: acquisition
    engine: kafka-connect
    outputs: [events]
    properties:
      source: { kind: postgres, mode: incremental_append }
      sink:
        format: iceberg
        catalog: lakekeeper
        catalogAuth:
          type: oauth2
          credentialEnv: LAKEKEEPER_CLIENT   # a variable holding client_id:client_secret
          oauth2ServerUri: https://keycloak.example.com/realms/lake/protocol/openid-connect/token
          scope: lakekeeper

catalogAuth says how the sink authenticates to an Iceberg REST catalog. It names environment variables and never holds a secret.

typeRequiresRefuses
oauth2 (client credentials)credentialEnv, oauth2ServerUri, scope; audience and resource are optionaltokenEnv
bearer (a static token)tokenEnvcredentialEnv, oauth2ServerUri, scope, audience, resource
  • credentialEnv and tokenEnv must be environment variable names. The schema refuses one shaped like a token: a run of 20 or more letters and digits, with a digit, between underscores.
  • oauth2ServerUri must be an http:// or https:// URL with no user:password@ part. It, scope, audience and resource may not hold a ${...} expression or a control character, or start with env:.

The reference implementation writes each named variable into the sink config it derives as env:<NAME>, which Apache Iceberg's REST client resolves from the environment of the process that runs the sink. It refuses catalogAuth on a catalog it does not reach over REST, and next to a hand-written override of the same settings. It also refuses an Iceberg sink unless an expose the build writes is bound with format: iceberg, as events is above; the catalog's address is on that binding.

Column restrictions: semantics written down

exposes[].policy.authz.columnRestrictions exists in 0.7.5 with the one-line description "Column-level access control". The 0.7.6 description defines it:

  • A column named in any restriction is restricted.
  • access: deny — the principal may not read the columns. access: allow — the columns are readable only by the principals an allow names.
  • A deny beats an allow, and a restriction never grants access: the readers are still the expose's readers.
  • access: mask (added in 0.7.6) — the principal reads the columns masked by the rule in mask (above). A deny beats a mask, and a mask beats an allow for the principal it names.
  • Principals are logical, resolved per platform through binding.principals.

trigger.type: continuous

build:
  pattern: embedded-logic
  engine: flink
  properties:
    language: flink_sql
    sql: |
      INSERT INTO payments_reconciled
      SELECT * FROM payments
  execution:
    trigger:
      type: continuous

continuous is for a build that runs as a long-lived job on its own platform: a Flink job on the Flink Kubernetes Operator or AWS Managed Service for Apache Flink, or a kafka-connect or debezium connector. The platform keeps the job running, so nothing starts runs of it. The reference implementation's fluid generate schedule, fluid schedule-sync and the DAGs fluid apply writes leave such a build out (non-normative).

What the schema pins is that a continuous trigger takes no other trigger. cron, schedule, datasets, event and timetable are each refused next to type: continuous, as Databricks Jobs refuses a continuous trigger next to any other; a trigger that names several of them gets one error for each. condition, datasetsOperator and timezone are not triggers, and stay accepted. A trigger of any other type, and a trigger with no type, keeps accepting every member it accepted before. A 0.7.5 contract cannot declare continuous: the 0.7.5 enum for trigger.type does not contain it.


Fields the Bitol exporters wanted

Each of these is optional. A contract that sets none of them validates, and exports, exactly as it did before. The names follow Bitol's (ODCS v3.1.0, ODPS v1.1.0) wherever Bitol has one, so an imported value round-trips without a translation.

description:                       # a plain string still works; the object is new
  purpose: Customer profiles for analytics.
  usage: Join on customer_id.
  limitations: Not for marketing use.
metadata:
  owner: { team: customer-analytics }
  team:                            # a roster; metadata.owner stays the one contact
    name: Customer Analytics
    members:
      - username: mjones           # the only required member field
        name: Mia Jones
        role: data owner
        email: mia.jones@example.com
consumes:
  - productId: raw_customers
    exposeId: raw_customers_table
    versionConstraint: "^2.0.0"
    contractId: urn:acme:contracts:raw-customers   # the upstream's own contract id
    contractVersion: 2.1.0                         # the exact version this product was built against
  • metadata.team is {name, members[]}, a roster rather than the single contact metadata.owner holds. Every member is a teamMember: username is required, and name, role and email are optional. role is free text. The object is closed.
  • The root description is a string, as before, or {purpose, usage, limitations}. The string form is exported as purpose. The object is closed.
  • consumes[].contractId is the upstream's own contract id, for an upstream that has one of its own. consumes[].contractVersion is a semantic version, the exact one this product was built and tested against. The schema does not check that it falls inside versionConstraint; fluid validate does not either.
exposes:
  - exposeId: customer_events
    kind: table
    binding:
      platform: kafka
      format: kafka_topic
      location:
        topic: customer-events
        host: kafka.internal:9092      # bootstrap servers
      serialization:
        value: avro-confluent          # json | avro | protobuf | xml | avro-confluent | json-confluent
        key: json
    contract:
      id: urn:acme:contracts:customer-events   # used as the ODCS id, instead of a derived one
      schema:
        - name: customer_id
          type: string
          required: true
          quality:                     # ODCS-shaped rules; setting it replaces the derived ones
            - id: customer_id-nullValues
              type: library
              metric: nullValues
              dimension: completeness
              severity: error
  • binding.location.host is a host or endpoint; for a Kafka binding, the bootstrap servers. It is usually set per environment, in an overlay.
  • binding.serialization says how Kafka message values, and optionally keys, are serialized. A Kafka binding otherwise declares only format: kafka_topic. The -confluent values name the same wire formats carried through a Confluent schema registry.
  • exposes[].contract.id is an explicit, stable contract id: at least one character. Without it the reference implementation derives <product id>.<exposeId>, so renaming the product or the expose changes it. Two exposes may not share one; the schema cannot express that, and fluid validate refuses it.
  • A column's quality is a list of rules in ODCS's own shape: id (letters, digits, _ and -), type (text, library, sql or custom), metric (one of ODCS's five library metrics), arguments, query, engine, implementation, dimension, description, severity and unit. Each rule needs at least one member, and the item is open, so other ODCS keys pass through. Before 0.7.6 the column was closed and did not define quality, so a rule the ODCS exporter would have replayed made the contract invalid.

Two complete contracts

Both validate against the 0.7.6 JSON Schema (Draft 2020-12) and with the reference implementation, data-product-forge 0.27.0 (fluid validate prints ✅ Valid FLUID contract (schema v0.7.6)).

BigQuery: column restriction, mapped principals, a product-owned key, expiring partitions, a percentile measure, packaging and a consumer.

fluidVersion: "0.7.6"
kind: DataProduct
id: sales.gold.orders
name: Orders
metadata:
  owner: { team: sales-analytics, email: sales-analytics@example.com }
accessPolicy:
  grants:
    - principal: "group:analysts"
      permissions: [read]
    - principal: "group:stewards"
      permissions: [read]
exposes:
  - exposeId: orders
    kind: table
    contract:
      schema:
        - { name: order_id,       type: STRING,  required: true }
        - { name: order_date,     type: DATE,    required: true }
        - { name: customer_email, type: STRING }
        - { name: amount,         type: NUMERIC }
    policy:
      authz:
        columnRestrictions:
          - principal: "group:analysts"
            columns: [customer_email]
            access: deny
    semantics:
      measures:
        - name: p95_amount
          agg: percentile
          expr: amount
          aggParams: { percentile: 0.95 }
    lifecycle:
      retention: P400D
      expire: true
    binding:
      platform: gcp
      format: bigquery_table
      location: { project: acme-analytics, dataset: sales, table: orders, region: europe-west1 }
      encryption: { kms: product }
      principals:
        "group:analysts": "group:analysts@example.com"
        "group:stewards": "group:data-stewards@example.com"
packaging:
  mode: isolated
consumers:
  - name: weekly_revenue_dashboard
    label: Weekly Revenue Dashboard
    type: dashboard
    maturity: high
    owner: { team: finance-analytics }
    exposeIds: [orders]

S3 + Lake Formation: a cross-mesh upstream pin, masking parameters, an existing key, a shared bucket and no bucket policy.

fluidVersion: "0.7.6"
kind: DataProduct
id: sales.silver.customers
name: Customers
metadata:
  owner: { team: sales-data }
consumes:
  - productId: crm.bronze.accounts
    exposeId: accounts
    upstreamWorkspace: crm-mesh
    upstreamDigest: "sha256:4f1c9a0d6e2b7c8a1f3e5d9b0c2a4e6f8d1b3c5e7a9f0b2d4c6e8a1b3d5f7091"
exposes:
  - exposeId: customers
    kind: table
    contract:
      schema:
        - { name: customer_id, type: STRING, required: true }
        - { name: phone,       type: STRING }
        - { name: email,       type: STRING }
    policy:
      privacy:
        masking:
          - { column: phone, strategy: mask, params: { keepLast: 4 } }
          - { column: email, strategy: hash, params: { saltEnv: FLUID_PII_HASH_SECRET } }
    binding:
      platform: aws
      format: parquet
      location: { bucket: acme-lake, path: sales/customers/, region: eu-west-1, database: sales, table: customers }
      encryption: { kms: "alias/acme-lake" }
      packaging: { mode: shared, pool: lake-pool-eu, containers: { bucket: shared } }
      governance:
        lakeFormation:
          registerLocation: true
          bucketPolicy: none
          grants:
            - principal: "arn:aws:iam::123456789012:role/analyst"
              permissions: [SELECT]

The example sets bucketPolicy: none on purpose. Its bucket is shared, so by the packaging section above it already exists and belongs to the platform, and the product writes into it without owning it; the location is registered (registerLocation: true), so Lake Formation governs the analyst grant. An emitted bucket policy would replace every other statement on that bucket and would give a grantee a path to the objects that skips Lake Formation's filters (see the box above). With the default, cross-account, a grantee in another AWS account would get exactly such a statement. none is the value for a registered location whose readers query through a Lake Formation integrated engine, or whose bucket policy is managed elsewhere.

Remove upstreamDigest from the second contract and it becomes invalid: 'upstreamDigest' is a dependency of 'upstreamWorkspace' (keyword dependentRequired, at /consumes/0).


References

  • Schema Versions — status of every version, and how to choose fluidVersion.
  • Changelog: 0.7.5 → 0.7.6.
  • Reference implementation: the governance parity notes describe what data-product-forge emits and verifies for retention, encryption, column restrictions and principals on AWS and GCP.
Edit this page on GitHub
Last Updated: 11/4/26, 12:01 PM
Contributors: fas89
Prev
FLUID 0.7.7 (preview) — Recursive Streaming Types
Next
What's New in FLUID 0.7.5 — Streaming Kafka → Iceberg Sink & Confluent Tableflow