authorize,proxy: remove support for paths within the from parameter

This commit is contained in:
Caleb Doxsey 2020-04-16 16:00:00 -06:00 committed by Caleb Doxsey
parent 5ad0e0ebdc
commit 85a1a6d013
5 changed files with 6 additions and 15 deletions

View file

@ -292,14 +292,6 @@ func TestRouteMatcherFuncFromPolicy(t *testing.T) {
"https://www.google.com", false,
"should not match when host is different from source host"},
// path prefix in source
{"https://www.example.com/admin", "", "", "",
"https://www.example.com/admin/someaction", true,
"should match when path begins with source path"},
{"https://www.example.com/admin", "", "", "",
"https://www.example.com/notadmin", false,
"should not match when path does not begin with source path"},
// path prefix
{"https://www.example.com", "/admin", "", "",
"https://www.example.com/admin/someaction", true,