open-consul/acl
Mark Anderson fa95afdcf6 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
chained_authorizer.go
chained_authorizer_test.go
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
policy_authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_authorizer_test.go
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
static_authorizer_test.go