S-18b · Objecten API up in compose, wired to Objecttypen (closes #140) #143

Merged
not merged 3 commits from feat/140-objecten-up into main 2026-07-27 09:53:02 +00:00
Contributor

What & why

S-18b, second of the S-18 (#19) split (after S-18a #139/#142). Stands up the upstream Maykin Objecten API in the compose stack and wires it to the Objecttypen API — the authoritative object store the ACL will write register records to (S-19).

Closes #140

What

  • Compose (main + local): objecten-db (PostGIS — objects carry geometry), objecten-redis, objecten-init (RUN_SETUP_CONFIG → migrate + provision token + register the Objecttypen service), objecten web (health on /admin/, host :8021). Verbatim upstream image maykinmedia/objects-api pinned to 3.4.0 (nearest release to objecttypes-api 3.4.2; the two speak over the stable Objecttypes API v2).
  • Seed: infra/seed-config.sh objecten streams infra/objecten/setup_configuration/data.yaml into the external rr-objecten-config volume — same pattern as S-18a. The data.yaml (1) registers Objecttypen as a trusted zgw_consumers service (api_type: orc, api-key auth with the S-18a dev token) so an object can reference its objecttype, and (2) provisions a dev static API token so peers (the ACL, S-19) can write objects.
  • Wiring: added to WAIT_SVCS, CFG_VOLS, the SEED invocations, seed-config.sh, and the CI log-dump. objecten-init waits on objecttypen being healthy so the service registration is meaningful end to end.
  • Smoke: verify-objecten (infra/run-objecten-check.sh + objecten-check.py) asserts unauth → 401, token → 200 on /api/v2/objects; added as a verify-stack step + a row in the #136 check-summary table.

Verified locally (end to end, real compose)

Seeded + brought up the real infra/docker-compose.yml objecten chain (pulls in objecttypen via depends_on): objecten-init ran setup_configuration — token_configuration_success and "Successfully executed step: Configuration to connect with external services" — the web reached healthy, and make verify-objecten"OK — no-auth 401, token 200". Confirmed the registered service via the Objecten django shell:

objecttypen | orc | http://objecttypen:8000/api/v2/ | api_key

YAML (both compose files + ci.yaml) + shell + python all validated; docker compose config clean on both files.

Definition of Done

  • Failing smoke committed first (test(infra): …, "no running objecten container"); implementation makes it pass.
  • Conventional Commits referencing #140.
  • CI green (verify-stack objecten step).
  • docker compose up reaches health (objecten healthy on first poll locally).
  • Demo note in docs/demo-script.md.
  • Closed by the merging PR (closes #140).

No new ADR: follows the established verbatim-image + seed-config CG-module pattern (S-18a/ADR-0023-era).

🤖 Generated with Claude Code

## What & why S-18b, second of the S-18 (#19) split (after S-18a #139/#142). Stands up the upstream Maykin **Objecten API** in the compose stack and wires it to the Objecttypen API — the authoritative object store the ACL will write register records to (S-19). Closes #140 ### What - **Compose** (main + local): `objecten-db` (**PostGIS** — objects carry geometry), `objecten-redis`, `objecten-init` (RUN_SETUP_CONFIG → migrate + provision token + register the Objecttypen service), `objecten` web (health on `/admin/`, host `:8021`). Verbatim upstream image `maykinmedia/objects-api` pinned to `3.4.0` (nearest release to objecttypes-api `3.4.2`; the two speak over the stable Objecttypes API v2). - **Seed**: `infra/seed-config.sh objecten` streams `infra/objecten/setup_configuration/data.yaml` into the external `rr-objecten-config` volume — same pattern as S-18a. The data.yaml (1) registers **Objecttypen** as a trusted `zgw_consumers` service (`api_type: orc`, api-key auth with the S-18a dev token) so an object can reference its objecttype, and (2) provisions a dev **static API token** so peers (the ACL, S-19) can write objects. - **Wiring**: added to `WAIT_SVCS`, `CFG_VOLS`, the `SEED` invocations, `seed-config.sh`, and the CI log-dump. `objecten-init` waits on `objecttypen` being healthy so the service registration is meaningful end to end. - **Smoke**: `verify-objecten` (`infra/run-objecten-check.sh` + `objecten-check.py`) asserts unauth → 401, token → 200 on `/api/v2/objects`; added as a verify-stack step + a row in the #136 check-summary table. ## Verified locally (end to end, real compose) Seeded + brought up the real `infra/docker-compose.yml` objecten chain (pulls in objecttypen via `depends_on`): `objecten-init` ran setup_configuration — `token_configuration_success` **and** "Successfully executed step: Configuration to connect with external services" — the web reached healthy, and `make verify-objecten` → **"OK — no-auth 401, token 200"**. Confirmed the registered service via the Objecten django shell: ``` objecttypen | orc | http://objecttypen:8000/api/v2/ | api_key ``` YAML (both compose files + ci.yaml) + shell + python all validated; `docker compose config` clean on both files. ## Definition of Done - [x] Failing smoke committed first (`test(infra): …`, "no running objecten container"); implementation makes it pass. - [x] Conventional Commits referencing #140. - [ ] CI green (verify-stack objecten step). - [x] `docker compose up` reaches health (objecten healthy on first poll locally). - [x] Demo note in `docs/demo-script.md`. - [x] Closed by the merging PR (`closes #140`). No new ADR: follows the established verbatim-image + seed-config CG-module pattern (S-18a/ADR-0023-era). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
not added 3 commits 2026-07-27 09:02:52 +00:00
Fails against the current stack (no objecten service yet) with a clear
"no running objecten container" message. Green comes with the compose
service + seeded setup_configuration in the next commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Stands up the upstream Maykin Objecten API in the stack — own PostGIS DB
+ redis, an -init that runs setup_configuration from the external config
volume (migrate + provision a static token + register the Objecttypen API
as a trusted service), and a health-checked web on host :8021. Objecten's
setup_configuration registers Objecttypen (api_type orc, api_key auth with
the S-18a dev token) so an object can reference its objecttype.

Same verbatim-image + seed-config pattern as S-18a. Wired into WAIT_SVCS,
CFG_VOLS, the SEED invocations, seed-config.sh, and the CI log-dump. Pinned
objects-api 3.4.0 (nearest release to objecttypes-api 3.4.2).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
docs: S-18b demo note + backlog — Objecten API up, wired to Objecttypen (refs #140)
CI / lint (pull_request) Successful in 1m37s
CI / build (pull_request) Successful in 7m45s
CI / unit (pull_request) Successful in 1m32s
CI / frontend (pull_request) Successful in 3m22s
CI / mutation (pull_request) Successful in 6m39s
CI / verify-stack (pull_request) Successful in 9m12s
1113e1ebed
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
not added the type:slicearea:infra labels 2026-07-27 09:03:17 +00:00
not merged commit 0a97fa4bf7 into main 2026-07-27 09:53:02 +00:00
Sign in to join this conversation.