Resolve Windows DPAPI qualification fixture collision
This commit is contained in:
parent
ec3744f208
commit
1317fcd3e4
@ -1,6 +1,6 @@
|
||||
# Companion 1.0.0.14 Windows qualification, 7 November 2026
|
||||
|
||||
The signed installer passed offline package checks. Windows authorisation qualification remains blocked by a standalone DPAPI failure.
|
||||
The signed installer passed offline package checks and the corrected standalone Windows DPAPI qualification. It is ready for manual installation and live acceptance. The follow-up below resolves the original fixture failure.
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
@ -28,3 +28,24 @@ A temporary fixture referencing the packaged Windows agent assembly exercised it
|
||||
Read-only snapshots confirmed the installed MSI remains 1.0.13, with identical installed payload hashes and Word registration. No live installation, Word or tray launch, configuration change, or deployment was performed. Private snapshots and fixture logs remain in C:\Temp\PlotDirectorQualification-1.0.0.14.
|
||||
|
||||
For live acceptance, the upgrade is expected to require one initial browser approval. The key gate is confirming that approval can be saved and a subsequent ordinary restart reconnects without opening the browser. The remaining scenarios are in the persistent-authorisation handover.
|
||||
|
||||
## DPAPI follow-up
|
||||
|
||||
The original failure was a qualification fixture naming collision. Its managed entry assembly was named `Dpapi.dll`, matching the Windows native `DPAPI.dll` dependency case-insensitively. The failing call reached `crypt32!CryptProtectData` and returned FALSE with Win32 error 127 (ERROR_PROC_NOT_FOUND). The exception chain was CryptographicException ("Windows could not read or write this user's protected Companion approval") wrapping Win32Exception (127), with this stack:
|
||||
|
||||
```text
|
||||
WindowsUserProtection.Transform (CompanionStateStore.cs:39)
|
||||
WindowsUserProtection.Protect (CompanionStateStore.cs:33)
|
||||
ProtectedCompanionStateStore.Save (CompanionStateStore.cs:50)
|
||||
Program.Main (standalone fixture, write operation)
|
||||
```
|
||||
|
||||
Both hosts were x64 on .NET 10.0.14. PowerShell 7.6.9 used its bundled CoreCLR, and its successful control invoked CurrentUser ProtectedData before loading the fixture, bringing in System32 DPAPI.dll first. The original standalone STA fixture used shared CoreCLR and Windows Desktop 10.0.14 and loaded its managed Dpapi.dll before the first DPAPI call. Both loaded System32 crypt32.dll. Module inspection found the managed fixture but no System32 DPAPI.dll in the failing process. The native probe also failed with a null description, absent entropy and either flags 0 or 1, and managed ProtectedData returned the same error in that process.
|
||||
|
||||
The correction was to name the temporary fixture assembly `PlotDirector.StorageQualification` and build into a clean output directory. The renamed host loaded System32 DPAPI.dll and passed. Explicitly loading the old managed Dpapi.dll into that same renamed host before its first DPAPI call restored error 127. Leaving that assembly unloaded in a fresh process restored success. The product payload contains no Dpapi.dll and the fixture's Agent DLL SHA-256 matches the packaged DLL. The product DPAPI implementation and signed artifacts required no changes.
|
||||
|
||||
Two standalone STA Windows Desktop 10.0.14 processes, PIDs 27056 and 5588, used the packaged production store on a temporary file. The first saved a synthetic installation credential, installation ID, server, account, refresh expiry and a preference without writing the credential in plaintext, then exited. The second restored and verified all those fields, rejected tampering with either server or account scope, and removed the synthetic fixture data. Neither process hosted PowerShell or used a DPAPI warmup call.
|
||||
|
||||
The native suite passed again (237 checks), including simulated renewal, process recovery, permission checking, isolation and revocation. The trusted installation security and loopback native HTTP regressions also passed. These checks used synthetic data and did not start the tray, Word or a live approval flow. Read-only inventory during this follow-up found MSI1.0.14 already registered, whereas the original pass observed MSI1.0.13. No installation or settings mutation was performed during the follow-up, and the changed inventory is not evidence of a successful live acceptance test.
|
||||
|
||||
The original installer and SHA-256 above remain the candidate for manual installation. The live acceptance gate is one initial browser approval after upgrading, followed by exit and relaunch without another approval. Live Word/PWA behaviour remains a manual acceptance item.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user