Audit Events API - target ids are not real ids
Hello, My company has started parsing the Audit Events log using the new Audit Events API feature, as it is very critical for us to look and map what is happening in our Gitlab instance.
We have been trying to parse the target entities in the event and we have stumbled upon a weird behaviour where the target_id
is not an actual id of the entity within the Gitlab instance.
This behaviour differs for each of the target_type
s available in the system: either it is a User
, Group
or a Project
.
For User
target: the target_id
field contains an id which doesn't exist in the system. For example if our systems has 4 users, which their ids are 1, 2, 3, 4. The target_id might be the number of 17, which cannot be parsed into a real entity in the gitlab system.
For Group
or Project
targets: The target_id
field is actually the name of the Group or the Project, and is not an ID number.
Also, I suspect that the Gitlab system doesn't parse the target entities in its audit logs. Looking at the Audit Events in the Admin page, we can see that the Target object not clickable like the Author or the Entity objects in the table. This can also be shown in the Audit Events documentation page
Looking forward for your help,
Thank you, Idan.