Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions test/e2e/valkeycluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,9 @@ CLUSTER MYID
CLUSTER MYSHARDID
CLUSTER NODES
CLUSTER FAILOVER
CONFIG GET maxmemory
INFO
ROLE
ROLE
EOF`,
clusterFqdn,
operatorPassword,
Expand Down Expand Up @@ -626,12 +627,16 @@ EOF`,
g.Expect(err).NotTo(HaveOccurred())
operatorPassword := string(decoded)

// CONFIG GET is intentionally absent: the _operator user is
// granted +config|get for auditability (#341), covered by the
// allowed-commands check above (+config|set is granted too,
// so neither CONFIG subcommand belongs here).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove this comment, I don't see why we would specifically call out CONFIG GET and not any of the other commands in this list.

disallowedCommands := []string{
"SET foo bar",
"GET foo",
"DEL foo",
"KEYS *",
"CONFIG GET *",
"FLUSHALL",
"ACL LIST",
}

Expand Down