Permission handler (permhandler)
The permission handler generates a unique secret for the registered services, stores, and provides service permissions.
On registering a service, the permission handler receives the list of service permissions. The handler generates a random unique 64-bit length secret, associates it with serve permissions, and returns the secret.
Upon unregistering a service, it removes service permissions and service secret entries.
On getting permissions, it finds and returns associated permissions by the provided secret and the functional server’s ID.