Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-37 Implement a DB backed policy store
  3. SENTRY-138

Use server timestamp for createTime for role, privilege and group

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Server should over write the timestamp that's passed by the client.

      Following structs include a timestamp,

      public class MSentryRole {
      
        private String roleName;
        // set of privileges granted to this role
        private Set<MSentryPrivilege> privileges;
        // set of groups this role belongs to
        private Set<MSentryGroup> groups;
        private long createTime;
        private String grantorPrincipal;
        ...
      }
      
      public class MSentryPrivilege {
      
        String privilegeScope;
        String privilegeName;
        String serverName;
        String dbName;
        String tableName;
        String URI;
        String action;
        // roles this privilege is a part of
        Set<MSentryRole> roles;
        long createTime;
        String grantorPrincipal;
         ...
      
      }
      

        Attachments

        1. SENTRY-138.patch
          4 kB
          Shreepadma Venugopalan
        2. SENTRY-138.patch
          4 kB
          Shreepadma Venugopalan

          Activity

            People

            • Assignee:
              shreepadma Shreepadma Venugopalan
              Reporter:
              shreepadma Shreepadma Venugopalan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: