From b0f259eff213214d08346cfb4789439d526a9790 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 29 Mar 2021 19:32:54 -0700 Subject: in safe-mode, allow index API methods without trailing slash If we allowed this in `unsafe_all_indices`, then all top-level API methods would be available, which we don't want. --- tests/files/safe_config.toml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/files/safe_config.toml (limited to 'tests/files/safe_config.toml') diff --git a/tests/files/safe_config.toml b/tests/files/safe_config.toml new file mode 100644 index 0000000..3df6acd --- /dev/null +++ b/tests/files/safe_config.toml @@ -0,0 +1,8 @@ + +bind_addr = "127.0.0.1:9292" +upstream_addr = "127.0.0.1:9200" +unsafe_all_indices = false +enable_cors = true + +[[index]] +name = "some-index" -- cgit v1.2.3