consul/agent/grpc-external
R.B. Boyer ef6f2494c7
resource: allow for the ACLs.Read hook to request the entire data payload to perform the authz check (#18925)
The ACLs.Read hook for a resource only allows for the identity of a 
resource to be passed in for use in authz consideration. For some 
resources we wish to allow for the current stored value to dictate how 
to enforce the ACLs (such as reading a list of applicable services from 
the payload and allowing service:read on any of them to control reading the enclosing resource).

This change update the interface to usually accept a *pbresource.ID, 
but if the hook decides it needs more data it returns a sentinel error 
and the resource service knows to defer the authz check until after
 fetching the data from storage.
2023-09-22 09:53:55 -05:00
..
limiter [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
services resource: allow for the ACLs.Read hook to request the entire data payload to perform the authz check (#18925) 2023-09-22 09:53:55 -05:00
testutils [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
forward.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
options.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
options_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
querymeta.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
querymeta_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
server.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
stats_test.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00
utils.go [COMPLIANCE] License changes (#18443) 2023-08-11 09:12:13 -04:00