Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-50452

UI doesn't correctly update Audit setting on removing disabled users

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • None
    • UI
    • None
    • Untriaged
    • 1
    • Unknown
    • UI 2022-Jan

    Description

      When the audit settings is changed from having a user under "Ignore Events From These Users" to not having a user - the UI should be sending us an empty list of "disabledUsers".

      For example:
      1) Add user "myuser/local" in the "Ignore Events From These Users" section.

      (n_0@127.0.0.1)3> ns_audit_cfg:read_config(ns_config:get()).
      {[{auditd_enabled,true},
        {disabled,[8255,20485,20488,20489,20490,20491,20493,28672,
                   28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,
                   28683,28684,28685,28686,28687,28688|...]},
        {disabled_users,[{"myuser",local}]},
        {enabled,[8243,8257,8265,20480,20482,20483,20492,20494,
                  32768,32769,32773,32774,32775,32776,32777,32778,32779,32781,
                  32784,32789,32790,32791|...]},
        {log_path,"/tmp"},
        {rotate_interval,86400},
        {rotate_size,20971520},
        {sync,[]}],
       [{log_path,"/Users/hareen.kancharla/cb/src-master-4/ns_server/logs/n_0"}]}
      

      2) Remove "myuser/local" - the disabled_users list is not modified because disabled_users key is not updated by the UI. i.e when the disable_users lists is empty in the UI an empty disable_users list must be send.

      n_0@127.0.0.1)4> ns_audit_cfg:read_config(ns_config:get()).
      {[{auditd_enabled,true},
        {disabled,[8255,20485,20488,20489,20490,20491,20493,28672,
                   28673,28674,28675,28676,28677,28678,28679,28680,28681,28682,
                   28683,28684,28685,28686,28687,28688|...]},
        {disabled_users,[{"myuser",local}]},
        {enabled,[8243,8257,8265,20480,20482,20483,20492,20494,
                  32768,32769,32773,32774,32775,32776,32777,32778,32779,32781,
                  32784,32789,32790,32791|...]},
        {log_path,"/tmp"},
        {rotate_interval,86400},
        {rotate_size,20971520},
        {sync,[]}],
       [{log_path,"/Users/hareen.kancharla/cb/src-master-4/ns_server/logs/n_0"}]}
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              matthew.dawber Matthew Dawber (Inactive)
              hareen.kancharla Hareen Kancharla
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty