Re:Distributed Authorization
by samjs on Tuesday April 16, 2024 @12:42PM
(#40054197)
This sounds really elegant, I love it. Have you seen this deployed in a service-oriented architecture or primarily integrated as part of a single app/db?
[ Parent
| on HN ]
Re:Distributed Authorization
by withinboredom on Tuesday April 16, 2024 @01:21PM
(#40054677)
Both. Usually the service has a table of "shares" and the owner(s) attached to the actual row. Thus determining if a user has a right to do something looks like this:
select 1 from kites k
join shares s on (s.model = 'kites' and :operation in s.rights)
where :user in k.owner or s.user = :user
or something like that.