9494 "systemd-coredump" : [
9595 {"groupname" : "systemd-coredump" , "username" : "systemd-coredump" }
9696 ],
97+ "gandalf" : [
98+ {"groupname" : "gandalf" , "username" : "gandalf" },
99+ {"groupname" : "admin" , "username" : "gandalf" },
100+ {"groupname" : "salt" , "username" : "gandalf" },
101+ ],
97102}
98103
99104# postgresql.service is expected to mount /etc as read-only
100105expected_mount = "/etc ro"
101106
107+
102108# This program depends on osquery being installed on the system
103109# Function to run osquery
104110def run_osquery (query ):
@@ -154,6 +160,7 @@ def check_nixbld_users():
154160
155161 print ("All nixbld users are in the 'nixbld' group." )
156162
163+
157164def check_postgresql_mount ():
158165 # processes table has the nix .postgres-wrapped path as the
159166 # binary path, rather than /usr/lib/postgresql/bin/postgres which
@@ -182,6 +189,7 @@ def check_postgresql_mount():
182189
183190 print ("postgresql.service mounts /etc as read-only." )
184191
192+
185193def main ():
186194 parser = argparse .ArgumentParser (
187195 prog = "Supabase Postgres Artifact Permissions Checker" ,
@@ -234,6 +242,7 @@ def main():
234242 "postgrest" ,
235243 "tcpdump" ,
236244 "systemd-coredump" ,
245+ "gandalf" ,
237246 ]
238247 if not qemu_artifact :
239248 usernames .append ("ec2-instance-connect" )
@@ -251,5 +260,6 @@ def main():
251260 # Check if postgresql.service is using a read-only mount for /etc
252261 check_postgresql_mount ()
253262
263+
254264if __name__ == "__main__" :
255265 main ()
0 commit comments