Michael Schurter
ae61f7308d
Fix HTTP code for permission denied errors
...
Fixes #3697
The existing code and test case only covered the leader behavior. When
querying against non-leaders the error has an "rpc error: " prefix.
To provide consistency in HTTP error response I also strip the "rpc
error: " prefix for 403 responses as they offer no beneficial additional
information (and in theory disclose a tiny bit of data to unauthorized
users, but it would be a pretty weird bit of data to use in a malicious
way).
2018-01-09 15:25:53 -08:00
..
2017-11-02 11:27:21 -07:00
2017-12-19 15:50:23 -08:00
2015-12-04 17:12:47 -08:00
2017-10-13 13:12:20 -07:00
2017-10-13 13:12:20 -07:00
2017-10-13 16:25:25 -07:00
2017-10-13 16:25:25 -07:00
2017-11-14 17:53:23 -08:00
2017-12-12 10:17:16 -06:00
2017-11-29 17:26:11 -08:00
2017-11-17 14:53:26 -06:00
2017-12-11 17:30:37 -08:00
2017-10-23 16:48:20 -07:00
2017-12-12 10:17:16 -06:00
2017-11-02 11:27:21 -07:00
2017-11-14 17:53:23 -08:00
2017-12-12 10:17:16 -06:00
2017-12-12 10:17:16 -06:00
2017-11-17 14:53:26 -06:00
2017-11-17 14:53:26 -06:00
2017-07-20 09:36:34 -07:00
2015-09-07 10:03:10 -07:00
2017-10-09 11:19:14 -07:00
2017-11-30 21:30:20 -08:00
2017-10-13 14:36:02 -07:00
2018-01-09 15:25:53 -08:00
2018-01-09 15:25:53 -08:00
2017-12-08 12:03:00 -08:00
2017-12-08 12:03:00 -08:00
2017-10-23 16:48:20 -07:00
2016-10-17 10:48:04 -07:00
2017-07-20 09:36:34 -07:00
2015-08-16 13:54:49 -07:00
2017-07-20 09:36:34 -07:00
2017-09-26 15:26:33 -07:00
2017-10-23 18:38:36 -07:00
2017-09-13 19:21:21 +00:00
2017-11-17 14:53:26 -06:00
2017-11-17 14:53:26 -06:00
2017-07-20 09:36:34 -07:00
2017-09-07 17:04:21 -07:00
2017-07-20 09:36:34 -07:00
2015-11-24 09:38:07 -08:00
2017-08-21 15:20:55 +00:00
2017-09-07 17:04:21 -07:00
2017-10-09 12:02:32 -07:00
2017-10-09 12:02:32 -07:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2017-09-19 10:08:23 -05:00
2017-07-20 09:36:34 -07:00
2017-07-30 08:56:40 -05:00
2017-07-20 09:36:34 -07:00
2016-08-03 16:12:47 -07:00
2017-10-23 16:51:40 -07:00