consul/acl
Mark Anderson 1a16f7ee70 Refactor to make ACL errors more structured. (#12308)
* First phase of refactoring PermissionDeniedError

Add extended type PermissionDeniedByACLError that captures information
about the accessor, particular permission type and the object and name
of the thing being checked.

It may be worth folding the test and error return into a single helper
function, that can happen at a later date.

Signed-off-by: Mark Anderson <manderson@hashicorp.com>
2022-02-11 12:53:23 -08:00
..
acl.go Rename partition-exports to exported-services 2021-12-03 17:47:31 -07:00
acl_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
acl_test.go acl: remove id and revision from Policy constructors 2021-11-05 15:45:08 -04:00
authorizer.go acl: remove id and revision from Policy constructors 2021-11-05 15:45:08 -04:00
authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
authorizer_test.go Prefer concrete policyAuthorizer type 2021-10-27 12:50:19 -06:00
chained_authorizer.go Prefer concrete policyAuthorizer type 2021-10-27 12:50:19 -06:00
chained_authorizer_test.go Prefer concrete policyAuthorizer type 2021-10-27 12:50:19 -06:00
errors.go Refactor to make ACL errors more structured. (#12308) 2022-02-11 12:53:23 -08:00
errors_oss.go Refactor to make ACL errors more structured. (#12308) 2022-02-11 12:53:23 -08:00
errors_test.go Refactor to make ACL errors more structured. (#12308) 2022-02-11 12:53:23 -08:00
policy.go acl: remove id and revision from Policy constructors 2021-11-05 15:45:08 -04:00
policy_authorizer.go Prefer concrete policyAuthorizer type 2021-10-27 12:50:19 -06:00
policy_authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_authorizer_test.go acl: adding a new mesh resource 2021-09-03 09:12:03 -04:00
policy_merger.go acl: remove id and revision from Policy constructors 2021-11-05 15:45:08 -04:00
policy_merger_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_test.go bulk rewrite using this script 2022-01-20 10:46:23 -06:00
static_authorizer.go Prefer concrete policyAuthorizer type 2021-10-27 12:50:19 -06:00
static_authorizer_test.go acl: remove t.Parallel 2020-11-17 12:37:02 -05:00