Describe the bug
Auth restrictions on RPC methods specified using @RPC.allow decorators are not enforced on existing agents after a restart of VOLTTRON server. These are enforced on a newly installed agent or after auth update using "vctl auth" commands.
To Reproduce
Start VOLTTRON
Install agent, say AgentA, with RPC exported method with a auth restriction using the @RPC.allow decorator
Install a second agent, say CallerAgent, and call the auth restricted method of AgentA on onstart method
Start AgentA and CallerAgent
This should cause the RPC call to fail with a error clearly mentioning that CallerAgent does not have the necessary capability to access AgentA's method
Restart VOLTTRON
Restart AgentA
Restart CallerAgent
Observe there is no auth error and CallerAgent is able to call the auth restricted method of AgentA
Expected behavior
Auth rules should be enforced for newly installed agents and existing agents
Describe the bug Auth restrictions on RPC methods specified using @RPC.allow decorators are not enforced on existing agents after a restart of VOLTTRON server. These are enforced on a newly installed agent or after auth update using "vctl auth" commands.
To Reproduce
Expected behavior Auth rules should be enforced for newly installed agents and existing agents