apply security patch: release-10.4.18/369-202504020741.patch

commit c0f0d89a6b403c209b189704873b9d3502a81234
Author: Andres Martinez Gotor <andres.martinez@grafana.com>
Date:   Mon Mar 31 12:15:52 2025 +0200

    Sanitize paths before evaluating access to route
This commit is contained in:
github-actions[bot]
2025-04-22 18:19:03 +00:00
parent 9150818fbc
commit 86cbbaf6c1
2 changed files with 17 additions and 1 deletions
+8
View File
@@ -230,6 +230,14 @@ func TestDataSourceProxy_routeRule(t *testing.T) {
err = proxy.validateRequest()
require.NoError(t, err)
})
t.Run("path with slashes and user is editor", func(t *testing.T) {
ctx, _ := setUp()
proxy, err := setupDSProxyTest(t, ctx, ds, routes, "//api//admin")
require.NoError(t, err)
err = proxy.validateRequest()
require.Error(t, err)
})
})
})