Change RPC dispatcher access_policy to DefaultRPCAccessPolicy

The legacy access policy LegacyRPCAccessPolicy allows RPC access
to all callable endpoint methods including private methods
(methods prefixed by '_').  Trove doesn't expose private method,
so need change to DefaultRPCAccessPolicy.

Change-Id: Ic00a60c47b8e098ac227a4cca93636657207ede8
This commit is contained in:
ChangBo Guo(gcb) 2017-11-02 19:59:17 +08:00
parent 249ec84f2e
commit ef2f94b906

@ -125,7 +125,7 @@ def get_server(target, endpoints, key, serializer=None,
endpoints,
executor=executor,
serializer=serializer,
access_policy=dispatcher.LegacyRPCAccessPolicy)
access_policy=dispatcher.DefaultRPCAccessPolicy)
def get_notifier(service=None, host=None, publisher_id=None):