Conversation
Signed-off-by: weli-l <1289113577@qq.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
see 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
/lgtm |
|
can you add some description about what this pr is doning |
| match_ctx.policies = policies; | ||
| match_ctx.need_tailcall_to_userspace = false; | ||
| match_ctx.policy_index = 0; | ||
| match_ctx.auth_result = XDP_PASS; |
There was a problem hiding this comment.
Wy need pass this? I kind of feel this is the default value. Not needed to pass
| if (!policy) { | ||
| return XDP_PASS; | ||
| if (match_ctx->need_tailcall_to_userspace) { | ||
| bpf_tail_call(ctx, &map_of_xdp_tailcall, TAIL_CALL_AUTH_IN_USER_SPACE); |
There was a problem hiding this comment.
can you add a comment why tail call to user space if no policy found
| return XDP_PASS; | ||
| } | ||
| return XDP_PASS; | ||
| if (match_ctx->auth_result == XDP_PASS) { |
There was a problem hiding this comment.
Do you ever set it to XDP_DROP? Can you point it
There was a problem hiding this comment.
in Line 681, if unmatched, authz result is stored temporarily
match_ctx->auth_result = match_ctx->action == ISTIO__SECURITY__ACTION__DENY ? XDP_PASS : XDP_DROP;
Signed-off-by: weli-l <1289113577@qq.com>
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1207
###authz explanation and cases
B → C Traffic Authorization Policy Result
allow Bdeny Ballow Adeny Aallow B+deny Adeny B+allow Aallow B→deny Bdeny B→allow BSpecial notes for your reviewer:
Does this PR introduce a user-facing change?: