Skip to content

Commit e32327d

Browse files
authored
feat: add capability assert/* to requested capabilities (#141)
Ensure that guppy users can always publish directly to the indexer.
1 parent 3001245 commit e32327d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/client/requestaccess.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
// spaceAccess is the set of capabilities required by the agent to manage a
1212
// space.
1313
var spaceAccess = []access.CapabilityRequest{
14+
{Can: "assert/*"},
1415
{Can: "space/*"},
1516
{Can: "blob/*"},
1617
{Can: "index/*"},

pkg/client/requestaccess_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func TestRequestAccess(t *testing.T) {
6767
require.ElementsMatch(
6868
t,
6969
[]string{
70+
"assert/*",
7071
"space/*",
7172
"blob/*",
7273
"index/*",

0 commit comments

Comments
 (0)