Page MenuHomePhabricator

Reserve domain names used on wbstack.com
Closed, ResolvedPublic

Description

In order to avoid collisions with names of wikis (likely) to be migrated from wbstack.com, names of those wikis are to be reserved on wikibase.cloud.

Prerequisites:

  • domain names reserved for wikis on wbstack.com shared with WMDE

Notes:

Event Timeline

WMDE-leszek renamed this task from selected accounts readonly wbstack.com to Reserve domain names used on wbstack.com.Apr 20 2022, 6:48 PM
WMDE-leszek triaged this task as High priority.
WMDE-leszek removed a project: Story.
WMDE-leszek updated the task description. (Show Details)

Some simple hack for doing this once the data arrives:

kubectl cp ~/reserveddomains.txt api-app-web-<podspecificid>:/var/www/html/
kubectl exec -it deployment/api-app-web -- /bin/bash
php artisan tinker
$file = fopen(__DIR__ . '/reserveddomains.txt', 'r');
while (($line = fgets($file)) !== false) {                                                                                          
        WikiDomain::Create([ 'domain' => $line]);                                                                                       
    };

Looks like the list comes complete with opencura domains rather than our style. Transformation with:

sed 's/\.wiki\.opencura\.com$/\.wikibase\.cloud/' ~/reserveddomains.txt

Whoops, should have had a trim. Successfully made the domains all terminating in \n... Now cleaned up

This can be verified by trying to make one of the reserved names and finding that it's rejected