Repository navigation
Conversation
|
@albertony Sorry for the delay, it's been two busy weeks. The format changes were indeed not intentional and I now attempted to correct those. In addition, I ran |
|
@albertony Had to fix an import cycle in the test case which will hopefully fix the workflow. |
|
@albertony Linter issues resolved. |
|
@StarHack I hope you've read the https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md#writing-a-new-backend docs. In there you'll see stuff about the integration tests. How are you doing with those? For a reverse engineered backend we are going to need you to join us as an rclone maintainer once it is merged to keep it working. Are you willing to do that? Sorry for the delay looking at this |
|
Hi Nick @ncw Thanks for your feedback. I removed the Yes, willing to support this backend as I'm using it myself. |
|
Hi, Is there an ETA for this to be merged? |
447f792 to
6823ea2
Compare
|
Hi @zerodarkzone . I'm afraid that's out of my hands. For the time being you'd have to use my fork: You may then use @ncw I'd be happy to further support developnment of this backend so you could simply assign incoming issues/requests regarding this to me. And sorry for the slight delay. Didn't have notifications pointing towards my new email. |
|
@StarHack sorry for the delay looking at this PR - we are a bit behind.
That would be necessary - we only take reverse engineered backends if we can have a maintainer too otherwise they turn out to be too much trouble. How are you doing with the integration tests? Does |
|
@ncw Changed the codebase to use the testing framework but I'm not entirely done yet. |
|
Looking good :-) Keep going until you can get all the tests to pass. If you need help then let me know. |
|
I wasn't aware someone else was working on a backend for internxt. I started working on it earlier this year, but didn't have a chance to finish it. I was just about to start working on it again now when I saw this issue. I think my version passes all of the tests, but your code looks a lot cleaner. I haven't uploaded my code anywhere but this is from running the tests: I didn't know you'd have to sign up as a maintainer to get the code merged and in that case I just can't. My code is a mess, this is my first time writing go. I am however willing to help you get those last tests get a PASS if you're interested, and if you can maintain it that would be really nice. Also, I saw the internxt guy talking about them moving to the "gateway" for everything on reddit. My version does not use the gateway, maybe we should look into that in case they disable the old API? |
|
Hi! I'm Larry, a developer at Internxt! That said, since this implementation involves core elements of our encryption model and storage logic, we'd like to ensure that everything works as expected and meets our security requirements. This is especially important given that Internxt is built around zero-knowledge encryption and user privacy, which are critical to our platform and users. To move forward officially with this integration, we'd like to propose that the Go-based SDKs and supporting libraries be hosted under the Internxt GitHub organization (or at least collaboratively maintained with us). This would allow our team to properly review the code, verify the implementation details, and provide ongoing maintenance and security oversight. We're happy to collaborate and help with anything needed to make this happen, including reviewing the code, offering feedback, and making any required changes to align it with our standards. Let us know what you think, and feel free to reach out to us directly, we're excited to support this! |
|
Hi @larryrider great to have you onboard with the project. I'm the rclone project lead.
Do you mean the support library here https://github.com/StarHack/go-internxt-drive ? I think it would be great if you could adopt it as your official Go library and support it. That isn't my choice though, that is @StarHack 's choice. I have some qualms about merging a backend which has been developed through reverse engineering as it makes it difficult to support if the other rclone developers can't look in the API docs to see what is happening and a collaboration between you and @StarHack would be a great idea for the backend stability. You and @StarHack would also be welcome to join us as rclone maintainers once we get the backend merged if that is what you want. |
|
@larryrider: @StarHack has done a good work: Maybe that he can work for @internxt? But it must be totally Open Source. |
|
@larryrider Thanks for your feedback. I don't think that the accompanied library can already be considered an SDK, as a lot of functionality from the full API is still missing in this implementation. We may consider this in future, but in its current state we're simply not there yet and I doubt people would be happy with an incomplete SDK implementation. The current implementation, on the other hand, can be verified relatively easily, as uploaded files (i.e. photos) would simply not be readable in another client (such as the web client) if the implementation would deviate. @Neustradamus Added MIT license for the library project to align with rclone licensing. The code is 100% open source. @ncw Thanks to @lullius great support, all test cases are now passing: |
eecde34 to
64d2452
Compare
|
Hey, ty for doing this. I cant seem to get it to work thought. Does your backend support 2FA? I did not see any mention of that in the login prrocess. Also how should one use the randomly generated password? |
You should enter your own password when asked about the password, not generate a random one. I do not use 2FA myself so I do not know how that works, but support for that was added to the supporting library: StarHack/go-internxt-drive@f36d4a4. We are still working on the library and the rclone backend. Support for 2FA will likely be added. |
|
@egnrse That was not possible until now but I just added it to the rclone implementation. Please use |
|
@ncw All test cases are now passing. I wanted to ask if we could merge this. |
|
@StarHack: Excellent, good job! :) |
|
I tried the StarHack/rclone fork with mixed results. I should point out the reason first. The copy was successful but the date is today's date. |
|
@cbertelli Thanks for raising attention on this matter. We currently pass on the modified timestamp when uploading files (source) but it seems like it is lost somewhere on the way so this is something we need to take a look at. |
|
@cbertelli Seems like the modified timestamps are preserved correctly but the WebUI seems to display a different timestamp (probably One may verify this by using one of rclone's mount commands. |
|
Thank you. Probably Internxt should take into account the chronology... |
Great job :-) Are the test_all tests passing too? Maye you could put a screenshot of the passing tests? That is the web page which opens at the end. I'll put this on the milestone for the 1.72 release |
I just checked and it seems like there's still an issue with two of these we need to figure out: Will take a look at it and report back once I get a chance to do so.
Thank you. |
|
@StarHack
|
|
I asked to Internxt official support how they are dealing with metadata and specifically with dates of file and folders. They answered that by no means is actually possible to store anything other than the time the file/folder was transferred to drive. Nor the native cli, nor the web interface, nor the desktop or mobile apps can store the dates of the original file. |
|
First of all, I’d like to thank you for the great work — both @StarHack and @lullius. I’ve been testing this solution for over a week now, and I’m really impressed with how well it performs compared to WebDAV. Of course, I’ve run into a few issues, for example: And exactly after 3 days (72h) of continuous operation, I get the following error: After that, the job needs to be stopped and restarted. For anyone interested, here’s the command I’m using: I’m running rclone together with rclonebrowser in Docker. Here’s my Dockerfile to use this: FROM golang:1.24-alpine AS builder
RUN apk add --no-cache git
WORKDIR /src
RUN git clone https://<your_github_token>@github.com/StarHack/rclone.git
WORKDIR /src/rclone
RUN git checkout internxt && go get && go build -o rclone
FROM jiatern/rclonebrowser:latest
COPY --from=builder /src/rclone/rclone /usr/bin/rclone |
|
@pawel319-1 Many thanks for your feedback. The empty files error is expected behavior since the web UI returns the same:
The 72h session timeout behaves just like the web client as well (unfortunately) but could be addressed by using the |
|
@larryrider |
Hey @cbertelli , our backend is already properly handling the metadata. As @StarHack mentioned before, "the modified timestamps are preserved correctly but the WebUI seems to display a different timestamp", and that's correct. We introduced this metadata fields some time ago, and our apps should use the CreationTime and ModificationTime fields for file metadata. You don't need to worry about the work they are doing, as long as those dates are being sent, our backend is already storing them correctly. It's just a matter of displaying the proper values in the right places. We will look into fixing the incorrect date shown on the WebUI as soon as possible. If you find any other issue please reach out to [email protected] and mention this issue so we can fix it in the corresponding app. |
|
Hello, I'm sorry but I cannot reproduce this successful behaviour. when I list files with: I don't get the original date of the file, but the time the file was transferred to my drive. |
|
@lullius @StarHack, but the repository changed. Is there a way to go on or overcome this issue? |
|
Hi @cbertelli we're currently updating the implementation to @lullius new client based approach (breaking change). I commited a small change to this branch as well to support internxt's new gateway endpoint and will update the rclone implementation once the library refactoring is more stable again. |
|
This has been superseded by #9110 |
What is the purpose of this change?
This adds pure Go support for the Internxt backend. I reverse engineered and implemented their encryption protocol for this purpose
Was the change discussed in an issue or in the forum before?
Checklist