-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove AuthenticationFilter in favor of SecurityPolicy (#2086)
remove Authenticationfilter in favor of SecurityPolicy fix e2e fix test and add policies to egctl translate command add docs for jwt remove crd clear docs address comments update security policy status fix e2e test Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
- Loading branch information
1 parent
845e874
commit 364710f
Showing
104 changed files
with
331 additions
and
5,340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright Envoy Gateway Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// The full text of the Apache license is available in the LICENSE file at | ||
// the root of the repo. | ||
|
||
package v1alpha1 | ||
|
||
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
|
||
// CORS defines the configuration for Cross-Origin Resource Sharing (CORS). | ||
type CORS struct { | ||
// AllowOrigins defines the origins that are allowed to make requests. | ||
// +kubebuilder:validation:MinItems=1 | ||
AllowOrigins []StringMatch `json:"allowOrigins,omitempty" yaml:"allowOrigins"` | ||
// AllowMethods defines the methods that are allowed to make requests. | ||
// +kubebuilder:validation:MinItems=1 | ||
AllowMethods []string `json:"allowMethods,omitempty" yaml:"allowMethods"` | ||
// AllowHeaders defines the headers that are allowed to be sent with requests. | ||
AllowHeaders []string `json:"allowHeaders,omitempty" yaml:"allowHeaders,omitempty"` | ||
// ExposeHeaders defines the headers that can be exposed in the responses. | ||
ExposeHeaders []string `json:"exposeHeaders,omitempty" yaml:"exposeHeaders,omitempty"` | ||
// MaxAge defines how long the results of a preflight request can be cached. | ||
MaxAge *metav1.Duration `json:"maxAge,omitempty" yaml:"maxAge,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.