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 flag to override GRPC Authority Header #5450

Merged

Conversation

aliaqel-stripe
Copy link
Contributor

@aliaqel-stripe aliaqel-stripe commented Jan 31, 2024

Add a flag to the adapter called metrics-service-grpc-authority to allow us to set the Authority Header on the GRPC requests so that it can be a host name that is present in the Certificate SAN issued to the keda-operator pod if the GRPC address differs from that.

Validated on my KEDA Deployment and verified this header allows us to use TLS with our service mesh addresses + our CA issued certificates.

Checklist

  • Changelog has been updated and is aligned with our changelog requirements
  • A PR is opened to update the documentation on (repo) (if applicable)
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #5449

Relates to kedacore/keda-docs#1302

@aliaqel-stripe aliaqel-stripe force-pushed the aliaqel/add-grpc-authority-header branch from bce63f4 to 98dd5f1 Compare January 31, 2024 19:48
@aliaqel-stripe aliaqel-stripe marked this pull request as ready for review January 31, 2024 20:03
@aliaqel-stripe aliaqel-stripe requested a review from a team as a code owner January 31, 2024 20:03
@JorTurFer
Copy link
Member

JorTurFer commented Feb 6, 2024

/run-e2e
Update: You can check the progress here

@aliaqel-stripe
Copy link
Contributor Author

@JorTurFer Looks like the FOSSA test failed after I updated to main, known failure?

@aliaqel-stripe
Copy link
Contributor Author

@JorTurFer Looks like the FOSSA test failed after I updated to main, known failure?

I'm going to guess a recent import that merged into main broke this test

@JorTurFer
Copy link
Member

Looks like the FOSSA test failed after I updated to main, known failure?

You can ignore it. It was broken due to a package issue, but I've fixed in FOSSA. I've retriggered the check and it should pass now 🤞

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

LGTM!

@JorTurFer JorTurFer requested a review from zroubalik February 7, 2024 18:54
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Zbynek Roubalik <[email protected]>
Signed-off-by: aliaqel-stripe <[email protected]>
@aliaqel-stripe
Copy link
Contributor Author

@zroubalik Adopted your comments, let me know how this looks and if we can merge soon so I can consume the CI built Image for this commit

@zroubalik
Copy link
Member

zroubalik commented Feb 12, 2024

/run-e2e internal
Update: You can check the progress here

@zroubalik zroubalik enabled auto-merge (squash) February 12, 2024 22:09
@zroubalik zroubalik merged commit 1efcd06 into kedacore:main Feb 12, 2024
20 checks passed
ArunYogesh pushed a commit to ArunYogesh/keda that referenced this pull request Mar 1, 2024
* add grpc authority head override command-line flag

Signed-off-by: Ali Aqel <[email protected]>
Signed-off-by: aliaqel-stripe <[email protected]>
Co-authored-by: Zbynek Roubalik <[email protected]>
Signed-off-by: Arun Yogesh <[email protected]>
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.

Add flag to override GRPC Authority Header
3 participants