Joey
10/21/2022, 3:11 PMJoey
10/21/2022, 3:11 PMphroggyy
10/21/2022, 3:12 PMJoey
10/21/2022, 3:12 PMphroggyy
10/21/2022, 4:32 PMserviceaccount
and prefix
objects, and binds service accounts to be readers/writers on prefixes. Does this seem a sensible way of authorising the proxyingJoey
10/21/2022, 4:33 PMJoey
10/21/2022, 4:33 PMphroggyy
10/21/2022, 4:33 PMphroggyy
10/21/2022, 4:34 PMphroggyy
10/21/2022, 4:34 PMJoey
10/21/2022, 4:34 PMJoey
10/21/2022, 4:34 PMJoey
10/21/2022, 4:35 PMJoey
10/21/2022, 4:35 PMphroggyy
10/21/2022, 4:39 PMJoey
10/21/2022, 4:40 PMJoey
10/21/2022, 4:40 PMchance
10/21/2022, 4:43 PMtype user {}
type district {
relation admin: user
}
type site {
relation district
relation site_admin: user // <- is it possible to limit this down to a user must be an admin of district?
}
Joey
10/21/2022, 4:45 PMJoey
10/21/2022, 4:46 PMdefinition user {}
definition district {
relation admin: user
}
definition site {
relation district: district
relation site_admin: user
permission can_view_site = site_admin & district->admin
}
chance
10/21/2022, 4:46 PMJoey
10/21/2022, 4:46 PMJoey
10/21/2022, 4:46 PMJoey
10/21/2022, 4:46 PMJoey
10/21/2022, 4:46 PMrelation site_admin: district#admin
Joey
10/21/2022, 4:46 PMchance
10/21/2022, 4:47 PMJoey
10/21/2022, 4:47 PMpermission can_view_site = district->admin
Joey
10/21/2022, 4:47 PMchance
10/21/2022, 4:49 PM