-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
rbac: add unified matcher for RBAC filters #20877
Conversation
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
refer to envoyproxy#20796 Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
cc @htuch |
You can add this to resolve the ambiguity:
|
Ok, let us have a try to align them with xDS's |
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to |
Thanks @kyessenov, you saved my day. It is really easy to miss the change and TODO since I have been looking around among |
This is the source of this problem: bazel-contrib/rules_go#1986. cc @noahdietz. As I understand, it has always been an issue in envoy, but it was sitting there dormant because go_build_test isn't testing any targets that rely on googleapis protos: Lines 20 to 30 in 575ab6a
However, cncf/xds does test these targets. To make it work, googleapis protos had to be mapped to from EXTERNAL_PROTO_GO_BAZEL_DEP_MAP = {
# Note @com_google_googleapis are point to @go_googleapis.
# This is done to address //test/build:go_build_test build error:
#
# link: package conflict error:
# google.golang.org/genproto/googleapis/api/annotations: multiple copies of package passed to linker:
#
# @go_googleapis//google/api:annotations_go_proto
# @com_google_googleapis//google/api:annotations_go_proto
#
# TODO(https://github.com/bazelbuild/rules_go/issues/1986): update to
# @com_google_googleapis when the bug is resolved. Also see the note to
# go_googleapis in https://github.com/bazelbuild/rules_go/blob/master/go/dependencies.rst#overriding-dependencies
"@com_google_googleapis//google/api/expr/v1alpha1:checked_proto": "@go_googleapis//google/api/expr/v1alpha1:expr_go_proto",
"@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto": "@go_googleapis//google/api/expr/v1alpha1:expr_go_proto",
} |
/retest |
Retrying Azure Pipelines: |
@envoyproxy/api-shepherds Could we please re-stamp this? There's a build fix included. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be approved by API or senior maintainer. Thanks for completing this work!
CC @envoyproxy/api-shepherds @envoyproxy/senior-maintainers |
@markdroth please take a look at the API change. |
/lgtm api |
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
Signed-off-by: Xie Zhihao <zhihao.xie@intel.com>
@moderation Could you please approve dependency bazel fix? |
/lgtm deps |
Signed-off-by: Xie Zhihao zhihao.xie@intel.com Commit Message: rbac: add unified matcher for RBAC filters Additional Description: The patch add the matching API support for both RBAC network filter and HTTP filter. Users can configure rules and shadow rules in either policies or the matching API manner. There are some incompatibilities, TODOs and behavior changes compared to the policies way. RBAC matchers are not compatible with the matching API. URL path and CEL are not supported in the matching API. These matchers may come as custom matcher. Metadata is not supported in the matching API. These matchers may come as inputs. Connections and requests with no matcher matched will always be denied. Risk Level: Medium Testing: Unit and integration Docs Changes: API and configuration Release Notes: WIP Platform Specific Features: N/A Fixes envoyproxy#20623 Signed-off-by: Amila Senadheera <amila.15@cse.mrt.ac.lk>
Signed-off-by: Xie Zhihao zhihao.xie@intel.com
Commit Message: rbac: add unified matcher for RBAC filters
Additional Description:
The patch add the matching API support for both RBAC network filter and HTTP filter. Users can configure rules and shadow rules in either policies or the matching API manner. There are some incompatibilities, TODOs and behavior changes compared to the policies way.
Risk Level: Medium
Testing: Unit and integration
Docs Changes: API and configuration
Release Notes: WIP
Platform Specific Features: N/A
Fixes #20623