Skip to content

fix: avoid settings.Global recursion in CommercialTrustOK - #35

Merged
coreybutler merged 1 commit into
mainfrom
fix/commercial-trust-peek-no-load-recurse
Nov 6, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/commercial-trust-peek-no-load-recurse

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

Summary

  • CommercialTrustOK now peeks AirGapped / license-verify stamps instead of calling settings.Global(), which re-entered Load via honorMachinePolicy and stack-overflowed sync malware-refresh when an AccessToken was present.
  • Seed those stamps in seedLicensingFromMachineHives so the mid-Load governance gate still sees them.
  • LicenseHeader prefers PeekAccessToken before forcing Global().

Test plan

  • go test in settings, licensing, malwaredb
  • sync malware-refresh --root <tmp> downloads malware.db / head.cose
  • Community installer 2.1.0-wizard.2 completes with malware.db present

malware-refresh stack-overflowed when a leftover AccessToken made Load re-enter via honorMachinePolicy. Peek AirGapped/verify stamps (and seed them) so the temporary CDN license JWT can mint.
@coreybutler
coreybutler merged commit 755cd9e into main Nov 6, 2026
@coreybutler
coreybutler deleted the fix/commercial-trust-peek-no-load-recurse branch November 6, 2026 21:08
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