|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All breaking changes to this project will be documented in this file, most |
| 4 | +recent changes at the top. |
| 5 | + |
| 6 | +## 0.5.0 |
| 7 | + |
| 8 | +In an effort to clean up the previous change and improve it, we re-modified the |
| 9 | +dynamic-delay and time-tracking filters to extricate their configuration |
| 10 | +entirely from |
| 11 | +[nighthawk.server.ResponseOptions](https://github.com/envoyproxy/nighthawk/blob/main/api/server/response_options.proto). The new configurations are: |
| 12 | + |
| 13 | +- [nighthawk.server.DynamicDelayConfiguration](https://github.com/envoyproxy/nighthawk/blob/main/api/server/dynamic_delay.proto) |
| 14 | +- [nighthawk.server.TimeTrackingConfiguration](https://github.com/envoyproxy/nighthawk/blob/main/api/server/time_tracking.proto) |
| 15 | + |
| 16 | +If you are converting from the previous configuration with |
| 17 | +`experimental_response_options`, such as: |
| 18 | + |
| 19 | +``` |
| 20 | + http_filters: |
| 21 | + - name: time-tracking |
| 22 | + typed_config: |
| 23 | + "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration |
| 24 | + experimental_response_options: |
| 25 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 26 | + - name: dynamic-delay |
| 27 | + typed_config: |
| 28 | + "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration |
| 29 | + experimental_response_options: |
| 30 | + static_delay: 1.33s |
| 31 | + - name: test-server |
| 32 | + typed_config: |
| 33 | + "@type": type.googleapis.com/nighthawk.server.ResponseOptions |
| 34 | + response_body_size: 10 |
| 35 | + static_delay: 1.33s |
| 36 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 37 | + v3_response_headers: |
| 38 | + - { header: { key: "x-nh", value: "1"}} |
| 39 | +``` |
| 40 | + |
| 41 | +You should now specify only fields related to each filter in their |
| 42 | +configuration, and you can do so at the top-level of those protos: |
| 43 | + |
| 44 | +``` |
| 45 | + http_filters: |
| 46 | + - name: time-tracking |
| 47 | + typed_config: |
| 48 | + "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration |
| 49 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 50 | + - name: dynamic-delay |
| 51 | + typed_config: |
| 52 | + "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration |
| 53 | + static_delay: 1.33s |
| 54 | + - name: test-server |
| 55 | + typed_config: |
| 56 | + "@type": type.googleapis.com/nighthawk.server.ResponseOptions |
| 57 | + response_body_size: 10 |
| 58 | + v3_response_headers: |
| 59 | + - { header: { key: "x-nh", value: "1"}} |
| 60 | +``` |
| 61 | + |
| 62 | +This change does NOT affect how headers update the base configurations. |
| 63 | + |
| 64 | +## 0.4.0 |
| 65 | + |
| 66 | +Due to |
| 67 | +[upstream envoy change](https://github.com/envoyproxy/nighthawk/commit/4919c54202329adc3875eb1bce074af33d54e26d), |
| 68 | +we modified the dynamic-delay and time-tracking filters' configuration protos |
| 69 | +to have their own configuration protos wrapping |
| 70 | +[nighthawk.server.ResponseOptions]([nighthawk.server.ResponseOptions](https://github.com/envoyproxy/nighthawk/blob/0.4.0/api/server/response_options.proto)). |
| 71 | +DynamicDelayConfiguration and TimeTrackingConfiguration definitions can be |
| 72 | +found at the bottom of that file as well. |
| 73 | +. |
| 74 | + |
| 75 | +For yaml bootstrap configuration files that defined |
| 76 | +[filter configuration](https://github.com/envoyproxy/nighthawk/blob/main/source/server/README.md#nighthawk-test-server) |
| 77 | +for the `test-server`, `dynamic-delay`, or `time-tracking` filters, if you |
| 78 | +previously had: |
| 79 | + |
| 80 | +``` |
| 81 | + http_filters: |
| 82 | + - name: time-tracking |
| 83 | + - name: dynamic-delay |
| 84 | + - name: test-server |
| 85 | + typed_config: |
| 86 | + "@type": type.googleapis.com/nighthawk.server.ResponseOptions |
| 87 | + response_body_size: 10 |
| 88 | + static_delay: 1.33s |
| 89 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 90 | + v3_response_headers: |
| 91 | + - { header: { key: "x-nh", value: "1"}} |
| 92 | +``` |
| 93 | + |
| 94 | +You should now explicitly specify the types and values of the protos as such, |
| 95 | +wrapping the `dynamic-delay` and `time-tracking` configurations in a new field, |
| 96 | +`experimental_response_options`: |
| 97 | + |
| 98 | +``` |
| 99 | + http_filters: |
| 100 | + - name: time-tracking |
| 101 | + typed_config: |
| 102 | + "@type": type.googleapis.com/nighthawk.server.TimeTrackingConfiguration |
| 103 | + experimental_response_options: |
| 104 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 105 | + - name: dynamic-delay |
| 106 | + typed_config: |
| 107 | + "@type": type.googleapis.com/nighthawk.server.DynamicDelayConfiguration |
| 108 | + experimental_response_options: |
| 109 | + static_delay: 1.33s |
| 110 | + - name: test-server |
| 111 | + typed_config: |
| 112 | + "@type": type.googleapis.com/nighthawk.server.ResponseOptions |
| 113 | + response_body_size: 10 |
| 114 | + static_delay: 1.33s |
| 115 | + emit_previous_request_delta_in_response_header: x-origin-request-receipt-delta |
| 116 | + v3_response_headers: |
| 117 | + - { header: { key: "x-nh", value: "1"}} |
| 118 | +``` |
| 119 | + |
| 120 | +This change does NOT affect how headers update the base configurations. |
0 commit comments