File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525def _parse_app_read_members () -> list [str ]:
2626 members = os .environ .get ("APP_READ_MEMBERS" , "" )
2727 parsed = [member .strip () for member in members .split ("," ) if member .strip ()]
28- # pygeoapi should always inherit the default read role.
28+ # NOTE: The "pygeoapi" database role is always added to APP_READ_MEMBERS.
29+ # This ensures the pygeoapi integration consistently inherits the default
30+ # read role ("app_read"), even if administrators do not list it explicitly
31+ # in the APP_READ_MEMBERS environment variable. When reviewing database
32+ # permissions or configuring roles, be aware that "pygeoapi" will always
33+ # receive read access via app_read if the role exists in the database.
2934 if "pygeoapi" not in {member .lower () for member in parsed }:
3035 parsed .append ("pygeoapi" )
3136 return parsed
You can’t perform that action at this time.
0 commit comments