- Notifications
You must be signed in to change notification settings - Fork927
chore: More UI friendly errors#1994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
352b86a
7f9b66a
46b52d5
1592d08
6b08a08
1b3947f
deb5cf1
5e34b5f
f355dff
6566e83
fed7b7f
5c4ec92
e373a06
73ffa22
5d59312
a8e78bb
ee2f547
4a5d03a
8259e51
819f2e1
1116f94
102a01f
af169f0
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -21,9 +21,7 @@ func (api *API) Authorize(rw http.ResponseWriter, r *http.Request, action rbac.A | ||
roles := httpmw.AuthorizationUserRoles(r) | ||
err := api.Authorizer.ByRoleName(r.Context(), roles.ID.String(), roles.Roles, action, object.RBACObject()) | ||
if err != nil { | ||
httpapi.Forbidden(rw) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. question: what allowed us to make this change? Does it mean that we no longer send those random There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. @vapurrmaid for security reasons all forbidden messages should be identical. If they were different, then the different errors allow the end user to gain information. There is a line of "security" vs "usability" that we will need to decide on these endpoints. As it's unhelpful by design. | ||
// Log the errors for debugging | ||
internalError := new(rbac.UnauthorizedError) | ||
Uh oh!
There was an error while loading.Please reload this page.