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

add userguide for xdp_auth #100

Merged
merged 2 commits into from
Dec 27, 2024
Merged

add userguide for xdp_auth #100

merged 2 commits into from
Dec 27, 2024

Conversation

weli-l
Copy link
Contributor

@weli-l weli-l commented Dec 26, 2024

No description provided.

Copy link

netlify bot commented Dec 26, 2024

Deploy Preview for kmesh-net ready!

Name Link
🔨 Latest commit 7b48f0b
🔍 Latest deploy log https://app.netlify.com/sites/kmesh-net/deploys/676d405835b1c90008db0ca9
😎 Deploy Preview https://deploy-preview-100--kmesh-net.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: test-policy
Copy link
Member

Choose a reason for hiding this comment

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

deny-by-dstport


#### Configure deny authorization policy

##### Configure deny port authorization policy
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
##### Configure deny port authorization policy
##### Configure destination port deny authorization policy

root@master:~/kmesh# kubectl logs -f kmesh-vlxhd -n kmesh-system
... ...
time="2024-12-25T15:23:12+08:00" level=info msg="[AUTH] INFO: port 8080 in destination_ports, matched" subsys=ebpf
time="2024-12-25T15:23:12+08:00" level=info msg="[AUTH] INFO: rule matched, action: DENY" subsys=ebpf
Copy link
Member

Choose a reason for hiding this comment

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

I may miss the code implement, but i think this level should be debug, otherwise too spammy

time="2024-12-25T15:23:12+08:00" level=info msg="[AUTH] INFO: rule matched, action: DENY" subsys=ebpf
```

##### Configure deny source ip authorization policy
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
##### Configure deny source ip authorization policy
##### Configure source ip deny authorization policy

rules:
- when:
- key: destination.ip
values: ["10.244.0.36"]
Copy link
Member

Choose a reason for hiding this comment

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

This is meaningless, i guess. This is equal to deny all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is meaningless, i guess. This is equal to deny all

I deployed two fortio server pod, and this policy only deny 10.244.0.36

Copy link
Member

Choose a reason for hiding this comment

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

I mean you can setup some allow rules, that only allow some kind of src ip. That can be done later

Signed-off-by: weli-l <[email protected]>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/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

@kmesh-bot kmesh-bot merged commit 15bae3f into kmesh-net:main Dec 27, 2024
7 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.

3 participants