I'm still seeing this error on very rare occasions when loading our authorization plugin for privilege escalation:
Replace: builtin:authenticate
With: TrusonaAuthorizationPlugin:trusonaLogin
The observed behavior is that clicking on the lock icon in "System Preferences > Security & Privacy" displays "Authenticating..." and just hangs there. Our plugin isn't being loaded. The solution I've found so far is to do a Restart. I've read "There's a code signing oddity in Apple systems where the kernel caches information about the signature and doesn’t flush that cache when you rewrite the Mach-O image file". The problem typically happens after installing a new version of the software on an M1 Mac mini hosted at Mac Stadium and running macOS Monterey. Once the problem occurs, it doesn't seem to matter which plugin image we use.
The problem appears so rarely it's hard to reproduce. Can you offer any ideas for how to resolve this or track down the underlying cause?