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

Use server timestamp for createTime for role, privilege and group

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: