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

Proxy requests via GSB #25

Closed
staszek-krotki opened this issue Dec 5, 2023 · 0 comments · Fixed by #29 or golemfactory/yagna#2989
Closed

Proxy requests via GSB #25

staszek-krotki opened this issue Dec 5, 2023 · 0 comments · Fixed by #29 or golemfactory/yagna#2989
Assignees

Comments

@staszek-krotki
Copy link
Contributor

staszek-krotki commented Dec 5, 2023

yagna needs a http endpoint to proxy http requests via GSB

  • add an endpoint /activity/{id}/_http_request/{postfix_path}
    {postfix_path} will be used to add to the base-url of the framework on provider's side
  • runtime translates the address: takes the local base-address of framework and adds postfix_path (with query params)
  • endpoint listens to GET/POST/PATCH/PUT/DELETE
  • headers supported: proxy all headers except yagna-specific, cors, ...possibly more, security research needed
  • body is proxied as is

runtime listens to GSB and responds in the same way

  • support all types of responses: events. streams etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants