Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-464

Enhance Derby by adding grant/revoke support. Grant/Revoke provide finner level of privileges than currently provided by Derby that is especially useful in network configurations.



    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • SQL
    • None
    • generic
    • Normal


      Derby currently provides a very simple permissions scheme, which is quite suitable for an embedded database system. End users of embedded Derby do not see Derby directly; they talk to a application that embeds Derby. So Derby left most of the access control work to the application. Under this scheme, Derby limits access on a per database or per system basis. A user can be granted full, read-only, or no access.

      This is less suitable in a general purpose SQL server. When end users or diverse applications can issue SQL commands directly against the database, Derby must provide more precise mechanisms to limit who can do what with the database.

      I propose to enhance Derby by implementing a subset of grant/revoke capabilities as specified by the SQL standard. I envision this work to involve the following tasks, at least:

      1) Develop a specification of what capabilities I would like to add to Derby.
      2) Provide a high level implementation scheme.
      3) Pursue a staged development plan, with support for DDL added to Derby first.
      4) Add support for runtime checking of these privileges.
      5) Address migration and upgrade issues from previous releases and from old scheme to newer database.

      Since I think this is a large task, I would like to invite any interested people to work with me on this large and important enhancement to Derby.


        1. grantRevoke.stat.Dec5
          5 kB
          Satheesh E. Bandaram
        2. grantRevoke.patch.Dec5
          447 kB
          Satheesh E. Bandaram
        3. grantRevokeSpec.html
          27 kB
          Satheesh E. Bandaram
        4. GrantRevokePartII.txt
          188 kB
          Satheesh E. Bandaram
        5. GrantRevokePartII.stat
          3 kB
          Satheesh E. Bandaram
        6. GrantRevokePartII.txt
          188 kB
          Satheesh E. Bandaram
        7. changeDescriptionPartII
          4 kB
          Satheesh E. Bandaram
        8. grantRevokeSpec_v2.html
          33 kB
          Satheesh E. Bandaram
        9. Privileges.java
          47 kB
          Michelle Caisse
        10. Privileges2.java
          47 kB
          Michelle Caisse
        11. grantRevokeSpec_v3.html
          29 kB
          Satheesh E. Bandaram
        12. grantRevokeSpec_v4.html
          32 kB
          Mamta A. Satoor
        13. grantRevokeSpec_v4_1.html
          32 kB
          Mamta A. Satoor
        14. grantRevokeSpec_v5.html
          32 kB
          Satheesh E. Bandaram

        Issue Links



              Unassigned Unassigned
              bandaram Satheesh E. Bandaram
              2 Vote for this issue
              0 Start watching this issue