Make PermissionDeniedError struct more detailed #12239
Labels
theme/acls
ACL and token generation
theme/internal-cleanup
Used to identify tech debt, testing improvements, code refactoring, and non-impactful optimization
The PermissionDeniedError struct is contains only simple text string created at the time of error generation. We'd like to make that data structured to allow better user messages.
Currently we have
In many cases we have detailed information about the reason for rejection and would like to capture that.
We should extend with this info. Not all PermissionDenied errors fit that template, so we should create a new structure to capture this.
The acl.PermissionDenied helper function usage should also be examined to see where we need to convert to the new form.
A string conversion function similar to what PermissionDeniedError has should be added.
https://github.com/hashicorp/consul-enterprise/pull/1533
The text was updated successfully, but these errors were encountered: