You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if Repository.get_delegating_role(role: str) -> str would be useful
In my implementations I end up looking up the delegating role of a role quite a lot.
if this existed, Repository could also offer QOL things like Repository.get_verification_result(role, md)
The reason this does not exist is that we can't really provide a fully generic implementation: Repository does not maintain a delegation tree. So we could
Require all Repository implementations to provide the method OR
Provide a default implementation that assumes max one level of targets delegations (and require more complex implementations to provide their own) OR
Provide a default implementation that adds a delegation tree into Repository
The text was updated successfully, but these errors were encountered:
jku
changed the title
repository: maybe provide a Repository.get_delegate_role()
repository: maybe provide a Repository.get_delegating_role()
Feb 9, 2024
Oh this is going to be a nightmare if we allow "diamond" delegation structure (mutliple roles in different delegating metadata delegating to same name)
I wonder if
Repository.get_delegating_role(role: str) -> str
would be usefulRepository.get_verification_result(role, md)
The reason this does not exist is that we can't really provide a fully generic implementation:
Repository
does not maintain a delegation tree. So we couldRepository
implementations to provide the method ORRepository
The text was updated successfully, but these errors were encountered: