Skip to content

Remove extra quotes for strings in metadata formatter - #16736

Merged
yanavlasov merged 1 commit into
envoyproxy:mainfrom
itamarkam:main
Jun 8, 2021
Merged

yanavlasov merged 1 commit into
envoyproxy:mainfrom
itamarkam:main

Conversation

@itamarkam

@itamarkam itamarkam commented May 31, 2021 •

Copy link
Copy Markdown
Contributor

Commit Message: Remove extra quotes for strings in metadata formatter
Additional Description: string values in metadata are handled the same way objects are, which adds escaped quotes around them. This change removes these extra quotes (with a runtime flag "unquote_log_string_values").
Risk Level: Low - will change logging behavior for string metadata values, but flag protected.
Testing: Unit tests.
Docs Changes: N/A
Release Notes: access_log: remove extra quotes on metadata string values. This behavior can be temporarily reverted by setting envoy.reloadable_features.unquote_log_string_values to false.
Platform Specific Features:
[Optional Runtime guard:] unquote_log_string_values runtime flag (defaults to new behavior)
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

@itamarkam
itamarkam marked this pull request as ready for review May 31, 2021 13:36
@itamarkam

Copy link
Copy Markdown
Contributor Author

/assign htuch

@itamarkam

Copy link
Copy Markdown
Contributor Author

/assign yanavlasov

yanavlasov
yanavlasov previously approved these changes Jun 2, 2021
@yanavlasov

Copy link
Copy Markdown
Contributor

LGTM, the format complains about the ordering of the runtime keys in the array. Good to go after it is fixed.

/wait

@itamarkam

Copy link
Copy Markdown
Contributor Author

LGTM, the format complains about the ordering of the runtime keys in the array. Good to go after it is fixed.

/wait

Done.

@itamarkam
itamarkam requested a review from yanavlasov June 3, 2021 13:34
yanavlasov
yanavlasov previously approved these changes Jun 3, 2021
@yanavlasov

Copy link
Copy Markdown
Contributor

It looks like //test/integration:proxy_proto_integration_test uses access logging in tests and expects double quotes. I think we can just fix the test to use single quotes, since it is the new expectation.

yanavlasov
yanavlasov previously approved these changes Jun 4, 2021
@yanavlasov

Copy link
Copy Markdown
Contributor

We may need to wait for windows build to be fixed and merge main.

@yanavlasov

Copy link
Copy Markdown
Contributor

Windows build was fixed. Please merge main.

@itamarkam

Copy link
Copy Markdown
Contributor Author

Windows build was fixed. Please merge main.

Done.

@itamarkam
itamarkam requested a review from yanavlasov June 6, 2021 13:18
@yanavlasov
yanavlasov merged commit 8f75ff6 into envoyproxy:main Jun 8, 2021
leyao-daily pushed a commit to leyao-daily/envoy that referenced this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants