Skip to content

exact-match target rules can be missed in mahi.authorize() #7

@arekinath

Description

@arekinath

Aperture can sometimes return a lookup-object format for exact match rules with targets:

{
        "effect": true,
        "actions": {
          "exact": {
            "getdirectory": true
          },
          "regex": []
        },
        "resources": {
          "exact": {
            "/elipse/stor/builds": true
          },
          "regex": []
        },
        "conditions": []
      }

Currently in mahi.authorize() we're only looking for the array-style exact match, which means we miss this and don't process it as a targetted rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions