Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-6393

Decouple audit event creation from storage in AccessController

    XMLWordPrintableJSON

Details

    • Brainstorming
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 0.95.2
    • None
    • security
    • None

    Description

      Currently, AccessControler takes care of both generating audit events (by performing access checks) and storing them (by creating a log message and writing it to the AUDITLOG logger).

      This makes the logging system the only way to catch audit events. It means that if someone wants to do something fancier (like writing these records to a database somewhere), they need to hack through the logging system, and parse the messages generated by AccessController, which is not optimal.

      The attached patch decouples generation and storage by introducing a new interface, used by AccessController, to log the audit events. The current, log-based storage is kept in place so that current users won't be affected by the change.

      I'm filing this as an RFC at this point, so the patch is not totally clean; it's on top of HBase 0.92 (which is easier for me to test) and doesn't have any unit tests, for starters. But the changes should be very similar on trunk - I don't remember changes in this particular area of the code between those versions.

      Attachments

        1. HBASE-6393-v3.patch
          8 kB
          Matteo Bertozzi
        2. HBASE-6393-v2.patch
          16 kB
          Matteo Bertozzi
        3. hbase-6393-v1.patch
          15 kB
          Marcelo Masiero Vanzin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vanzin Marcelo Masiero Vanzin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: