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

If the Proxy Adds a Header in the Tunnel, it Doesn't Show Up at the Endpoint #90

Open
stravid87 opened this issue Jun 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stravid87
Copy link
Contributor

See the discussion by @huzaifamk on June 5, 2024 on Discord regarding this issue. I too have face the issue.

@stravid87 stravid87 added the bug Something isn't working label Jun 7, 2024
@stravid87 stravid87 added this to Layer8 Jun 7, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Layer8 Jun 7, 2024
@stravid87
Copy link
Contributor Author

If you look at the initializeECDHTunnel in the interceptor:

            Respbody := utils.ReadResponseBody(resp.Body)

            data := map[string]interface{}{}

            err = json.Unmarshal(Respbody, &data)
            if err != nil {
                reject.Invoke(js.Global().Get("Error").New("The data received from the proxy could not be unmarshalled: ", err.Error()))
                EncryptedTunnelFlag = false
                return
            }

            UpJWT = data["up-JWT"].(string)

            server_pubKeyECDH, err := utils.JWKFromMap(data)
            if err != nil {
                reject.Invoke(js.Global().Get("Error").New(err.Error()))
                EncryptedTunnelFlag = false
                return
            }

We weren't able to but the up-JWT in the headers....

To recreate the issue, try adding extra headers to the request coming from the Middleware on it's return trip to the Interceptor. The header is missing.

@stravid87
Copy link
Contributor Author

stravid87 commented Jun 7, 2024

This is also related to the challenges @huzaifamk is having on his issue #78

@DeeStarks DeeStarks moved this from 📋 Backlog to 🏗 In progress in Layer8 Jun 7, 2024
@stravid87 stravid87 moved this from 🏗 In progress to ✅ Done in Layer8 Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants