-
Notifications
You must be signed in to change notification settings - Fork 92
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
adjust log level for userspace authz #959
Conversation
Signed-off-by: Zhonghu Xu <xuzhonghu@huawei.com>
@@ -179,7 +180,7 @@ func (r *Rbac) doRbac(conn *rbacConnection) bool { | |||
dstWorkload := r.workloadCache.GetWorkloadByAddr(networkAddress) | |||
// If no workload found, deny | |||
if dstWorkload == nil { |
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.
@LiZhenCheng9527 I thought about this again, we cannot deny if src workload is not found. And also cannot simply allow if src not found,
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.
So we need to discuss different scenarios of source workload not found.
But how should we distinguish between these scenarios?
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.
not needed from here, auth should not care whether src workload exist or not if the auth policy is based on ip or port
#961 is the way to ignore kubelet probe traffic
Codecov ReportAttention: Patch coverage is
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nlgwcy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind enhancement
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #955
Special notes for your reviewer:
Does this PR introduce a user-facing change?: