Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5918

Geode function security should be dynamically determined by function arguments

    XMLWordPrintableJSON

Details

    Description

      Now in Function interface there is a method

      default Collection<ResourcePermission> getRequiredPermissions(String regionName)

      { return Collections.singletonList(ResourcePermissions.DATA_WRITE); }

       

      Which only support statically security determination in design time(regionName is not enough).

      In some situation,we require determining security on function arguments.

       

      I think add a method in this interface like

      default Collection<ResourcePermission> getRequiredPermissions(String regionName,Object args)

      { return getRequiredPermissions(regionName); }

       

      and in server side command,call the new method with regionName and arguments together.

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ivorzhou ivorzhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m