Allow all authenticated users to push/pull (not just human+user role)

The previous default policy required both AccountTypes=["human"] and
Roles=["user"], but MCIAS validate responses don't reliably include
these fields. For a private registry, any successfully authenticated
caller should have content access. Admin-only operations (policy
management) still require the admin role.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 23:02:53 -07:00
parent fa35899443
commit c67601c7f6
3 changed files with 51 additions and 38 deletions

View File

@@ -23,12 +23,10 @@ func DefaultRules() []Rule {
Actions: allActions,
},
{
ID: -2,
Priority: 0,
Description: "human users have full content access",
Effect: Allow,
Roles: []string{"user"},
AccountTypes: []string{"human"},
ID: -2,
Priority: 0,
Description: "authenticated users have full content access",
Effect: Allow,
Actions: []Action{
ActionPull,
ActionPush,