mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
Check allowed/denied/required params on read calls. (#4579)
We added support a bit ago for some read operations to take in parameters, so we should now apply these checks against them.
This commit is contained in:
parent
36f3f61ac5
commit
da367a6cb3
@ -334,7 +334,7 @@ CHECK:
|
||||
|
||||
// Only check parameter permissions for operations that can modify
|
||||
// parameters.
|
||||
if op == logical.UpdateOperation || op == logical.CreateOperation {
|
||||
if op == logical.ReadOperation || op == logical.UpdateOperation || op == logical.CreateOperation {
|
||||
for _, parameter := range permissions.RequiredParameters {
|
||||
if _, ok := req.Data[strings.ToLower(parameter)]; !ok {
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user