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
It would indeed be nice to have a new API for modifying though.
The spec says
The rolename MUST be unique in the delegations object: multiple roles with the same rolename are not allowed within a DELEGATIONS.
(ref)
and I think enforcing this in AddDelegatedRoleWithExpires with an error is clearer than implicitly updating. I think we should have separate UpdateDelegatedRole... functions for modification.
If a user adds a delegation with a repeated name, but with different properties (e.g. Updates it), then it will catch on this error:
go-tuf/repo.go
Lines 559 to 563 in 355e39c
@ethan-lowman-dd WDYT?
The text was updated successfully, but these errors were encountered: