Skip to content

[1] Add a private Drupal database image workflow example - #4

Merged
ivangrynenko merged 5 commits into
mainfrom
feature/1-drupal-db-image-example
Nov 8, 2026
Merged

ivangrynenko merged 5 commits into
mainfrom
feature/1-drupal-db-image-example

Conversation

@ivangrynenko

@ivangrynenko ivangrynenko commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #1

Summary

Add a copyable workflow for private Drupal database images, with SSH, Platform.sh, Upsun and Quant Cloud export paths. Hosting API tokens and SSH credentials come from GitHub Actions secrets; Quant creates and downloads the exact new backup. The GHCR package must already be private and is scoped to the application repository.

Include a baseline Drupal sanitiser and a verifier that restores the output to a separate isolated database. Site-specific sanitisation and verification hooks deliberately fail until implemented and reviewed. Database and hook output are suppressed to avoid exposing SQL data in workflow logs. The original export stays out of the image build context.

The example documents hosting settings, secrets, registry and consumer setup, and the limits of the baseline. It includes an exact-ID Quant Cloud CLI download helper for already-authenticated local use; GitHub automation uses the provider action with a secret API key. Exporters refuse existing destinations and use restrictive file permissions. The repository test workflow and example use major version tags for checkout.

Validation

  • ShellCheck and actionlint passed; 53 existing Bats tests and 7 focused database-image tests passed, including isolated MariaDB tests with synthetic data and mocked provider exports.
  • Independent security review verified fixes for sensitive SQL leaking into logs and permissive existing export destinations.
  • No live hosting credentials or private registry were used. Provider connectivity, site-specific sanitisation and data handling must be tested and reviewed by each adopting project.

@ivangrynenko
ivangrynenko merged commit fd4e2a4 into main Nov 8, 2026
2 checks passed
@ivangrynenko
ivangrynenko deleted the feature/1-drupal-db-image-example branch November 8, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a secure Drupal database image workflow example

1 participant