Skip to content
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

use ztunnel-role with workload mode, fix authz policy not work when update #344

Merged
merged 2 commits into from
May 22, 2024

Conversation

supercharge-xsy
Copy link
Contributor

…olicy update

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:
Fixes ##268

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@kmesh-bot kmesh-bot requested review from kwb0523 and nlgwcy May 21, 2024 01:57
@supercharge-xsy
Copy link
Contributor Author

/hold

…olicy update

Signed-off-by: superCharge-xsy <xiesongyang@huawei.com>
@hzxuzhonghu
Copy link
Member

PR contains merge commits

Signed-off-by: superCharge-xsy <xiesongyang@huawei.com>
@supercharge-xsy
Copy link
Contributor Author

PR contains merge commits

fix

@supercharge-xsy
Copy link
Contributor Author

/unhold

@tacslon
Copy link
Contributor

tacslon commented May 22, 2024

/lgtm

@kmesh-bot
Copy link
Collaborator

[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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -161,7 +162,7 @@ func (r *Rbac) doRbac(conn *rbacConnection) bool {
if len(conn.dstIp) > 0 {
dstWorkload = cache.WorkloadCache.GetWorkloadByAddr(cache.NetworkAddress{
Network: conn.dstNetwork,
Address: binary.BigEndian.Uint32(conn.dstIp),
Address: nets.ConvertIpByteToUint32(conn.dstIp),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This worth a unit test

@kmesh-bot kmesh-bot merged commit 1f4d2f6 into kmesh-net:main May 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants