Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-10083

Authorizing invalid operation can result in declined authorization.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • None
    • None

    Description

      Currently, when performing ACCEPT call, operations are validated after authorization to avoid races between validating against Master state and other events modifying Master state while operation is being authorized by Authorizer.

      This causes a need for the authorization code to compose valid authorization Objects for invalid operations. If the authorization setup is strict enough, this will result in the framework receiving "Not authorized" message for an invalid operation, instead of validation error.

      There are two options to prevent sending authorization errors for invalid operations (and also get rid of handling invalid operations in Object composing code):

      • to split validation into two parts (first one stateless, second one depending on the master state), and run the first part before authorizing
      • get rid of asynchronous authorization step in ACCEPT (as suggested in MESOS-10056), and perform all validation before authorization.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              asekretenko Andrei Sekretenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: