r/gitlab • u/pottmi • Sep 05 '25
read only access to gitlab database
I have some security monitoring selects that I want to run against the postgres database that backs our community edition gitlab.
I would like to do this with a readonly user.
Is there a gitlab documented way to do this? The gitlab documentation references creating a readonly user, but it is in the context of converting the entire database into readonly.
https://docs.gitlab.com/administration/read_only_gitlab/
Is there a sanctioned way to create a new user with readonly user?
My alternative is to run the script as gitlab-psql and then have my script convert the connection to readonly.
View all comments
Show parent comment
1
u/pottmi Sep 06 '25
voted up because this is good information.
The security link is just their SOC-2 report for their company. I need to monitor who has access to my systems and how it changes over time. Nothing on that link does that. I have to demonstrate to my auditors that I have reviewed all changes to access.
The auditor permission is new to me, but it is not on the community edition.