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

feat: implement API Key Auth security policy #4986

Merged
merged 14 commits into from
Jan 13, 2025

Conversation

sanposhiho
Copy link
Contributor

@sanposhiho sanposhiho commented Dec 31, 2024

What type of PR is this?

What this PR does / why we need it:

implement API Key Auth security policy.

Which issue(s) this PR fixes:

Fixes #2630

Release Notes: Yes

@sanposhiho sanposhiho force-pushed the api-key-auth branch 2 times, most recently from 999022c to 46d4f6a Compare January 1, 2025 06:59
@sanposhiho sanposhiho marked this pull request as ready for review January 1, 2025 06:59
@sanposhiho sanposhiho requested a review from a team as a code owner January 1, 2025 06:59
@sanposhiho
Copy link
Contributor Author

E2e test passed on my local and opened the PR for the review.

@sanposhiho sanposhiho force-pushed the api-key-auth branch 4 times, most recently from f4d8fad to 6ece2e9 Compare January 10, 2025 15:57
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 53.17073% with 96 lines in your changes missing coverage. Please review.

Project coverage is 66.68%. Comparing base (00ed0b8) to head (b22453a).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/gatewayapi/securitypolicy.go 8.33% 42 Missing and 2 partials ⚠️
internal/xds/translator/api_key_auth.go 68.69% 25 Missing and 11 partials ⚠️
internal/provider/kubernetes/controller.go 0.00% 15 Missing ⚠️
api/v1alpha1/validation/securitypolicy_validate.go 94.11% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4986      +/-   ##
==========================================
- Coverage   66.75%   66.68%   -0.08%     
==========================================
  Files         209      210       +1     
  Lines       32409    32609     +200     
==========================================
+ Hits        21636    21744     +108     
- Misses       9468     9548      +80     
- Partials     1305     1317      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

arkodg
arkodg previously approved these changes Jan 10, 2025
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@arkodg
Copy link
Contributor

arkodg commented Jan 10, 2025

ptal @zhaohuabing

@arkodg arkodg requested review from a team January 10, 2025 18:36
@arkodg
Copy link
Contributor

arkodg commented Jan 10, 2025

@sanposhiho looks like the e2e is failing consistently

@sanposhiho
Copy link
Contributor Author

Yeah, sorry for that. I'll look into it in this weekend.

internal/ir/xds.go Outdated Show resolved Hide resolved
@zirain
Copy link
Member

zirain commented Jan 11, 2025

@sanposhiho can you rebase master and rerun make -k gen-check.

Copy link
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@arkodg arkodg merged commit 271a697 into envoyproxy:main Jan 13, 2025
27 of 28 checks passed
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 API Key Auth
4 participants