@@ -46,7 +46,7 @@ const (
4646 AnnotationsCorsAllowMethods = AnnotationsPrefix + "cors-allow-methods"
4747
4848 // csrf plugin
49- AnnotationsEnableCsrf = AnnotationsPrefix + "enable-csrf" // pingsix not support
49+ AnnotationsEnableCsrf = AnnotationsPrefix + "enable-csrf"
5050 AnnotationsCsrfKey = AnnotationsPrefix + "csrf-key"
5151
5252 // redirect plugin
@@ -60,10 +60,10 @@ const (
6060 AnnotationsRewriteTargetRegexTemplate = AnnotationsPrefix + "rewrite-target-regex-template"
6161
6262 // response-rewrite plugin
63- AnnotationsEnableResponseRewrite = AnnotationsPrefix + "enable-response-rewrite" // pingsix not support
63+ AnnotationsEnableResponseRewrite = AnnotationsPrefix + "enable-response-rewrite"
6464 AnnotationsResponseRewriteStatusCode = AnnotationsPrefix + "response-rewrite-status-code"
65- AnnotationsResponseRewriteBody = AnnotationsPrefix + "response-rewrite-body"
66- AnnotationsResponseRewriteBodyBase64 = AnnotationsPrefix + "response-rewrite-body-base64"
65+ AnnotationsResponseRewriteBody = AnnotationsPrefix + "response-rewrite-body" // pingsix not support
66+ AnnotationsResponseRewriteBodyBase64 = AnnotationsPrefix + "response-rewrite-body-base64" // pingsix not support
6767 AnnotationsResponseRewriteHeaderAdd = AnnotationsPrefix + "response-rewrite-add-header"
6868 AnnotationsResponseRewriteHeaderSet = AnnotationsPrefix + "response-rewrite-set-header"
6969 AnnotationsResponseRewriteHeaderRemove = AnnotationsPrefix + "response-rewrite-remove-header"
@@ -85,13 +85,15 @@ const (
8585
8686 // key-auth plugin and basic-auth plugin
8787 // auth-type: keyAuth | basicAuth
88- AnnotationsAuthType = AnnotationsPrefix + "auth-type" // need modify config with pingsix
88+ AnnotationsAuthType = AnnotationsPrefix + "auth-type"
89+ AnnotationsKeyAuthHeader = AnnotationsPrefix + "key-auth-header"
90+ AnnotationsKeyAuthQuery = AnnotationsPrefix + "key-auth-query"
91+ AnnotationsKeyAuthKey = AnnotationsPrefix + "key-auth-key"
92+ AnnotationsBasicAuthUsername = AnnotationsPrefix + "basic-auth-username"
93+ AnnotationsBasicAuthPassword = AnnotationsPrefix + "basic-auth-password"
8994
9095 // support backend service cross namespace
9196 AnnotationsSvcNamespace = AnnotationsPrefix + "svc-namespace"
92-
93- // NOTE: PingSIX may support CSRF and Basic Authentication in the future.
94- // NOTE: key-auth and basic-auth need to read configuration directly from annotations.
9597)
9698
9799const (
0 commit comments