Skip to content

fix: race-safe DP-keys cert provisioning + Dependabot ruleset unblock#37

Merged
bilbospocketses merged 1 commit into
masterfrom
fix/dp-keys-race-and-ruleset
Jun 4, 2026
Merged

fix: race-safe DP-keys cert provisioning + Dependabot ruleset unblock#37
bilbospocketses merged 1 commit into
masterfrom
fix/dp-keys-race-and-ruleset

Conversation

@bilbospocketses
Copy link
Copy Markdown
Owner

Summary

Two fixes from the net10 Dependabot fallout:

DP-keys race (code)

Program.ConfigurePlatformKeyProtection now provisions dp-key-protection.pfx atomically (unique temp file + File.Move) and retries transient IO/crypto errors, tolerating a concurrent writer by loading the winner's file. Eliminates the intermittent File.WriteAllBytes failure under net10 parallel integration tests (each WebApplicationFactory writes its own cert; an AV/Defender scan of a fresh .pfx under load could briefly lock it). Production builds this once per process and is unaffected. Verified 210/210 x3 locally.

Ruleset unblock (recorded in CHANGELOG)

The master ruleset required the two CodeQL per-language contexts (Analyze (csharp)/Analyze (actions)), which CodeQL default-setup does not emit on Dependabot PRs — so they sat permanently BLOCKED. Swapped to the aggregate CodeQL (GHAS app 57789); mirrors the control-menu fix. Already applied to ruleset 16570488; this PR just records it.

Caught hanging Dependabot #34/#35 (DP-keys flake) and #32/#33 (ruleset).

- ConfigurePlatformKeyProtection now writes dp-key-protection.pfx atomically
  (unique temp + File.Move) and retries transient IO/crypto, tolerating a
  concurrent writer by loading the winner's file. Fixes the intermittent
  File.WriteAllBytes failure under net10 parallel integration tests that hung
  Dependabot #34/#35. Verified 210/210 x3 locally; production unaffected.
- CHANGELOG: the DP-keys fix + the master-ruleset required-checks swap
  (Analyze csharp/actions -> aggregate CodeQL, app 57789) that unblocked
  Dependabot PRs.
@bilbospocketses bilbospocketses enabled auto-merge (squash) June 4, 2026 06:14
@bilbospocketses bilbospocketses merged commit 55e60f7 into master Jun 4, 2026
7 checks passed
@bilbospocketses bilbospocketses deleted the fix/dp-keys-race-and-ruleset branch June 4, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant