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

Header route modules support #121

Merged
merged 7 commits into from
Jan 26, 2023

Conversation

jonstacks
Copy link
Collaborator

Resolves #119

What

Adds support for configuring the RequestHeaders and ResponseHeaders Edge route modules in ngrok via ingress annotations.

How

The main change in this PR is:

  1. Adding an annotations parser for headers and adding it to the annotations extractor.
  2. In the ingress controller, extract the config from the annotations and use it to configure the HTTPSEdge accordingly
  3. Finally, in the HTTPSEdge controller, make both the request and response Edge modules match the spec.

Breaking Changes

Yes, internally there is a small change in the ipRestriction configuration for HTTPSEdge. Enabled *bool was removed because it is extraneous. If the configuration is not supplied, it will not be enabled. If it is supplied, it is enabled.

@jonstacks jonstacks requested a review from a team as a code owner January 25, 2023 18:24
@github-actions github-actions bot added area/controller Issues dealing with the controller area/helm-chart Issues dealing with the helm chart labels Jan 25, 2023
@jonstacks jonstacks merged commit 1061b79 into ngrok:main Jan 26, 2023
@jonstacks jonstacks deleted the header-route-modules-support branch January 26, 2023 04:27
@jonstacks jonstacks added the area/edge-modules Issues that involve Edge modules label Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Issues dealing with the controller area/edge-modules Issues that involve Edge modules area/helm-chart Issues dealing with the helm chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Request and Response Headers Route Module and Compression
2 participants