Audit Event proposal: Enable Admin Mode
Audit need
We provide the Admin mode so that instance admins can use their accounts as regular users, unless they require access to the admin panel.
Given that, "Enable admin mode" is an action which elevates permissions. It opens access to private resources or potentially dangerous settings, and therefore should be auditable.
Proposal
Emit an instance-level audit event whenever a user enables admin mode. Currently, the code only writes a debug-level log entry.
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Jan Kunzmann added Category:Audit Events groupcompliance typefeature labels
added Category:Audit Events groupcompliance typefeature labels
- Jan Kunzmann assigned to @stkerr
assigned to @stkerr
- Sam Kerr added audit_eventsuser_permissions label
added audit_eventsuser_permissions label
- Sam Kerr added Next Up priority3 workflowplanning breakdown labels
added Next Up priority3 workflowplanning breakdown labels
- Ricardo Amarilla added to epic &476
added to epic &476
- Ricardo Amarilla mentioned in epic &476
mentioned in epic &476
- Maintainer
Setting label(s) devopsmanage sectiondev based on groupcompliance.
- 🤖 GitLab Bot 🤖 added devopsmanage sectiondev labels
added devopsmanage sectiondev labels
- Nate Rosandich removed Next Up label
removed Next Up label
- 🤖 GitLab Bot 🤖 added devopsgovern sectionsec labels and removed devopsmanage sectiondev labels
added devopsgovern sectionsec labels and removed devopsmanage sectiondev labels
- Nate Rosandich changed milestone to %Backlog
changed milestone to %Backlog
- Hannah Sutor added groupauthentication and authorization [DEPRECATED] label and removed groupcompliance label
added groupauthentication and authorization [DEPRECATED] label and removed groupcompliance label
- 🤖 GitLab Bot 🤖 added devopsmanage sectiondev labels and removed devopsgovern sectionsec labels
added devopsmanage sectiondev labels and removed devopsgovern sectionsec labels
- Hannah Sutor removed priority3 label
removed priority3 label
- Hannah Sutor changed milestone to %15.7
changed milestone to %15.7
- Hannah Sutor removed audit_eventsuser_permissions label
removed audit_eventsuser_permissions label
- Maintainer
We need an
ee
override ofAuth::CurrentUserMode#enable_admin_mode!
creating aAuditEvent
. I am assigning a weight of2
.@bdenkovych, could you please review my estimation?
Collapse replies - Maintainer
First, I was curious why we want to do it in
ee/
then I learned that Instance events belongs to the Premium tier. So I agree it should be inee/
Since we completely understand where and how we want to instrument new Audit Event, weighing it as
2
looks appropriate. We will also need to update documentation in https://docs.gitlab.com/ee/administration/audit_events.html#instance-events
- Imre Farkas added workflowready for development label and removed workflowplanning breakdown label
added workflowready for development label and removed workflowplanning breakdown label
- Imre Farkas set weight to 2
set weight to 2
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#9972 (closed)
mentioned in issue gitlab-org/quality/triage-reports#9972 (closed)
- Sanad Liaquat added quad-planningcomplete-no-action label
added quad-planningcomplete-no-action label
- Ben Prescott_ marked this issue as related to #353839 (closed)
marked this issue as related to #353839 (closed)
- Ben Prescott_ mentioned in issue #353839 (closed)
mentioned in issue #353839 (closed)
- Ben Prescott_ marked #353839 (closed) as a duplicate of this issue
marked #353839 (closed) as a duplicate of this issue
- Bogdan Denkovych removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Bogdan Denkovych mentioned in commit 7621c6d8
mentioned in commit 7621c6d8
- Bogdan Denkovych mentioned in commit b3bf929c
mentioned in commit b3bf929c
- Bogdan Denkovych mentioned in merge request !104754 (merged)
mentioned in merge request !104754 (merged)
- Bogdan Denkovych mentioned in commit 5db2220a
mentioned in commit 5db2220a
- Bogdan Denkovych mentioned in commit 410224fe
mentioned in commit 410224fe
- Bogdan Denkovych mentioned in commit 1e6dd2a2
mentioned in commit 1e6dd2a2
- Bogdan Denkovych mentioned in commit 137ebc3a
mentioned in commit 137ebc3a
- Bogdan Denkovych added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Bogdan Denkovych mentioned in commit d5536698
mentioned in commit d5536698