Skip to content

Log access to classification label and project

Bob Van Landuyt requested to merge bvl-external-auth-logging into master

What does this MR do?

This adds an extra logfile tracking all accesses to a classification label and project when external policy control is enabled.

This is what the log looks like:

I, [2018-03-27T15:07:51.116186 #42646]  INFO -- : GRANTED adrien@terry.name access to 'default-label' (test-for-forks/eyooo) - cache 2018-03-27 12:31:01 +0200
I, [2018-03-27T15:07:51.745906 #42645]  INFO -- : DENIED adrien@terry.name access to 'overridden-label' (h5bp/html5-boilerplate)
I, [2018-03-27T15:07:52.052447 #42645]  INFO -- : DENIED adrien@terry.name access to 'another-label' (reported_user_22/test-creation)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/4785

Edited by Bob Van Landuyt

Merge request reports