{"id":51436471,"url":"https://github.com/mennotech/drx-apiserver","last_synced_at":"2026-07-05T07:02:06.824Z","repository":{"id":356359450,"uuid":"1232070342","full_name":"mennotech/drx-apiserver","owner":"mennotech","description":"Reusable, production-oriented Drupal 10 base image (drx-drupal-base) for projects that use Drupal as the data, auth, and security backend behind a decoupled frontend — plus a reference application overlay (server/) that shows how to consume it.","archived":false,"fork":false,"pushed_at":"2026-05-27T05:23:33.000Z","size":172,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-27T05:27:22.004Z","etag":null,"topics":["docker-image","drupal","drupal-10"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mennotech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-07T15:00:43.000Z","updated_at":"2026-05-27T04:52:52.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mennotech/drx-apiserver","commit_stats":null,"previous_names":["mennotech/drx-apiserver"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mennotech/drx-apiserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mennotech%2Fdrx-apiserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mennotech%2Fdrx-apiserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mennotech%2Fdrx-apiserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mennotech%2Fdrx-apiserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mennotech","download_url":"https://codeload.github.com/mennotech/drx-apiserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mennotech%2Fdrx-apiserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35145900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","drupal","drupal-10"],"created_at":"2026-07-05T07:02:05.084Z","updated_at":"2026-07-05T07:02:06.487Z","avatar_url":"https://github.com/mennotech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drx-apiserver\n\nReusable, production-oriented Drupal 10 base image (`drx-apiserver`) for\nprojects that use Drupal as the data, auth, and security backend behind a\ndecoupled frontend — plus a reference application overlay (`server/`) that\nshows how to consume it.\n\nThe base image is published to the GitHub Container Registry (GHCR) at:\n\n```\nghcr.io/mennotech/drx-apiserver\n```\n\n| Document                              | Audience                                |\n| ------------------------------------- | --------------------------------------- |\n| [base/README.md](base/README.md)      | Image consumers — runtime contract, env vars, hooks, security posture. |\n| [base/CHANGELOG.md](base/CHANGELOG.md)| Image consumers — runtime contract release notes (Keep a Changelog). |\n| [RELEASES.md](RELEASES.md)            | Operators — published versions, tag policy, cadence, upgrade guidance. |\n| [SUPPORT.md](SUPPORT.md)              | Operators — supported image lines and continuous vulnerability monitoring scope. |\n| [CHANGELOG.md](CHANGELOG.md)          | Contributors — repository-level changes (CI, docs, tooling). |\n\n---\n\n## Repository layout\n\n```\nbase/      Reusable drx-apiserver base image (published to GHCR).\nserver/    Reference downstream overlay (not published).\n.github/   CI/CD workflows (build, scan, multi-arch publish, SBOM, provenance).\nMakefile   Local build, smoke, and compose orchestration.\n```\n\nThe base image is **deliberately neutral**: no project-specific modules,\nbranding, config payload, or platform-specific deployment behaviour is\nbaked in. Downstream projects extend it through documented extension\npoints described in [base/README.md](base/README.md).\n\n---\n\n## Quick start (consumers)\n\nPin to an immutable tag in production:\n\n```dockerfile\nARG BASE_IMAGE=ghcr.io/mennotech/drx-apiserver:0.1.0\nFROM ${BASE_IMAGE}\n\n# Custom modules, config sync payload, lifecycle hooks.\nCOPY --chown=www-data:www-data modules/ /var/www/html/web/modules/custom/\nCOPY --chown=www-data:www-data config/  /var/www/html/config/\nCOPY --chmod=0755 hooks/                /etc/drx/hooks/\n```\n\nRun the published image directly:\n\n```bash\ndocker run --rm -p 8088:80 \\\n  -e DRUPAL_ADMIN_PASS=change-me \\\n  ghcr.io/mennotech/drx-apiserver:0.1.0\n```\n\nFull runtime environment contract (env vars, filesystem layout, hook\nphases, healthcheck, security posture) is documented in\n[base/README.md](base/README.md).\n\n---\n\n## Quick start (local development)\n\nLocal orchestration is via [Makefile](Makefile):\n\n| Target       | Purpose                                                 |\n| ------------ | ------------------------------------------------------- |\n| `make base`  | Build `drx-apiserver:dev` locally from [base/](base/). |\n| `make app`   | Build the reference overlay from [server/](server/).   |\n| `make build` | Alias of `make app`.                                    |\n| `make up`    | Bring up the reference app via Docker Compose (no rebuild). |\n| `make up-build` | Rebuild the reference app, then bring it up.        |\n| `make down`  | Stop the reference app.                                 |\n| `make up-base` | Run only the base image (no reference overlay).      |\n| `make down-base` | Stop the base-only container started by `make up-base`. |\n| `make smoke` | Boot the base image and wait for healthcheck `healthy`. |\n| `make clean` | Remove build artifacts and local image tags.            |\n\nOverride `VERSION`, `BASE_IMAGE`, `APP_IMAGE`, or `SMOKE_PORT` on the\ncommand line if needed, e.g. `make base VERSION=0.2.0-dev`.\n\nThe Makefile is engine-agnostic: set `CONTAINER_ENGINE=podman` (and,\noptionally, `COMPOSE=\"podman compose\"`) to drive every target through\nPodman. `make scan` does not need a container API socket — it exports\nthe image with `$(CONTAINER_ENGINE) save` into a host tempdir and feeds\nit to Trivy via `--input`, so `make verify CONTAINER_ENGINE=podman`\nworks the same on Docker, macOS/Windows `podman machine`, and rootless\nor rootful Linux Podman. CI still runs the Docker path.\n\nCompose orchestration is intentionally rooted in [Makefile](Makefile):\nthe compose definition lives in [server/docker-compose.yml](server/docker-compose.yml),\nand supported local workflows run via `make` from the repository root.\n\nThe reference app expects `DRUPAL_ADMIN_PASS` to be set (in `.env` or the\nshell). See [server/docker-compose.yml](server/docker-compose.yml) for the full set of\noverridable variables.\n\n---\n\n## Release model\n\n- **Cadence**: scheduled monthly patch release on the **first Tuesday** of\n  each month, plus **ad hoc emergency security releases** when a relevant\n  CVE is disclosed in Drupal core, PHP, Apache, or the upstream PHP base\n  image. See [RELEASES.md](RELEASES.md) for the full policy.\n- **Versioning**: Semantic Versioning applied to the **runtime contract**\n  (env vars, hook lifecycle, on-disk layout, supported DB drivers,\n  default behaviours), not internal implementation details.\n- **Tags published** (per [.github/workflows/base-image.yml](.github/workflows/base-image.yml)):\n  - Stable release `vX.Y.Z` \u0026rarr; `X.Y.Z`, `X.Y`, `X`, `latest`\n  - Release candidate `vX.Y.Z-rcN` \u0026rarr; `X.Y.Z-rcN` only\n  - Push to `main` \u0026rarr; no published image tags (CI/smoke only)\n- **Supply chain**: every published tag includes an SBOM and SLSA build\n  provenance attestation. Images are scanned with Trivy\n  (`CRITICAL`, `HIGH`, fail-on-fixed) before publish.\n- **Ongoing monitoring**: a daily workflow scans the currently supported\n  image lines (current + previous minor) and publishes SARIF alerts plus\n  downloadable JSON/SARIF artifacts. See [SUPPORT.md](SUPPORT.md).\n\n---\n\n## Security\n\n- **Reporting**: report suspected vulnerabilities privately via\n  [GitHub Security Advisories](https://github.com/mennotech/drx-apiserver/security/advisories/new).\n  Do not file public issues for embargoed CVEs.\n- **Disclosure model**: maintainers acknowledge reports, coordinate a fix\n  in a private advisory, ship an emergency security release, and then\n  publish the advisory. See [RELEASES.md](RELEASES.md#emergency-security-releases).\n- **Posture**: Apache and PHP run as `www-data`; JSON:API defaults to\n  read-only; sensitive files written `0440 www-data:www-data`; HTTP\n  `Server` and `WWW-Authenticate` headers are suppressed. Full details in\n  [base/README.md](base/README.md#security-posture).\n\n---\n\n## Contributing\n\n1. Branch from `main`.\n2. Keep base-image runtime-contract changes documented in\n   [base/CHANGELOG.md](base/CHANGELOG.md) under `[Unreleased]`.\n3. Keep repository-level changes (CI, docs, tooling, Makefile) documented\n   in [CHANGELOG.md](CHANGELOG.md) under `[Unreleased]`.\n4. CI must pass: smoke boot, Trivy scan, multi-arch build.\n5. For release procedure, see [RELEASES.md#release-procedure](RELEASES.md#release-procedure).\n\n---\n\n## License\n\n- Repository sources: MIT (see [LICENSE](LICENSE)).\n- Published `drx-apiserver` image: contains Drupal core and is therefore\n  distributed under **GPL-2.0-or-later** as reflected in the image's\n  `org.opencontainers.image.licenses` label. Derived/extended images are\n  likewise GPL-2.0-or-later.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmennotech%2Fdrx-apiserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmennotech%2Fdrx-apiserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmennotech%2Fdrx-apiserver/lists"}