Skip to content

Latest commit

 

History

History
120 lines (104 loc) · 5 KB

CHANGELOG.md

File metadata and controls

120 lines (104 loc) · 5 KB

Changelog

All breaking changes to this project will be documented in this file, most recent changes at the top.

0.5.0

In an effort to clean up the previous change and improve it, we re-modified the dynamic-delay and time-tracking filters to extricate their configuration entirely from nighthawk.server.ResponseOptions. The new configurations are:

If you are converting from the previous configuration with experimental_response_options, such as:

          http_filters:
          - name: time-tracking
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration
              experimental_response_options:
                emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
          - name: dynamic-delay
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration
              experimental_response_options:
                static_delay: 1.33s
          - name: test-server
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.ResponseOptions
              response_body_size: 10
              static_delay: 1.33s
              emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
              v3_response_headers:
              - { header: { key: "x-nh", value: "1"}}

You should now specify only fields related to each filter in their configuration, and you can do so at the top-level of those protos:

          http_filters:
          - name: time-tracking
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration
              emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
          - name: dynamic-delay
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration
              static_delay: 1.33s
          - name: test-server
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.ResponseOptions
              response_body_size: 10
              v3_response_headers:
              - { header: { key: "x-nh", value: "1"}}

This change does NOT affect how headers update the base configurations.

0.4.0

Due to upstream envoy change, we modified the dynamic-delay and time-tracking filters' configuration protos to have their own configuration protos wrapping nighthawk.server.ResponseOptions. DynamicDelayConfiguration and TimeTrackingConfiguration definitions can be found at the bottom of that file as well. .

For yaml bootstrap configuration files that defined filter configuration for the test-server, dynamic-delay, or time-tracking filters, if you previously had:

          http_filters:
          - name: time-tracking
          - name: dynamic-delay
          - name: test-server
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.ResponseOptions
              response_body_size: 10
              static_delay: 1.33s
              emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
              v3_response_headers:
              - { header: { key: "x-nh", value: "1"}}

You should now explicitly specify the types and values of the protos as such, wrapping the dynamic-delay and time-tracking configurations in a new field, experimental_response_options:

          http_filters:
          - name: time-tracking
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration
              experimental_response_options:
                emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
          - name: dynamic-delay
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration
              experimental_response_options:
                static_delay: 1.33s
          - name: test-server
            typed_config:
              "@type": type.googleapis.com/nighthawk.server.ResponseOptions
              response_body_size: 10
              static_delay: 1.33s
              emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta
              v3_response_headers:
              - { header: { key: "x-nh", value: "1"}}

This change does NOT affect how headers update the base configurations.