Skip to content

Commit da39925

Browse files
trondndaverigby
authored andcommitted
Update domain description for audit
When adding support for filtering the UI only allows to specify two different domains (couchbase and external). Update the documentation for the audit events to match this. Note that internally the "couchbase" domain is referred as "local" (but the parser allows the aliases builtin and couchbase for now). Ideally we would change all occurrences to use a single name all over the product. Change-Id: Id5321d9ea975a173ffd07f181a1f3b15aeed35d7 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/182266 Tested-by: Trond Norbye <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent f0df688 commit da39925

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

auditd/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,9 @@ below:
235235
* timestamp - Contains the date and time of the event, in ISO 8601 format.
236236
Uses local time with timezone offset (from UTC) in hours and minutes.
237237
Records microsecond granularity using 3 digits after decimal point.
238-
* real_userid - comprises of a "domain", which states where the user is
239-
defined, e.g. internal, ldap or ad. It then contains the user string.
238+
* real_userid - comprises a "domain", which states where the user is
239+
defined: "local" (in Couchbase) or "external" (outside Couchbase; LDAP etc).
240+
It then contains the user string.
240241

241242
Note: In version 2 the real_user_id has been changed from
242243
`{"source" : "", "user" : ""}` to `{"domain" : "", "user" : ""}`.
@@ -321,18 +322,18 @@ be as follows:
321322

322323
{
323324
"timestamp" : "2014-11-05T13:15:30Z",
324-
"real_userid" : {"domain": "internal", "user" : "_admin"}
325+
"real_userid" : {"domain": "local", "user" : "@ns_server"}
325326
}
326327

327328
If the event contained also contained the additional 3 pre-defined
328329
optional fields then an example payload would be as follows:
329330

330331
{
331332
"timestamp" : "2014-11-05T13:15:30Z",
332-
"real_userid" : {"domain": "internal", "user" : "_admin"},
333+
"real_userid" : {"domain": "local", "user" : "@ns_server"},
333334
"sessionID" : "SID:ANON:www.w3.org:j6oAOxCWZh/CD723LGeXlf-01:34",
334335
"remote" : {"ip": "127.0.0.1", "port" : 11210"},
335-
"effective_userid" : {"domain": "ldap", "user" : "joeblogs"},
336+
"effective_userid" : {"domain": "external", "user" : "joeblogs"},
336337
}
337338

338339

@@ -380,7 +381,7 @@ An example verison 2 configuration is presented below.
380381
"buffered": true,
381382
"log_path": "/var/lib/couchbase/logs",
382383
"event_states" : {"1234" : "enabled", "5678" : "disabled"}
383-
"disabled_userids": [{"domain" : "internal, "user" : "joeblogs"}],
384+
"disabled_userids": [{"domain" : "local, "user" : "joeblogs"}],
384385
"sync": []
385386
}
386387

@@ -395,13 +396,13 @@ filtered out. The domain must match the "domain" component from a real_userid
395396
or effective_userid, and the user must match the "user" component.
396397
For example given the following:
397398

398-
"real_userid" : {"domain": "internal", "user" : "joeblogs"}
399-
"effective_userid" : {"domain": "ldap", "user" : "joeblogs"},
399+
"real_userid" : {"domain": "local", "user" : "joeblogs"}
400+
"effective_userid" : {"domain": "external", "user" : "joeblogs"},
400401

401-
If it was decided to filter out the events from {"domain" : "internal",
402+
If it was decided to filter out the events from {"domain" : "local",
402403
"user" : "joeblogs"} then the disabled_userids list would be as follows:
403404

404-
"disabled_userids": [{"domain" : "internal", "user" : "joeblogs"}]
405+
"disabled_userids": [{"domain" : "local", "user" : "joeblogs"}]
405406

406407
Finally, an event will only be filtered if its "filtering_permitted" attribute
407408
is set to true in the definition of the event. If the event does not contain

0 commit comments

Comments
 (0)