[go: up one dir, main page]

Skip to content

Commit

Permalink
issue-5714 - incorrect _cache_key generation fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Sekar Saravanan <sekar.saravanan@hotstar.com>
  • Loading branch information
sekar-saravanan authored and kflynn committed Jul 5, 2024
1 parent 5f7ac30 commit e8ca650
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ it will be removed; but as it won't be user-visible this isn't considered a brea
starting. This will help address some of the intermittent issues seen during install and
upgrades.

- Bugfix: _cache_key is getting generated incorrectly for mappings in ir.json, when using header
with regex in mapping. Always, It should be in the format of {kind}-{version}-{name}-{namespace}.
But header name is getting updated in the place of mapping name, if we created mapping with regex
header.


## [3.8.0] August 29, 2023
[3.8.0]: https://github.com/emissary-ingress/emissary/compare/v3.7.2...v3.8.0

Expand Down
4 changes: 2 additions & 2 deletions python/ambassador/ir/irhttpmapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ def __init__(
if "regex_headers" in kwargs:
# DON'T do anything special with a regex :authority match: we can't
# do host-based filtering within the IR for it anyway.
for name, value in kwargs.get("regex_headers", {}).items():
hdrs.append(KeyValueDecorator(name, value, regex=True))
for hdr_name, hdr_value in kwargs.get("regex_headers", {}).items():
hdrs.append(KeyValueDecorator(hdr_name, hdr_value, regex=True))

if "host" in kwargs:
# It's deliberate that we'll allow kwargs['host'] to silently override an exact :authority
Expand Down

0 comments on commit e8ca650

Please sign in to comment.