def _register(self, manager): InterfaceModule._register(self, manager) self._services = [self.get_controller_service] #load rsa crypto self.pub_key, self.priv_key = load_crypto('%s/master.key' % \ pydra_settings.RUNTIME_FILES_DIR) self.priv_key_encrypt = self.priv_key.encrypt # setup security. This just uses a default user/pw # the real authentication happens after the AMF client connects self.checker = checkers.InMemoryUsernamePasswordDatabaseDontUse() self.checker.addUser("controller", "1234") # Load crypto - The interface runs on the same server as the Master so # it can use the same key. Theres no way with the AMF interface to # restrict access to localhost connections only. self.key_size=4096