HTTP Basic Auth filter (#30079)
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 72a247090789f6a3b131d8cb6a93949449f2a3e3main
parent
0a967825d9
commit
84ff1eeecb
4 changed files with 50 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||||||
|
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||||
|
|
||||||
|
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||||
|
|
||||||
|
licenses(["notice"]) # Apache 2 |
||||||
|
|
||||||
|
api_proto_package( |
||||||
|
deps = [ |
||||||
|
"//envoy/config/core/v3:pkg", |
||||||
|
"@com_github_cncf_udpa//udpa/annotations:pkg", |
||||||
|
], |
||||||
|
) |
@ -0,0 +1,36 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package envoy.extensions.filters.http.basic_auth.v3; |
||||||
|
|
||||||
|
import "envoy/config/core/v3/base.proto"; |
||||||
|
|
||||||
|
import "udpa/annotations/sensitive.proto"; |
||||||
|
import "udpa/annotations/status.proto"; |
||||||
|
|
||||||
|
option java_package = "io.envoyproxy.envoy.extensions.filters.http.basic_auth.v3"; |
||||||
|
option java_outer_classname = "BasicAuthProto"; |
||||||
|
option java_multiple_files = true; |
||||||
|
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/basic_auth/v3;basic_authv3"; |
||||||
|
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||||
|
|
||||||
|
// [#protodoc-title: Basic Auth] |
||||||
|
// Basic Auth :ref:`configuration overview <config_http_filters_basic_auth>`. |
||||||
|
// [#extension: envoy.filters.http.basic_auth] |
||||||
|
|
||||||
|
// Basic HTTP authentication. |
||||||
|
// |
||||||
|
// Example: |
||||||
|
// |
||||||
|
// .. code-block:: yaml |
||||||
|
// |
||||||
|
// users: |
||||||
|
// inline_string: |- |
||||||
|
// user1:{SHA}hashed_user1_password |
||||||
|
// user2:{SHA}hashed_user2_password |
||||||
|
// |
||||||
|
message BasicAuth { |
||||||
|
// Username-password pairs used to verify user credentials in the "Authorization" header. |
||||||
|
// The value needs to be the htpasswd format. |
||||||
|
// Reference to https://httpd.apache.org/docs/2.4/programs/htpasswd.html |
||||||
|
config.core.v3.DataSource users = 1 [(udpa.annotations.sensitive) = true]; |
||||||
|
} |
Loading…
Reference in new issue