Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to forward HTTP headers #196

Merged
merged 3 commits into from
Aug 3, 2022
Merged

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Jul 29, 2022

What was changed

Allows to specify headers that will be passed from HTTP requests to gRPC Temporal backend

Why?

Additional headers can be used for security and other use cases

Checklist

  1. Closes

  2. How was this tested:

tested passing
TEMPORAL_FORWARD_HEADERS=X-Forwarded-For,X-Forwarded-Port in docker image

  1. Any docs updates needed?

@feedmeapples feedmeapples force-pushed the add-headers-forwarding branch from 5e38a99 to 16435d7 Compare July 29, 2022 17:21
@@ -43,4 +44,9 @@ session:
filesystem:
# if non-empty, switches to filesystem store instead of cookie store. Increases size limit from 4K to 64K
path: {{ default .Env.TEMPORAL_SESSION_STORE_PATH "" }}
disableWriteActions: {{ default .Env.TEMPORAL_DISABLE_WRITE_ACTIONS "false" }}
forwardHeaders:
{{ if .Env.TEMPORAL_FORWARD_HEADERS }}
Copy link
Contributor

Choose a reason for hiding this comment

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

What exactly is the expected env var here? An array of strings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added a comment

@feedmeapples feedmeapples merged commit 2e7217a into main Aug 3, 2022
@feedmeapples feedmeapples deleted the add-headers-forwarding branch August 3, 2022 03:01
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.

2 participants