Skip to content

Skip the installer's database set-up screen by pre-generating the database settings and hash salt#210

Merged
phenaproxima merged 3 commits into
mainfrom
hash-salt
Feb 18, 2026
Merged

Skip the installer's database set-up screen by pre-generating the database settings and hash salt#210
phenaproxima merged 3 commits into
mainfrom
hash-salt

Conversation

@phenaproxima

@phenaproxima phenaproxima commented Feb 18, 2026

Copy link
Copy Markdown
Collaborator

Description

The installer looks for three things in settings.php to consider the database settings ready, and Drupal ready to be installed: the hash salt, $databases, and the config sync directory.

We can set up all of these things in settings.local.php, allowing the installer to skip database setup. The hash salt can be uniquely generated at install time by Node's crypto.randomBytes, much the way Drupal itself works.

This will mean that the database is not portable, but that's frankly already the case. The launcher is betting on the future state of being able to move a Drupal site from one host to another by archiving composer.json/lock, config, and content, not syncing databases.

AI Disclosure

Wrote all of this myself!

@phenaproxima phenaproxima merged commit c5c5558 into main Feb 18, 2026
@phenaproxima phenaproxima deleted the hash-salt branch February 18, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant