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

BackendConfig support for user-defined request headers #566

Closed
acasademont opened this issue Dec 3, 2018 · 14 comments
Closed

BackendConfig support for user-defined request headers #566

acasademont opened this issue Dec 3, 2018 · 14 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@acasademont
Copy link

Would be great if BackendConfig had support for user-defined request headers as per https://cloud.google.com/load-balancing/docs/backend-service#user-defined-request-headers

@rramkumar1
Copy link
Contributor

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 3, 2018
@rramkumar1
Copy link
Contributor

/good-first-issue
/help-wanted

@k8s-ci-robot
Copy link
Contributor

@rramkumar1:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue
/help-wanted

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Dec 5, 2018
@agadelshin
Copy link
Contributor

I'll be happy to implement this feature. I'd appreciate if you give me some references to similar feature.

@agadelshin
Copy link
Contributor

Never mind, I think I got the point.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 9, 2019
@rramkumar1 rramkumar1 added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 12, 2019
@caquino
Copy link

caquino commented May 29, 2019

I'm also looking for this feature to enable custom geolocation headers on the backends.

Is this something that is still being worked on?

@rramkumar1
Copy link
Contributor

rramkumar1 commented May 29, 2019

We had a PR to implement this (#572) by @pondohva but it seems the PR has been abandoned. Please feel free to pick it up.

@mcfedr
Copy link
Contributor

mcfedr commented Aug 16, 2019

Fixed in #795

@thuandt
Copy link

thuandt commented Aug 23, 2019

@mcfedr seem Google is not yet rolling this feature.

I tried with this configuration in GKE cluster v1.13.x but didn't work

kind: BackendConfig
metadata:
  namespace: default
  name: my-cdn
spec:
  # https://cloud.google.com/load-balancing/docs/user-defined-request-headers
  # https://blog.doit-intl.com/farewell-maxmind-geolocating-requests-with-google-load-balancer-for-free-7938f5adbef0
  # https://github.com/kubernetes/ingress-gce/pull/795/files
  customRequestHeaders:
    - "X-Client-Geo-Location:{client_region},{client_region_subdivision},{client_city}"
    - "X-Client-Geo-Region:{client_region_subdivision}"
    - "X-Client-Geo-LatLong:{client_city_lat_long}"
    - "CloudFront-Viewer-Country:{client_region}"
  cdn:
    enabled: true
    cachePolicy:
      includeHost: true
      includeProtocol: true
      includeQueryString: false

@rramkumar1
Copy link
Contributor

@thuandt This has not been released yet on GKE. It will likely be coming in our 1.7 release. Stay tuned...

@thuandt
Copy link

thuandt commented Aug 24, 2019

@rramkumar1 Ok. Noted

I tried with above configuration in GKE (us-west1), GCP has been trigger to add new custom headers in only one backend services instead both of them so it's not worked as expected.

btw, thanks for your support :)

@mitulpanch
Copy link

any update on this?

@rramkumar1
Copy link
Contributor

@mitulpanch This is now shipped as part of our 1.7 release.

@rramkumar1 rramkumar1 removed the lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. label Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

9 participants