Project: mesos
Issue MESOS-4398: Synchronously handle AuthZ errors for the Scheduler endpoint.
Currently, any AuthZ errors for the {{/scheduler}} endpoint are handled asynchronously as {{FrameworkErrorMessage}}. Here is an example: {code} if (authorizationError.isSome()) { LOG(INFO) << "Refusing subscription of framework" << " '" << frameworkInfo.name() << "'" << ": " << authorizationError.get().message; FrameworkErrorMessage message; message.set_message(authorizationError.get().message); http.send(message); http.close(); return; } {code} We would like to handle such errors synchronously when the request is received similar to what other endpoints like {{/reserve}}/{{/quota}} do. We already have the relevant functions {{authorizeXXX}} etc in {{master.cpp}}. We should just make the requests pass through once the relevant {{Future}} from the {{authorizeXXX}} function is fulfilled.
Story points: 5