-
Notifications
You must be signed in to change notification settings - Fork 1.2k
POST-only HTTP API #2971
Comments
The history from merged repos has been maintained so it should just be a case of making a branch from the last ipfs-http-client release commit, making the changes, doing the release and pushing the updated branch back to the repo. |
Good news: turns out This means we don't need to make any patch releases – What remains to be done is to convert API exposed by js-ipfs to match behavior of go-ipfs more closely (POST-only, additional Origin/Referer check, load webui from API port instead of gateway). @achingbrain my plan is to implement the above before I jump into #1877, if that is okay with you? |
Removes patching introduced in #1430 and uses ipfs-redux-bundle v7.0.0 to bring a compatible version of ipfs-http-client that is known to support POST-only HTTP API while also exposing the old JS API. Context: ipfs/js-ipfs#2971
Sounds good, thanks @lidel |
Removes patching introduced in #1430 and uses ipfs-redux-bundle v7.0.0 to bring a compatible version of ipfs-http-client that is known to support POST-only HTTP API while also exposing the old JS API. Context: ipfs/js-ipfs#2971
This has been fixed in js-ipfs by #2977 |
..and released in |
Thank you! Continued in:
|
Problem
go-ipfs 0.5 will block
GET
commands on the API port (ipfs/kubo#7097), requiring every command to be sent as HTTP POST request (makes it a true RPC + solves some security issues).🔍 Ensure
ipfs-http-client
works with API withoutGET
but would appreciate second pair of eyes to confirm I did not miss anything
/api/v0
on API portunsure where to add those, any ideas?
😅 Ship a patch release for old JS API?
Blocking
GET
broke Files screen in ipfs-webui as noted in ipfs/ipfs-webui#1429 (comment)ipfs-webui is using older version of
ipfs-http-client
, one before huge refactor into async iterables, which means switching to the latest version won't be a quick task.I suspect there are third party projects which use older version of
ipfs-http-client
but have no time to refactor entire codebase to work with the latest version. We could make it easier if we shipped a patch release with literally 7 line diff (ky.get
→ky.post
, as seen in seen in[email protected]
)I am unsure how to do this given we moved to monorepo recently.
I think v41.0.0 of
ipfs-http-client
was the last release before Async Await and Async Iterables.@achingbrain is it possible to release something like
[email protected]
?Any way I can help?
Update:
[email protected]
is ok for use (if you are stuck at old API)The text was updated successfully, but these errors were encountered: