Files
MrTrust/AGENTS.md
MrSphay b58b6358f4
Some checks failed
Build MrTrust / build-windows (push) Has been cancelled
Add MrTrust GUI and Gitea release build
2026-05-15 23:47:10 +02:00

1.2 KiB

Agent Instructions For MrTrust

MrTrust manages explicit Windows certificate trust for MrSphay software.

Security Boundaries

  • Do not add Defender, SmartScreen, UAC, firewall, or policy bypasses.
  • Do not add silent certificate installation.
  • Do not commit .pfx, private keys, passwords, tokens, or signing secrets.
  • Default to CurrentUser certificate stores. Use LocalMachine only when the user explicitly chooses all-user trust.
  • Keep all user-facing trust actions reversible.

Repository Layout

  • scripts/ contains the PowerShell implementation.
  • assets/certificates/ contains public certificates only.
  • private/ is ignored and may contain local signing material.
  • docs/integration-prompt.md is the prompt for adding MrTrust to other projects.
  • docs/security-model.md documents the intended behavior and limits.
  • MrTrust.ps1 gui is the user-facing GUI entry point.

Verification

Before finishing changes, run:

$scripts = Get-ChildItem .\scripts -Filter *.ps1
foreach ($script in $scripts) {
  $tokens = $null
  $errors = $null
  [System.Management.Automation.Language.Parser]::ParseFile($script.FullName, [ref]$tokens, [ref]$errors) | Out-Null
  if ($errors) { throw $errors }
}
git diff --check