<commit_before>## [Unreleased][unreleased]

### Changed

- The Kong DNS resolver now honors the `MAXNS` setting (3) when parsing the
  `resolv.conf` nameservers.
  [#2290](https://github.com/Mashape/kong/issues/2290)
- Admin API:
  - The "active targets" endpoint now only return the most recent nonzero
    weight Targets, instead of all nonzero weight targets. This is to provide
    a better picture of the Targets currently in use by the Kong load balancer.
    [#2310](https://github.com/Mashape/kong/pull/2310)
- Plugins:
  - key-auth: Allow setting API key header names with an underscore.
    [#2370](https://github.com/Mashape/kong/pull/2370)

### Added

- Ability for the client to chose whether the upstream request (Kong <->
  upstream) should contain a trailing slash in its URI. Prior to this change,
  Kong 0.10 would unconditionally append a trailing slash to all upstream
  requests. The added functionality is now described in
  [#2211](https://github.com/Mashape/kong/issues/2211), and was implemented in
  [#2315](https://github.com/Mashape/kong/pull/2315).
- Plugins:
  - :fireworks: **New Request termination plugin**. This plugin allows to
    temporarily disable an API and return a pre-configured response status and
    body to your client. Useful for use-cases such as maintenance mode for your
    upstream services. Thanks [<NAME>](https://github.com/pauldaustin)
    for the contribution.
    [#2051](https://github.com/Mashape/kong/pull/2051)
  - logging: Logging plugins now also log the `custom_id` or `username` of authenticated Consumers.
    [#2367](https://github.com/Mashape/kong/pull/2367)

### Fixed

- Handle a routing edge-case under some conditions with the `uris` matching
  rule of APIs that would falsely lead Kong into believing no API was matched for<commit_msg>docs(changelog) clarify new 'consumer' field in logging plugins<commit_after>## [Unreleased][unreleased]

### Changed

- The Kong DNS resolver now honors the `MAXNS` setting (3) when parsing the
  `resolv.conf` nameservers.
  [#2290](https://github.com/Mashape/kong/issues/2290)
- Admin API:
  - The "active targets" endpoint now only return the most recent nonzero
    weight Targets, instead of all nonzero weight targets. This is to provide
    a better picture of the Targets currently in use by the Kong load balancer.
    [#2310](https://github.com/Mashape/kong/pull/2310)
- Plugins:
  - key-auth: Allow setting API key header names with an underscore.
    [#2370](https://github.com/Mashape/kong/pull/2370)

### Added

- Ability for the client to chose whether the upstream request (Kong <->
  upstream) should contain a trailing slash in its URI. Prior to this change,
  Kong 0.10 would unconditionally append a trailing slash to all upstream
  requests. The added functionality is now described in
  [#2211](https://github.com/Mashape/kong/issues/2211), and was implemented in
  [#2315](https://github.com/Mashape/kong/pull/2315).
- Plugins:
  - :fireworks: **New Request termination plugin**. This plugin allows to
    temporarily disable an API and return a pre-configured response status and
    body to your client. Useful for use-cases such as maintenance mode for your
    upstream services. Thanks [Paul Austin](https://github.com/pauldaustin)
    for the contribution.
    [#2051](https://github.com/Mashape/kong/pull/2051)
  - Logging plugins: The produced logs now include a `consumer` field,
    which contains the properties of the authenticated Consumer
    (`id`, `custom_id`, and `username`), if any.
    [#2367](https://github.com/Mashape/kong/pull/2367)

### Fixed

- Handle a routing edge-case under some conditions with the `uris` matching
  rule of APIs that would falsely lead Kong into believing no API was matched for
{'fraction_non_alphanumeric': 0.09949454642192072, 'fraction_numerical': 0.03192338387869114, 'mean_word_length': 3.9086161879895562, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7336791', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1116, 'n_words': 426}