Add known mark to identity, fix credentials comparison bugs

This commit is contained in:
Theodor S. Midtlien
2026-09-16 10:37:59 +02:00
parent 15003fc495
commit cacdb50c0e
21 changed files with 350 additions and 144 deletions
+9
View File
@@ -0,0 +1,9 @@
package ipcauth
// KnownForTest returns a copy of id marked as kernel-attested, so packages
// outside ipcauth can build identity fixtures. A real Identity is only ever
// produced by a peer-credential read, nothing outside a test should call this.
func KnownForTest(id Identity) Identity {
id.known = true
return id
}