diff --git a/README.md b/README.md
index 79b5c5e..f6f8165 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ Een modulaire monolith CMS gebouwd met .NET 10.
- `src/SlpModularCms.Api`: De host applicatie en API shell (lokale ontwikkeling / dev-host).
- `src/SlpModularCms.Api.SlpSoftware`: Tweede Client-project, de daadwerkelijk gedeployde API voor `test.slpsoftware.nl`/`slpsoftware.nl` (CI/CD-cutover vanaf `SlpModularCms.Api`). Host dezelfde modules als `SlpModularCms.Api` via dezelfde gedeelde `CmsHost`-compositie (zie hieronder), plus de `Offerings`- en `Contact`-module. Heeft een eigen, geïsoleerde lokale ontwikkeldatabase — zie `appsettings.Development.json` in dat project.
-- `src/SlpModularCms.Api.AndreaSlopFotografie`: Derde Client-project voor Andrea Slop Fotografie (testomgeving `test.andreaslop.nl`). Host de modules `Identity`, `Availability`, `Offerings` en `Contact` (geen `Master`) en serveert de voorgerenderde website uit `wwwroot/web/` (`WebsiteMode.PrerenderedPages`) plus de admin met het thema `asf` op `/admin`. Lokaal op poort `5200`, eigen database (`appsettings.Development.json`). Bijbehorende tests: `SlpModularCms.Api.AndreaSlopFotografie.Tests` (de pipelinetests daarin hebben net als `Api.Tests` een bereikbare MariaDB nodig).
+- `src/SlpModularCms.Api.AndreaSlopFotografie`: Derde Client-project voor Andrea Slop Fotografie (testomgeving `test.andreaslop.nl`). Host de modules `Identity`, `Availability`, `Offerings` en `Contact` (geen `Master`) en serveert de voorgerenderde website uit `wwwroot/web/` (`Website:Mode=PrerenderedPages`) plus de admin met het thema `asf` op `/admin`. Lokaal op poort `5200`, eigen database (`appsettings.Development.json`). Geen eigen testproject: het gedrag zit in Core en de modules en wordt getest op de master-`SlpModularCms.Api` (alle modules); de samenstelling en standaardwaarden van deze site worden getest in `SlpModularCms.Api.Tests` (`SiteContractTests`, `AsfVariantPipelineTests`) en `SlpModularCms.Modules.Contact.Tests` (`SiteVariantContactTests`). `Website:Mode=PrerenderedPages` staat in de eigen `appsettings.json`.
- `src/SlpModularCms.Core`: Kern functionaliteiten, data modellen en interfaces. Bevat ook `Core/Hosting/CmsHost.cs` — de gedeelde service- en pipeline-compositie die elk Client-project (`Api`, `Api.SlpSoftware`) vanuit zijn eigen dunne `Program.cs` aanroept, zodat beide projecten niet uit elkaar kunnen groeien.
- `src/SlpModularCms.Modules.*`: Onafhankelijke functionele modules.
- `frontend/`: De CMS admin web-UI (Vite + React + TypeScript). Bewust buiten `src/` gehouden om de .NET solution schoon te houden.
@@ -376,7 +376,7 @@ In productie moeten gevoelige instellingen worden doorgegeven via Environment Va
- `Observability__SentryDsn` — leeg is een normale, ondersteunde staat: Sentry wordt dan overgeslagen en alleen console-logging blijft actief
- `SecurityHeaders__AllowedScriptOrigins__0`, `SecurityHeaders__AllowedConnectOrigins__0`, ... — externe origins die de CSP van `/admin` en `/api/v1` mag toestaan (bijv. de Umami-scripthost en Sentry's ingest-endpoint). Zie `appsettings.json → SecurityHeaders` voor de volledige optiesvorm; een onbekende `PathPolicies`-policy-naam laat de applicatie bij **opstarten** falen, niet pas bij de eerste request
-- **Voorgerenderde website (`WebsiteMode.PrerenderedPages`)** — een client kiest dit in zijn `Program.cs` via `CmsHostOptions` (standaard `SpaFallback`: alles blijft zoals het was). Instellingen voor deze modus: `Website__NoIndex=true` (testinstantie: `X-Robots-Tag` plus `robots.txt` met `Disallow: /`), `SecurityHeaders__DefaultPolicy=StrictSite` met `SecurityHeaders__AllowedSiteScriptOrigins__0`, `SecurityHeaders__AllowedSiteConnectOrigins__0`, ... (alleen gebruikt door `StrictSite`). Logging van de website (301's en 404's op `Information`) gaat via de logger-categorie `SlpModularCms.Website`: zet per omgeving `Website__LogLevel` (test `Information`, standaard en productie `Warning`; leeg = `Logging:LogLevel` beslist). Gebruik niet `Logging__LogLevel__SlpModularCms.Website` in een systemd-`EnvironmentFile`: een variabelenaam met een punt wordt daar genegeerd. Gedrag per pad staat in [`WEBSITE_WORKSPACE.md`](WEBSITE_WORKSPACE.md).
+- **Voorgerenderde website (`Website:Mode=PrerenderedPages`)** — een client kiest dit in zijn `Program.cs` via `CmsHostOptions` (standaard `SpaFallback`: alles blijft zoals het was). Instellingen voor deze modus: `Website__NoIndex=true` (testinstantie: `X-Robots-Tag` plus `robots.txt` met `Disallow: /`), `SecurityHeaders__DefaultPolicy=StrictSite` met `SecurityHeaders__AllowedSiteScriptOrigins__0`, `SecurityHeaders__AllowedSiteConnectOrigins__0`, ... (alleen gebruikt door `StrictSite`). Logging van de website (301's en 404's op `Information`) gaat via de logger-categorie `SlpModularCms.Website`: zet per omgeving `Website__LogLevel` (test `Information`, standaard en productie `Warning`; leeg = `Logging:LogLevel` beslist). Gebruik niet `Logging__LogLevel__SlpModularCms.Website` in een systemd-`EnvironmentFile`: een variabelenaam met een punt wordt daar genegeerd. Gedrag per pad staat in [`WEBSITE_WORKSPACE.md`](WEBSITE_WORKSPACE.md).
### 2a. Data Protection key ring (Master CMS Module)
De API keys van geregistreerde slaves worden versleuteld opgeslagen met ASP.NET Core Data Protection. De key ring wordt **automatisch** persistent opgeslagen in de database (`PersistKeysToDbContext`, met een expliciete, stabiele applicatie-discriminator) — dit hoeft niet meer apart geconfigureerd te worden. Dit is bewust zo gebouwd omdat de atomische release-switch (zie hierboven) bij elke deploy een nieuwe content-root-map gebruikt: zonder een database-backed key ring zou dat elke keer de key ring weggooien en alle opgeslagen slave-API-keys onleesbaar maken.
diff --git a/SlpModularCms.sln b/SlpModularCms.sln
index 8ca0860..6576ff6 100644
--- a/SlpModularCms.sln
+++ b/SlpModularCms.sln
@@ -40,8 +40,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlpModularCms.Modules.Offer
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlpModularCms.Api.AndreaSlopFotografie", "src\SlpModularCms.Api.AndreaSlopFotografie\SlpModularCms.Api.AndreaSlopFotografie.csproj", "{759EE53D-EECA-4054-A17F-4172B0EC2015}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlpModularCms.Api.AndreaSlopFotografie.Tests", "src\SlpModularCms.Api.AndreaSlopFotografie.Tests\SlpModularCms.Api.AndreaSlopFotografie.Tests.csproj", "{DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlpModularCms.Modules.Contact", "src\SlpModularCms.Modules.Contact\SlpModularCms.Modules.Contact.csproj", "{59F64DD2-DF30-4F78-A3B7-2AB6A769ED6C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SlpModularCms.Modules.Contact.Tests", "src\SlpModularCms.Modules.Contact.Tests\SlpModularCms.Modules.Contact.Tests.csproj", "{06C25AF5-D63F-4007-8796-C4BA27940EBA}"
@@ -236,18 +234,6 @@ Global
{759EE53D-EECA-4054-A17F-4172B0EC2015}.Release|x64.Build.0 = Release|Any CPU
{759EE53D-EECA-4054-A17F-4172B0EC2015}.Release|x86.ActiveCfg = Release|Any CPU
{759EE53D-EECA-4054-A17F-4172B0EC2015}.Release|x86.Build.0 = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|x64.ActiveCfg = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|x64.Build.0 = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|x86.ActiveCfg = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Debug|x86.Build.0 = Debug|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|Any CPU.Build.0 = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|x64.ActiveCfg = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|x64.Build.0 = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|x86.ActiveCfg = Release|Any CPU
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B}.Release|x86.Build.0 = Release|Any CPU
{59F64DD2-DF30-4F78-A3B7-2AB6A769ED6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59F64DD2-DF30-4F78-A3B7-2AB6A769ED6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59F64DD2-DF30-4F78-A3B7-2AB6A769ED6C}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -294,7 +280,6 @@ Global
{43DE02A5-DD13-42D1-9BF9-434E706B8500} = {30D8F44D-4B6E-4980-8D1F-29D1A64F438C}
{BF1054BD-DBD7-4D78-B99A-73FDC1362EA5} = {77DF6642-7863-4D67-BAEE-217EC2D99894}
{759EE53D-EECA-4054-A17F-4172B0EC2015} = {D72703E6-B021-4360-B1EE-0E99999B5899}
- {DF0FDCFD-2601-4D60-A7F5-198D39DBE57B} = {2F43D186-C7D5-4AB1-B821-4D595CA2ECB3}
{59F64DD2-DF30-4F78-A3B7-2AB6A769ED6C} = {30D8F44D-4B6E-4980-8D1F-29D1A64F438C}
{06C25AF5-D63F-4007-8796-C4BA27940EBA} = {77DF6642-7863-4D67-BAEE-217EC2D99894}
EndGlobalSection
diff --git a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/HostConfigurationTests.cs b/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/HostConfigurationTests.cs
deleted file mode 100644
index 8c8cee1..0000000
--- a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/HostConfigurationTests.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-using FluentAssertions;
-using Microsoft.Extensions.Configuration;
-
-namespace SlpModularCms.Api.AndreaSlopFotografie.Tests;
-
-///
-/// Guards the committed defaults of the Andrea Slop Fotografie host. These need no database, so they
-/// run everywhere (unlike ).
-///
-public class HostConfigurationTests
-{
- private static IConfigurationRoot Load()
- {
- var dir = new DirectoryInfo(AppContext.BaseDirectory);
- while (dir is not null &&
- !File.Exists(Path.Combine(dir.FullName, "SlpModularCms.Api.AndreaSlopFotografie", "appsettings.json")))
- {
- dir = dir.Parent;
- }
-
- dir.Should().NotBeNull("the host project must be found next to this test project");
- var path = Path.Combine(dir!.FullName, "SlpModularCms.Api.AndreaSlopFotografie", "appsettings.json");
- return new ConfigurationBuilder().AddJsonFile(path, optional: false).Build();
- }
-
- [Fact]
- public void WebsiteIsNoIndex_ByDefault()
- {
- Load().GetValue("Website:NoIndex").Should().BeTrue();
- }
-
- [Fact]
- public void DefaultPolicyIsStrictSite_AndAdminApiHealthStayStrict()
- {
- var config = Load();
-
- config["SecurityHeaders:DefaultPolicy"].Should().Be("StrictSite");
- var rules = config.GetSection("SecurityHeaders:PathPolicies").GetChildren()
- .ToDictionary(c => c["PathPrefix"]!, c => c["Policy"]!);
- rules.Should().Contain(new KeyValuePair("/admin", "Strict"))
- .And.Contain(new KeyValuePair("/api/v1", "Strict"))
- .And.Contain(new KeyValuePair("/health", "Strict"));
- }
-
- [Fact]
- public void SiteOrigins_AreHttpsOnly_AndNotAddedToTheAdminLists()
- {
- var config = Load();
- var site = config.GetSection("SecurityHeaders:AllowedSiteScriptOrigins").Get()!
- .Concat(config.GetSection("SecurityHeaders:AllowedSiteConnectOrigins").Get()!);
-
- site.Should().NotBeEmpty().And.OnlyContain(o => o.StartsWith("https://"));
- config.GetSection("SecurityHeaders:AllowedScriptOrigins").Get().Should().BeEmpty();
- config.GetSection("SecurityHeaders:AllowedConnectOrigins").Get().Should().BeEmpty();
- }
-
- [Fact]
- public void NoSecretsAreCommitted()
- {
- var config = Load();
-
- config["JwtSettings:Secret"].Should().StartWith("<");
- config["ConnectionStrings:DefaultConnection"].Should().Contain("");
- config["Identity:Setup:Token"].Should().BeNullOrEmpty();
- config["Observability:SentryDsn"].Should().BeNullOrEmpty();
- config.GetSection("ForwardedHeaders:KnownProxies").Get().Should().BeNullOrEmpty();
- }
-
- [Fact]
- public void Contact_IsOffByDefault_ForTheRightSite_WithNoRecipientOrCaptchaSecretCommitted()
- {
- var config = Load();
-
- config.GetValue("Contact:Enabled").Should().BeFalse();
- config["Contact:SiteId"].Should().Be("andreaslop");
- config.GetValue("Contact:Captcha:Enabled").Should().BeFalse();
- config["Contact:RecipientEmail"].Should().BeNullOrEmpty("the address comes from the environment only");
- config["Contact:Captcha:Secret"].Should().BeNullOrEmpty();
- config["Contact:Captcha:SiteKey"].Should().BeNullOrEmpty();
- }
-
- [Fact]
- public void Host_DoesNotReferenceTheMasterModule()
- {
- // Offerings has no compile-time reference from the host (modules are discovered at runtime), so its
- // presence is asserted through /System/capabilities in HostPipelineTests instead.
- var referenced = typeof(Program).Assembly.GetReferencedAssemblies().Select(a => a.Name);
-
- referenced.Should().NotContain("SlpModularCms.Modules.Master");
- }
-
- [Fact]
- public void Mail_IsOffByDefault_AndNoCredentialIsCommitted()
- {
- var config = Load();
-
- config["Email:Smtp:Host"].Should().BeNullOrEmpty("mail is switched on per environment");
- config["Email:Smtp:Username"].Should().BeNullOrEmpty();
- config["Email:Smtp:Password"].Should().BeNullOrEmpty();
- config["Email:FromAddress"].Should().NotBeNullOrEmpty();
- config["Email:LogoUrl"].Should().Be("/admin/brand-logo-mail.png");
- config["Email:LogoDarkUrl"].Should().Be("/admin/brand-logo-on-dark.png");
- }
-}
diff --git a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/SlpModularCms.Api.AndreaSlopFotografie.Tests.csproj b/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/SlpModularCms.Api.AndreaSlopFotografie.Tests.csproj
deleted file mode 100644
index 3952e39..0000000
--- a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/SlpModularCms.Api.AndreaSlopFotografie.Tests.csproj
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
- net10.0
- enable
- enable
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/SlpModularCms.Api.AndreaSlopFotografie/Program.cs b/src/SlpModularCms.Api.AndreaSlopFotografie/Program.cs
index 8ca4362..01fd3db 100644
--- a/src/SlpModularCms.Api.AndreaSlopFotografie/Program.cs
+++ b/src/SlpModularCms.Api.AndreaSlopFotografie/Program.cs
@@ -18,5 +18,3 @@ CmsHost.ConfigurePipeline(app, orchestrator, hostOptions);
app.Run();
-// Exposed so the host regression tests can start the real application in-memory.
-public partial class Program;
diff --git a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/AssemblyBehavior.cs b/src/SlpModularCms.Api.Tests/AssemblyBehavior.cs
similarity index 82%
rename from src/SlpModularCms.Api.AndreaSlopFotografie.Tests/AssemblyBehavior.cs
rename to src/SlpModularCms.Api.Tests/AssemblyBehavior.cs
index dce25e9..688f14b 100644
--- a/src/SlpModularCms.Api.AndreaSlopFotografie.Tests/AssemblyBehavior.cs
+++ b/src/SlpModularCms.Api.Tests/AssemblyBehavior.cs
@@ -1,4 +1,4 @@
-// The host tests start several real hosts against MariaDB/MySQL. The MySql.Data driver keeps a static,
+// The pipeline tests start several real hosts against MariaDB/MySQL. The MySql.Data driver keeps a static,
// non-thread-safe dictionary that is touched while a connection is opened (MySql.Data.Common.Ssl.StartSSL), so opening
// connections from several hosts at the same time can fail with "Operations that change non-concurrent collections
// must have exclusive access". The suite is small and fast (the pure unit tests take about a second), so the whole
diff --git a/src/SlpModularCms.Api.Tests/SiteContractTests.cs b/src/SlpModularCms.Api.Tests/SiteContractTests.cs
new file mode 100644
index 0000000..3a6a6fe
--- /dev/null
+++ b/src/SlpModularCms.Api.Tests/SiteContractTests.cs
@@ -0,0 +1,155 @@
+using FluentAssertions;
+using Microsoft.Extensions.Configuration;
+
+namespace SlpModularCms.Api.Tests;
+
+///
+/// What every site (client project) must look like, checked from its files alone: the modules it references and
+/// the defaults it commits. The sites carry no logic of their own (all behaviour lives in Core and the modules and
+/// is tested against the master SlpModularCms.Api host), so a site can only go wrong in its composition:
+/// a module reference that is missing or too much, or an unsafe default. These tests need no database.
+///
+public class SiteContractTests
+{
+ public static IEnumerable