Skip to content

v1.4.12

Latest

Choose a tag to compare

@jghoman jghoman released this 17 Nov 23:17
· 52 commits to main since this release
7f52423

Server release: org-marked namespace containment, configured namespaces for relayed readers, and the warn-mode catalog listing fix.

  • Migrations: one small one, V37. It adds the nullable column hog_namespace.contained_org and a CHECK constraint on it, with a 5 s lock_timeout. hog_namespace has one row per namespace, so this is quick.
  • Upgrading: no config change needed. The new features stay off until configured, and nothing changes for existing namespaces.

Server

  • Org-marked namespace containment (#640).
    • A containment mark can carry an org, which must be a canonical lowercase UUID:
      {"field": "team_id", "value": 9400, "org": "<org uuid>"}
      The namespace then owns <data_path>/org_id=<org>/team_id=9400/ instead of <data_path>/data/<namespace>/.
    • Containment: the namespace's tables register files only under that prefix, and no other table in the catalog registers there. Table-creation write paths, scoped upload claims and compaction outputs all follow the prefix.
    • Org check for scoped callers: a scoped token whose org doesn't match the mark gets the same 404 as for a missing namespace. This applies at the namespace gate, on writes and upload claims, in the listing, and on every store grant. Tenant and operator callers are unchanged.
    • Changing a mark: a mark can be changed or cleared until the namespace holds anything; after that it is permanent.
    • Backends: PostgreSQL only. hoglite refuses an org mark with a 422.
    • Capability: org-marked-containment-v1.
  • Configured namespaces for relayed readers (#641).
    • A Host serves every team's team_<id> import namespace from one source catalog, by pattern, read-only. Nothing is configured per team.
    • Configured through HOGLAKE_SERVED_NAMESPACES_FILE (a team family, with predicate_field: team_id).
    • A scoped caller is served when all of these hold:
      • its token reads the catalog;
      • it holds the schema, through a remote_schemas family entry such as {"team": ["read"]} or a per-name entry;
      • its prd.team_id holds the id, or *;
      • its org equals the namespace's mark.
    • Everyone else gets the 404 of a missing namespace.
  • Catalog listing under warn (#647).
    • An anonymous GET /v1/catalogs under HOGLAKE_AUTH_MODE=warn now lists the default PostgreSQL backend's catalogs, as it does under off. It returned [] before, which left the web UI empty.
    • The per-catalog totals are omitted for the anonymous caller, as /v1/info omits instance totals.
    • Each request is still counted once as a warn refusal.

Docs / CI

  • AGENT.md describes Gigahog CD as Kargo rather than charts state files (#644).
  • The codec wheel jobs are named so that a skipped check reads cleanly (#646).

Operators

  • V37: transactional, 5 s lock timeout, metadata-only column add.
  • HOGLAKE_SERVED_NAMESPACES_FILE: new and optional.
  • Under warn: an unauthenticated caller can now list the default backend's catalog names. Everything else was already readable by name.