feat(store): record accepted package authority against the pin
An archie package declares its authority; nothing in the tree recorded the
operator's acceptance of it. This lands the acceptance-record slice of
docs/prds/store.md ("Authority"):
- storepkg.Authority gains Covers (the upper-bound predicate: equal or
narrower applies, wider does not) and Validate (forge-permission
vocabulary, no blank grants).
- Installed carries AcceptedAuthority (nil until accepted); install leaves it
unset, so an unaccepted package has no authority.
- AcceptPackageAuthority on the storepkg Manager records the acceptance
against the pinned digest and refuses grants the package does not declare
(storepkg.ErrAuthorityNotDeclared), carried over the wire.
- staterpc gains the admin-only AcceptPackageAuthority RPC;
InstalledPackage carries accepted_authority.
This commit is contained in:
1 parent
c5a8942976
commit
bf68866dca
16 files changed
+1144
-377
No files matched your search
@@ -186,14 +186,15 @@ type IdentitySubject struct {
|
||||
}
|
||||
|
||||
type InstalledPackage struct {
|
||||
OrgID string
|
||||
Name string
|
||||
Reference string
|
||||
Digest string
|
||||
Descriptor []byte
|
||||
Layer []byte
|
||||
UpdatePolicy string
|
||||
InstalledAt time.Time
|
||||
OrgID string
|
||||
Name string
|
||||
Reference string
|
||||
Digest string
|
||||
Descriptor []byte
|
||||
Layer []byte
|
||||
UpdatePolicy string
|
||||
InstalledAt time.Time
|
||||
AcceptedAuthority []byte
|
||||
}
|
||||
|
||||
type InstalledPackageRequirement struct {
|
||||
|
||||
Reference in new issue
Block a user