diff --git a/.forgejo/tests/web-deploy.test.mjs b/.forgejo/tests/web-deploy.test.mjs index 2874e598..472e930c 100644 --- a/.forgejo/tests/web-deploy.test.mjs +++ b/.forgejo/tests/web-deploy.test.mjs @@ -44,3 +44,11 @@ test('publication comparison, artifact upload and deployment require canonical m if (name !== 'Trigger deployment after successful CI') assert.doesNotMatch(body, /DUNEREALMS_DEPLOY_KEY|ssh .*dunedeploy@/); } }); + + +test('deployment uses the verified dedicated host and its pinned SSH key', () => { + const deploy = step('Trigger deployment after successful CI'); + assert.ok(deploy.includes('95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg')); + assert.ok(deploy.includes('dunedeploy@95.216.100.187')); + assert.ok(!deploy.includes('91.107.196.242')); +}); diff --git a/.forgejo/workflows/web-deploy.yml b/.forgejo/workflows/web-deploy.yml index cd75e390..ea4a8b42 100644 --- a/.forgejo/workflows/web-deploy.yml +++ b/.forgejo/workflows/web-deploy.yml @@ -87,7 +87,7 @@ jobs: printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key trap 'rm -f ~/.ssh/deploy_key' EXIT - printf '%s\n' '91.107.196.242 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8x/XocsIz41fWHGty0DbZhSvafSQFt9jaHHgzdr55W root@ubuntu-4gb-fsn1-1' >> ~/.ssh/known_hosts - ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@91.107.196.242 "$GITHUB_SHA" + printf '%s\n' '95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg' >> ~/.ssh/known_hosts + ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@95.216.100.187 "$GITHUB_SHA" rm -f ~/.ssh/deploy_key diff --git a/website/.env.example b/website/.env.example index ba192071..8eaaa4ff 100644 --- a/website/.env.example +++ b/website/.env.example @@ -18,3 +18,6 @@ EXCHANGE_READ_TOKEN= # Optional private read-only PostgreSQL role for CP inventory/sales. # Never use the game writer role or publish this URL to browser code. DUNE_INVENTORY_DATABASE_URL= + +# Enable only after the paired native Guild travel release is installed. +GUILD_OPEN_TRAVEL=false diff --git a/website/control-panel/clan-cp-shell.mjs b/website/control-panel/clan-cp-shell.mjs index 4ed2e6a1..4af07a16 100644 --- a/website/control-panel/clan-cp-shell.mjs +++ b/website/control-panel/clan-cp-shell.mjs @@ -1 +1 @@ -export function clanCPDocument(source){return source.replace('