From b5c76a0528726f0180c9c08b2b8474a6d25dca6d Mon Sep 17 00:00:00 2001 From: Sotiris Nanopoulos Date: Thu, 28 Sep 2023 12:09:40 -0400 Subject: [PATCH] update changelog Signed-off-by: Sotiris Nanopoulos --- changelogs/unreleased/5752-davinci26-major.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelogs/unreleased/5752-davinci26-major.md b/changelogs/unreleased/5752-davinci26-major.md index 0eb1641d65a..de420dff378 100644 --- a/changelogs/unreleased/5752-davinci26-major.md +++ b/changelogs/unreleased/5752-davinci26-major.md @@ -4,6 +4,7 @@ Envoy greedy matches routes and as a result the order route matches are presente This changes fixes the sorting algorithm used for `Prefix` and `Regex` based path matching. Previously the algorithm lexicographically sorted based on the path match string instead of sorting them based on the length of the `Prefix`|`Regex`. i.e. Longer prefix/regexes will be sorted first in order to give preference to more specific routes, then lexicographic sorting for things of the same length. +Note that for prefix matching, this change is _not_ expected to change the relative ordering of more specific prefixes vs. less specific ones when the more specific prefix match string has the less specific one as a prefix, e.g. `/foo/bar` will continue to sort before `/foo`. However, relative ordering of other combinations of prefix matches may change per the above description. ### How to update safely Caution is advised if you update Contour and you are operating large routing tables. We advise you to: