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

nsmgr could call endpoint directly without visiting the forwarder #1683

Open
denis-tingaikin opened this issue Oct 15, 2024 · 1 comment
Open
Assignees

Comments

@denis-tingaikin
Copy link
Member

denis-tingaikin commented Oct 15, 2024

Description

Sometimes for local/remote use-cases nsmgr could call endpoint directly without visiting the forwarder.

Example:

{
    "id": "6ccc7cbe-9762-4be5-a6ef-50c44008824b",
    "network_service": "registry-restart",
    "mechanism": {
        "cls": "LOCAL",
        "type": "KERNEL",
        "parameters": {
            "inodeURL": "file:///proc/thread-self/ns/net",
            "name": "nsm-1"
        }
    },
    "context": {
        "ip_context": {
            "src_ip_addrs": [
                "172.16.1.103/32"
            ],
            "dst_ip_addrs": [
                "172.16.1.102/32"
            ],
            "src_routes": [
                {
                    "prefix": "172.16.1.102/32"
                }
            ],
            "dst_routes": [
                {
                    "prefix": "172.16.1.103/32"
                }
            ],
            "excluded_prefixes": [
                "10.96.0.0/16",
                "10.244.0.0/16"
            ]
        },
        "dns_context": {}
    },
    "labels": {
        "nodeName": "kind-worker2",
        "podName": "alpine-new"
    },
    "path": {
        "index": 2,
        "path_segments": [
            {
                "name": "alpine-new-783ab3bd-d905-438b-a3d9-32802fcd224f",
                "id": "alpine-new-783ab3bd-d905-438b-a3d9-32802fcd224f-0",
                "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzcGlmZmU6Ly9rOHMubnNtL25zL25zLXJlZ2lzdHJ5LXJlc3RhcnQvcG9kL2FscGluZS1uZXciLCJhdWQiOlsic3BpZmZlOi8vazhzLm5zbS9ucy9uc20tc3lzdGVtL3BvZC9uc21nci03YjhrNCJdLCJleHAiOjE3Mjg4NjI4MjJ9.GL-McalHXeZkPYcZm_vmirtsKsPPfWuz3RflGZhAz3_aseJzhKiVw1UcPpl6uhI8QAm3ZeqPkKf-dq_STpWCcg",
                "expires": {
                    "seconds": 1728862822,
                    "nanos": 300919160
                },
                "metrics": {
                    "client_interface": "KERNEL/nsm-1"
                }
            },
            {
                "name": "nsmgr-7b8k4",
                "id": "122b9f22-5dd5-451e-832a-a55664be8ed6",
                "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzcGlmZmU6Ly9rOHMubnNtL25zL25zbS1zeXN0ZW0vcG9kL25zbWdyLTdiOGs0IiwiYXVkIjpbInNwaWZmZTovL2s4cy5uc20vbnMvbnMtcmVnaXN0cnktcmVzdGFydC9wb2QvbnNlLWtlcm5lbC01NDhiYjhjNjc4LWRkanFuIl0sImV4cCI6MTcyODg2MjgyMn0.3SCuMw4SbLJtuD5oTBOdZcoa5yj2jyBO4lPLz7EGxasU4L_xfFP6JUNef1DcOwFC6y2uY2wC4v-gI3eix5Wb2A",
                "expires": {
                    "seconds": 1728862822,
                    "nanos": 373569196
                }
            },
            {
                "name": "nse-kernel-548bb8c678-ddjqn",
                "id": "6ccc7cbe-9762-4be5-a6ef-50c44008824b",
                "token": "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzcGlmZmU6Ly9rOHMubnNtL25zL25zLXJlZ2lzdHJ5LXJlc3RhcnQvcG9kL25zZS1rZXJuZWwtNTQ4YmI4YzY3OC1kZGpxbiIsImF1ZCI6WyJzcGlmZmU6Ly9rOHMubnNtL25zL25zbS1zeXN0ZW0vcG9kL25zbWdyLTdiOGs0Il0sImV4cCI6MTcyODg2MjgyMn0.epLmYnXGv4KKqxrGtjKTDmCX-rDsCfe0rjbWbhh7EFxGLCaTZ_P-FK432_Mx_XmqvwNrOfDD5D4QFFUoe_gFyw",
                "expires": {
                    "seconds": 1728862822,
                    "nanos": 374412198
                }
            }
        ]
    }
}

Note: there is no forwarder in the path.

@denis-tingaikin denis-tingaikin self-assigned this Oct 15, 2024
@Ex4amp1e Ex4amp1e moved this to In Progress in Release v1.14.1 Oct 15, 2024
@denis-tingaikin denis-tingaikin moved this from In Progress to Todo in Release v1.14.1 Nov 19, 2024
@denis-tingaikin
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant