Skip to content

router: support downstream cert formatting in the header formatter#14830

Merged
zuercher merged 6 commits intoenvoyproxy:mainfrom
esmet:downstream-cert-formatter-header
Feb 11, 2021
Merged

router: support downstream cert formatting in the header formatter#14830
zuercher merged 6 commits intoenvoyproxy:mainfrom
esmet:downstream-cert-formatter-header

Conversation

@esmet
Copy link
Contributor

@esmet esmet commented Jan 26, 2021

This extends downstream cert formatting capabilities to the router's header formatter. The previous related PR only added support to the access log formatter.

The first commit implements the feature in very direct way. The second commit refactors it to reuse some existing code. I left both commits separate so that reviewer(s) can look at each implementation and decide which is better.

Commit Message: router: support downstream cert formatting in the header formatter
Additional Description:
Risk Level: Low
Testing: Unit tests
Docs Changes: Updated custom request/response header docs
Release Notes: router: extend custom date formatting to DOWNSTREAM_PEER_CERT_V_START and DOWNSTREAM_PEER_CERT_V_END when using :ref:custom request/response header formats <config_http_conn_man_headers_custom_request_headers>.
Fixes #14501

@esmet esmet force-pushed the downstream-cert-formatter-header branch from c869bc8 to 2a4f0d9 Compare January 26, 2021 21:27
@yanavlasov
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@esmet
Copy link
Contributor Author

esmet commented Jan 27, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #14830 (comment) was created by @esmet.

see: more, trace.

Copy link
Member

@dio dio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While still thinking about unifying this in the access log site or here, a nit and a question:

esmet added 4 commits January 29, 2021 20:02
Signed-off-by: John Esmet <john.esmet@gmail.com>
Signed-off-by: John Esmet <john.esmet@gmail.com>
Signed-off-by: John Esmet <john.esmet@gmail.com>
Signed-off-by: John Esmet <john.esmet@gmail.com>
@esmet
Copy link
Contributor Author

esmet commented Jan 29, 2021

I have to force push to fix a DCO issue with 1 of the commits in this PR. I'm not totally sure how I messed it up, but I'll fix it now!

@esmet
Copy link
Contributor Author

esmet commented Jan 29, 2021

I have to force push to fix a DCO issue with 1 of the commits in this PR. I'm not totally sure how I messed it up, but I'll fix it now!

Actually I see why this was messed up. It's because I made a change using the GitHub UI to update current.rst. I will know not to do that in the future.

@esmet esmet force-pushed the downstream-cert-formatter-header branch from 6e765fd to 08f854f Compare January 29, 2021 20:05
@esmet
Copy link
Contributor Author

esmet commented Feb 1, 2021

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #14830 (comment) was created by @esmet.

see: more, trace.

esmet added 2 commits February 2, 2021 15:10
…tter-header

Signed-off-by: John Esmet <john.esmet@gmail.com>
Signed-off-by: John Esmet <john.esmet@gmail.com>
Copy link
Member

@dio dio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dio
Copy link
Member

dio commented Feb 3, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dio
Copy link
Member

dio commented Feb 3, 2021

@zuercher do you want to take a look?

@esmet
Copy link
Contributor Author

esmet commented Feb 8, 2021

@zuercher friendly poke. If you think this is okay, then it should be ready to land 👍

@zuercher
Copy link
Member

Sorry for being slow.

@zuercher zuercher merged commit ceddde2 into envoyproxy:main Feb 11, 2021
@esmet esmet deleted the downstream-cert-formatter-header branch February 24, 2021 21:03
esmet added a commit to gravitee-io/envoy that referenced this pull request Mar 29, 2021
…nvoyproxy#14830)

This extends downstream cert formatting capabilities to the router's header formatter.

Risk Level: Low
Testing: Unit tests
Docs Changes: Updated custom request/response header docs
Release Notes: added
Fixes envoyproxy#14501
esmet added a commit to gravitee-io/envoy that referenced this pull request Apr 16, 2021
…nvoyproxy#14830)

This extends downstream cert formatting capabilities to the router's header formatter.

Risk Level: Low
Testing: Unit tests
Docs Changes: Updated custom request/response header docs
Release Notes: added
Fixes envoyproxy#14501
esmet added a commit to gravitee-io/envoy that referenced this pull request Jun 10, 2021
…nvoyproxy#14830)

This extends downstream cert formatting capabilities to the router's header formatter.

Risk Level: Low
Testing: Unit tests
Docs Changes: Updated custom request/response header docs
Release Notes: added
Fixes envoyproxy#14501
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.

Support configurable date formats for DOWNSTREAM_PEER_CERT_V_START/END

4 participants