SIGN IN SIGN UP

authz: add onPolicyUpdate callback to authz file watcher (#9142)

Small additional capability, so user code can tell when a new policy has
been loaded.

Our current usecase is updating an opentelemetry metric to reflect the
policy version (~= file mtime). We could just run a goroutine polling
the file separately, but then there's no guarantee that the authz policy
has actually been loaded - it could have failed parsing, or the process
could be CPU-starved, etc.

RELEASE NOTES:
* TBD
K
Keith Collister committed
2a112a82f5c53ab3b89b5aa4a02b4195e2706879
Parent: 1a80fca
Committed by GitHub <noreply@github.com> on 7/8/2026, 11:25:41 AM