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

Offload authorization may fail after Kmesh restart #1204

Open
YaoZengzeng opened this issue Jan 20, 2025 · 0 comments
Open

Offload authorization may fail after Kmesh restart #1204

YaoZengzeng opened this issue Jan 20, 2025 · 0 comments
Labels
kind/bug Something isn't working

Comments

@YaoZengzeng
Copy link
Member

What happened:

I deployed Kmesh in kind, and then I restarted the machine where kind was located.

Then I followed this doc (https://kmesh.net/en/docs/userguide/tcp_authorization/) to conduct offload authorization related tests.

I deployed the ALLOW rule. For the allowed source IP, it can be executed normally, but for other IPs, sometimes it passed and sometimes failed.

root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    78  100    78    0     0  26174      0 --:--:-- --:--:-- --:--:-- 39000
{"headers":{"Accept":"*/*","Host":"httpbin:8000","User-Agent":"curl/8.11.1"}}
root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (52) Empty reply from server
command terminated with exit code 52
root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    78  100    78    0     0  21201      0 --:--:-- --:--:-- --:--:-- 26000
{"headers":{"Accept":"*/*","Host":"httpbin:8000","User-Agent":"curl/8.11.1"}}
root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    78  100    78    0     0  22968      0 --:--:-- --:--:-- --:--:-- 26000
{"headers":{"Accept":"*/*","Host":"httpbin:8000","User-Agent":"curl/8.11.1"}}
root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    78  100    78    0     0  26298      0 --:--:-- --:--:-- --:--:-- 39000
{"headers":{"Accept":"*/*","Host":"httpbin:8000","User-Agent":"curl/8.11.1"}}
root@dev:~# k exec sleep-5577c64d7c-k7n5t  -- curl http://httpbin:8000/headers 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
curl: (52) Empty reply from server
command terminated with exit code 52

What you expected to happen:

Hope it works as expected.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kmesh version:
  • Kmesh mode(kmesh has Kernel-Native Mode and Duel-Engine Mode):
  • Istio version:
  • Kernel version:
  • Others:
@YaoZengzeng YaoZengzeng added the kind/bug Something isn't working label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant