Record architecture B corrections and measurement tooling
This commit is contained in:
1 parent
097d156c18
commit
6ea20b2365
78 files changed
+45820
-67
No files matched your search
@@ -26,7 +26,7 @@ public static class Installation
|
||||
if (Uri.CheckHostName(host) == UriHostNameType.Unknown || host.Contains('%') || port is < 1024 or > 65535) throw new ArgumentException();
|
||||
var id = Guid.NewGuid().ToString("N")[..12]; var prefix = "healthapp_b_" + id;
|
||||
var accounts = new List<Account> { new("prototype-patient", "Patient", Secret()), new("prototype-professional", "HealthcareProfessional", Secret()), new("installation-check", "Patient", Secret()) };
|
||||
var settings = new Dictionary<string, string> { ["urls"] = "https://0.0.0.0:" + port, ["Authentication:KeyDirectory"] = PathAt(root, "var/lib/healthapp-b/keys"), ["Authentication:TokenLifetimeMinutes"] = "30", ["Kestrel:Certificates:Default:Path"] = PathAt(root, "etc/healthapp-b/application.pfx"), ["Resources:MaxPoolSize"] = "32", ["Resources:MaxConcurrentRequests"] = "32", ["Resources:MaxConcurrentAssessments"] = "4", ["Resources:RequestDeadlineSeconds"] = "30" };
|
||||
var settings = new Dictionary<string, string> { ["urls"] = "https://0.0.0.0:" + port, ["Authentication:KeyDirectory"] = PathAt(root, "var/lib/healthapp-b/keys"), ["Authentication:TokenLifetimeMinutes"] = "30", ["Kestrel:Certificates:Default:Path"] = PathAt(root, "etc/healthapp-b/application.pfx") };
|
||||
var plan = new InstallationPlan(prefix, prefix + "_runtime", Secret(), prefix + "_profile", prefix + "_observations", host, port, Secret(), accounts, settings);
|
||||
settings["Kestrel:Certificates:Default:Password"] = plan.CertificatePassword;
|
||||
for (var i = 0; i < accounts.Count; i++)
|
||||
|
||||
@@ -28,6 +28,6 @@ The verifier validates certificate chain and hostname using the generated/suppli
|
||||
|
||||
The installer checks PID/HTTPS/configured DB/representative login/profile/observation/history/insight/overview, stops the app while PostgreSQL stays ready, restarts with a new PID and repeats verification. Liveness and readiness require a valid bearer ticket and disclose no patient information. Readiness checks keys, reference content and both migration versions; guidance/login can operate during DB-only outages.
|
||||
|
||||
`--dotnet /absolute/runtime/path` may reuse an existing .NET 10 ASP.NET runtime. Use a system-readable path outside `/tmp` and protected home directories because the service uses PrivateTmp and ProtectHome. Logs omit credentials/tokens/health payloads and identifying route values. Configuration controls pool size, request/assessment concurrency, deadline, accounts, assignments and token lifetime. Defaults are deployment starting values, not measured capacity or energy claims.
|
||||
`--dotnet /absolute/runtime/path` may reuse an existing .NET 10 ASP.NET runtime. Use a system-readable path outside `/tmp` and protected home directories because the service uses PrivateTmp and ProtectHome. Logs omit credentials/tokens/health payloads and identifying route values. Configuration controls accounts, assignments and token lifetime. Connections use the same Npgsql provider defaults as Architecture A; an explicit `Resources:MaxPoolSize` remains an optional deployment override. There are no application request/assessment admission gates or blanket request deadline. Legacy `Resources:MaxConcurrentRequests`, `Resources:MaxConcurrentAssessments` and `Resources:RequestDeadlineSeconds` keys are ignored; client cancellation and database-provider timeouts remain effective. Dependency failure responses preserve the original 502 contract rather than introducing admission 503s.
|
||||
|
||||
Before future upgrades: back up the B database, protected configuration and token keys; retain source/target revisions; stop or explicitly coordinate app access while privileged module migrations run; verify integrity and HTTPS/workflows before switching. No backup SLA, HA, live A import, automatic rollback or production/clinical certification is promised. Measurement host/data/workload equivalence must be controlled separately from installation evidence.
|
||||
@@ -2,6 +2,5 @@
|
||||
"ConnectionStrings": {"HealthDatabase": "Host=127.0.0.1;Database=YOUR_FRESH_B_DB;Username=YOUR_RUNTIME_ROLE;Password=LOAD_EXTERNALLY"},
|
||||
"Authentication": {"KeyDirectory": "/var/lib/healthapp-b/keys", "TokenLifetimeMinutes": 30, "Accounts": []},
|
||||
"Access": {"ProfessionalAssignments": {}},
|
||||
"Resources": {"MaxPoolSize": 32, "MaxConcurrentRequests": 32, "MaxConcurrentAssessments": 4, "RequestDeadlineSeconds": 30},
|
||||
"Database": {"Remote": false}
|
||||
}
|
||||
Reference in new issue
Block a user