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

Introduce a Backend SecurityPolicy #4953

Closed
aabchoo opened this issue Dec 19, 2024 · 7 comments
Closed

Introduce a Backend SecurityPolicy #4953

aabchoo opened this issue Dec 19, 2024 · 7 comments
Labels
area/policy kind/decision A record of a decision made by the community. kind/feature new feature stale

Comments

@aabchoo
Copy link

aabchoo commented Dec 19, 2024

Description:

Describe the desired behavior, what scenario it enables and how it
would be used.

The envoy gateway SecurityPolicy is meant for traffic entering the gateway from a client. It would be helpful to have a new dedicated Backend SecurityPolicy for traffic exiting the gateway to a backend.

Add an API definition to hold settings for configuring authentication and authorization rules on the traffic exiting the gateway to a service/backend/provider.

Some use cases include:

  • Setting the APIKey as part of the header when communicating with external backend
  • Obtaining OIDC tokens and using that to auth with cloud providers

[optional Relevant Links:]

Any extra documentation required to understand the issue.

@aabchoo aabchoo added the triage label Dec 19, 2024
@zhaohuabing
Copy link
Member

zhaohuabing commented Dec 20, 2024

Will the proposedBackendSecurityPolicy include any other features beyond authentication? If not, BackendAuthenticationPolicy might be a more accurate name.

@zhaohuabing zhaohuabing added kind/feature new feature area/policy kind/decision A record of a decision made by the community. and removed triage labels Dec 20, 2024
@aabchoo
Copy link
Author

aabchoo commented Dec 20, 2024

For the time being, authentication is the priority, so I'm fine with it being BackendAuthenticationPolicy

@zhaohuabing
Copy link
Member

I'm +1 for this.

As the firt iteration, we can consider supporting generic credentials and the oauth2 client grant with the credential injector filter

@arkodg
Copy link
Contributor

arkodg commented Jan 4, 2025

instead of adding another API, my vote is to incorporate the feature into the existing Backend API, since the persona defining the backend endpoint is the same as the persona defining the backend auth info

@zhaohuabing
Copy link
Member

zhaohuabing commented Jan 6, 2025

If multiple Backend resources share the same authentication config, an idenpent BackendAuthenticationPolicy may make sense. For example, the same AWS API key can be used to access multiple AWS services.

Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

@github-actions github-actions bot added the stale label Feb 28, 2025
@arkodg
Copy link
Contributor

arkodg commented Feb 28, 2025

hey @aabchoo closing this one in favor of #5351 which should help solve the same problem

@arkodg arkodg closed this as completed Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/policy kind/decision A record of a decision made by the community. kind/feature new feature stale
Projects
None yet
Development

No branches or pull requests

3 participants