171 lines
10 KiB
Markdown
171 lines
10 KiB
Markdown
# PlotDirector Production deployment — 25 November 2026
|
||
|
||
**COMPLETE: https://plotdirector.com/ is live on web1 over valid HTTPS.**
|
||
Public availability is not waiting for DNS or another deployment phase. Owner
|
||
manual authenticated and physical Word/Windows Companion acceptance remains.
|
||
Chargeable processing, outbound application traffic and queued email remain held
|
||
pending separate owner authorisation.
|
||
|
||
## Active installation
|
||
|
||
- Host web1, `85.190.124.132`; SQL PlotLine at IPv4 loopback 1433, unchanged.
|
||
- Release `plotdirector-production-190c074d-20261125`, application `1.0.0`, source
|
||
`190c074d5202fdf8a94b3b7a70c94857f848aafd`.
|
||
- Qualified DLL SHA-256:
|
||
`70c516e0a112c4e61813e563405c979ad35069539ddc440bddbd6dac0a4379d1`.
|
||
- Package SHA-256:
|
||
`0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9`.
|
||
- Manifest SHA-256:
|
||
`58bac17161e1ea280617c15fba61ef26ac976417217fbb77accbb5ab4ababe13`.
|
||
- `/srv/plotdirector/current` points to
|
||
`/srv/plotdirector/releases/plotdirector-production-190c074d-20261125/app`.
|
||
- `plotdirector.service` is enabled and active, PID 23355 at acceptance, runtime
|
||
identity plotdirector, Kestrel only `127.0.0.1:5001`.
|
||
- Successful deployment `20261125T160148Z-c2e69a3902f2`; one successful Deploy record
|
||
in ApplicationReleaseHistory, recorded after application/database health passed.
|
||
- The exact existing signed package was transferred through restricted SSH. The
|
||
installed public trust anchor matches the retained Atlas signing authority and
|
||
Phase 1 fingerprint. No application or SQL script was rebuilt or modified.
|
||
|
||
## Database and recovery
|
||
|
||
Live starting schema and all original fingerprints matched Phase 1 before migration.
|
||
The exact ordered manifest produced 320 history entries: **210 Baselined and 110
|
||
Executed**, with five explicit omissions. Historical timestamps were not invented.
|
||
Migrations ran from 15:58:20 to 15:58:34 UTC (14 seconds wall clock; summed individual
|
||
execution durations 5909 ms). Retries skipped the completed migrations.
|
||
|
||
Final schema is
|
||
`b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7`.
|
||
CHECKDB and referential checks passed. Every original column across **163 tables /
|
||
139554 rows** remains fingerprint-identical, including content, identities, sync
|
||
metadata, accounts and asset references. No unexplained business-data changes
|
||
were accepted. New deployment histories are expected additions.
|
||
|
||
Before the migrations the helper created and CHECKSUM/VERIFYONLY-verified:
|
||
`/srv/backups/sql/PlotLine-predeploy-20261125T155815Z-7427734eba47.bak`.
|
||
The successful retry independently created and verified:
|
||
`/srv/backups/sql/PlotLine-predeploy-20261125T160148Z-c2e69a3902f2.bak`.
|
||
The intermediate retry backup is also retained. The original recovery backup
|
||
`/srv/backups/sql/PlotLine-20261124.bak` still matches its approved checksum.
|
||
No recovery media were overwritten/deleted and no Production restore was performed.
|
||
The existing hourly SQL backup timer remains active; it also retains responsibility
|
||
for Catherine's existing backups without configuration changes.
|
||
|
||
## Security and persistent configuration
|
||
|
||
The restricted transfer account plotdirector-deploy cannot obtain a shell/SFTP,
|
||
forward TCP, run general sudo, write helper/config/releases or read migration and
|
||
Catherine credentials. These were verified after authentication. Root owns the
|
||
trusted helper, worker, public key, target configuration and installed release.
|
||
Release directories are 0750; release files are 0440.
|
||
|
||
PlotLineApp was reconciled with the restored database user and receives only
|
||
PlotDirectorRuntime, with legacy db_owner removed. Actual runtime checks confirm
|
||
no sysadmin/db_owner, unrestricted DDL/backup or deployment-history mutation, and
|
||
no connection to CatherineLynwood. PlotDirectorMigration has PlotLine-only db_owner
|
||
and direct CREATE ANY DATABASE for VERIFYONLY; neither sysadmin nor dbcreator nor
|
||
Catherine access. Credentials are separate and protected. TRUSTWORTHY and
|
||
cross-database chaining remain disabled; runtime owns no database/schema.
|
||
|
||
The temporary root-only SQL administrator credential was used only for SQL
|
||
security setup/verification and removed. sa's password and SQL networking were not
|
||
changed or restarted. Only Atlas's temporary administrator SSH key was removed;
|
||
both other administration keys remain. New Atlas administrator SSH fails, while
|
||
restricted deployment validation succeeds. The held administrative session was closed.
|
||
|
||
All 30 uploads and both recovered Data Protection XML files were installed under
|
||
`/srv/plotdirector/shared`; original archives are retained. Upload hashes match
|
||
both on disk and when served over public HTTPS. Both original key files remain
|
||
byte-identical. Stable DP application identity is `/var/www/plotdirector/`, with
|
||
shared key path configured; historical cookie/encrypted-payload compatibility is
|
||
not claimed as a tested result. Reauthentication is expected where necessary.
|
||
|
||
`/etc/plotdirector/plotdirector.env` merges the read-only old appsettings.json and
|
||
recovered environment file, replacing obsolete database/storage settings. It
|
||
contains new runtime credentials, persistent paths, public URL, paragraph-manuscript
|
||
flag enabled, allowed hosts and recovered Site/Admin/SMTP/Stripe/OpenAI/logging
|
||
settings. No secret values appear in this report or Git. Actual external delivery,
|
||
payments and AI calls were not used as acceptance tests.
|
||
|
||
## HTTPS and focused public acceptance
|
||
|
||
A new Let's Encrypt certificate covers **plotdirector.com and www.plotdirector.com**,
|
||
expires **23 February 2027, 14:51:34 UTC**, and passed normal public chain/hostname
|
||
validation. Certbot used webroot-only issuance; no historical certificate was
|
||
transferred. HTTP redirects to HTTPS while preserving ACME challenge access; www
|
||
redirects to apex. certbot.timer is active; the targeted PlotDirector renewal dry
|
||
run and lineage-scoped validated Nginx reload hook passed. Catherine's certificate
|
||
was not renewed or replaced.
|
||
|
||
Public homepage, login and Word host/static resources return 200. Writer/Context,
|
||
Companion APIs and SignalR negotiation correctly reject unauthenticated access.
|
||
An unauthenticated WebSocket upgrade is rejected by authentication, as expected;
|
||
**authenticated 101/SignalR operation remains a manual acceptance item**. Internal
|
||
health is 404 publicly, including case/encoded variants, and healthy locally with
|
||
correct Production/source/version/database identity. Nginx supports HTTP/1.1
|
||
upgrade headers and required upload limits. Native Skia ABI/version/bitmap
|
||
construction and Fontconfig initialisation passed; an egress BPF filter is attached.
|
||
|
||
Catherine remains active at its original PID 13134 and returns public HTTPS 200.
|
||
Its original vhost/service/certificate checksums are unchanged. www remains
|
||
inactive, PID 0; installed DLL/helper hashes match the historical release. No DNS,
|
||
Catherine, firewall or SQL network changes were made. Port 5003 remains reserved.
|
||
|
||
## Initial worker holds and owner action
|
||
|
||
Current settings: StoryIntelligence workers=false; illustration generation=false;
|
||
WritingSolver indexing=false; Geography=false. The service's acceptance drop-in
|
||
blocks egress except localhost. A fixed root-owned pre-start permission fence
|
||
prevents email queue claims/reset, accepted-manuscript baseline discovery and
|
||
writing/work pruning. Those services are always registered in this qualified
|
||
build, so configuration flags alone cannot suspend them. Internal presence,
|
||
notifications and in-memory capture expiry remain available for Companion operation.
|
||
No payment, subscription mutation or live API/email acceptance was performed.
|
||
|
||
Recorded intended normal settings, **not enabled**: StoryIntelligence=true and
|
||
illustration generation=true (recovered settings), WritingSolver indexing=true
|
||
(qualified default), Geography=false until a provider is explicitly reviewed.
|
||
Email and retention resume only with owner authorisation, queue review, removal
|
||
of the pre-start fence and the corresponding five user-level EXECUTE denials.
|
||
Egress must be deliberately reviewed before restoring SMTP/Stripe/AI access.
|
||
See the operational standard for exact held procedure names and paths.
|
||
|
||
The configured owner/admin account is email-confirmed and unlocked. Its stored
|
||
subscription is active, non-trial, with a ten-book entitlement and stored period
|
||
end **8 December 2026, 18:18:47 UTC**. This is a database finding, not a Stripe API
|
||
verification. Other historical accounts include expired entitlements; the Phase 1
|
||
restore fixture selected a different account. No subscription records were changed.
|
||
Password-reset/notification emails will remain queued while the email hold is in
|
||
place. Existing-password authentication and authenticated Writer/Context, Word,
|
||
Companion, WebSocket and image workflows require owner manual testing.
|
||
|
||
## Failures, timing and handover
|
||
|
||
The first activation migrated successfully but failed startup because umask 077
|
||
masked requested release-directory 0750 to 0700. A second attempt, before recovery
|
||
completed, failed the helper's inactive-service check against systemd's failed
|
||
state. Neither attempt received successful activation history. Both evidence and
|
||
all backups were retained. The failed installation/current-link evidence was
|
||
quarantined under `/srv/plotdirector/failed-attempts/20261125T155815Z-7427734eba47`.
|
||
The old helper was backed up. A narrow two-line installer correction explicitly
|
||
chmods directories to the already documented 0750; a focused real-filesystem umask
|
||
test passed. systemd's stopped/failed state was reset, and the unchanged signed
|
||
package was activated again through the helper. No validation was bypassed,
|
||
application/SQL changed, migration replayed or database rolled back.
|
||
|
||
The root-owned initial-acceptance permission fence/egress profile and ACME/internal
|
||
health Nginx rules are checked into provisioning templates for maintainability.
|
||
No full Phase 1 regression/restore qualification was repeated.
|
||
|
||
Tracked resumed operations: **15:45:06–16:04:33 UTC (~19m27s)**, including provisioning
|
||
and WAN transfer. Public availability began **16:03:22 UTC**. Initial activation
|
||
through successful recovery took **3m55s**, inside the 15-minute target; the final
|
||
successful attempt took **22.5 seconds**. The earlier blocked preflight is retained
|
||
as historical evidence. No further DNS/cutover step is required.
|
||
|
||
Sanitized evidence is in [the Phase 2 evidence directory](Evidence/Phase2-20261125/operations-handover.json).
|
||
Private attempt logs and recovery evidence remain root-protected on web1. For
|
||
later work: owner manual acceptance/worker decisions, periodic restore testing,
|
||
approved signing-key custody and retention review. These do not defer public go-live.
|