Skip to content

internxt: add native internxt backend support - fixes #7610 - #8556

Closed
StarHack wants to merge 56 commits into
rclone:masterfrom
StarHack:internxt
Closed

StarHack wants to merge 56 commits into
rclone:masterfrom
StarHack:internxt

Conversation

@StarHack

Copy link
Copy Markdown
Contributor

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

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

Comment thread go.mod Resolved
Comment thread README.md Resolved
Comment thread docs/content/docs.md Resolved
Comment thread go.sum Resolved
Comment thread docs/content/_index.md Resolved
@StarHack

StarHack commented Jun 1, 2025

Copy link
Copy Markdown
Contributor Author

@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 go mod tidy as advised.

@StarHack

StarHack commented Jun 3, 2025

Copy link
Copy Markdown
Contributor Author

@albertony Had to fix an import cycle in the test case which will hopefully fix the workflow.

@StarHack

StarHack commented Jun 4, 2025

Copy link
Copy Markdown
Contributor Author

@albertony Linter issues resolved.

@ncw

ncw commented Jun 5, 2025

Copy link
Copy Markdown
Member

@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

@StarHack

StarHack commented Jun 5, 2025

Copy link
Copy Markdown
Contributor Author

Hi Nick @ncw

Thanks for your feedback.

I removed the object.go and implemented an integration test as advised.

Yes, willing to support this backend as I'm using it myself.

@StarHack
StarHack requested a review from ncw June 9, 2025 15:03
@zerodarkzone

Copy link
Copy Markdown

Hi,

Is there an ETA for this to be merged?

@StarHack
StarHack force-pushed the internxt branch 2 times, most recently from 447f792 to 6823ea2 Compare July 19, 2025 11:49
@StarHack

StarHack commented Jul 19, 2025 •

Copy link
Copy Markdown
Contributor Author

Hi @zerodarkzone . I'm afraid that's out of my hands. For the time being you'd have to use my fork:

git clone [email protected]:StarHack/rclone.git
cd rclone/
git checkout internxt
go get
go build
./rclone --help

You may then use ./rclone config to create a new remote of type internxt and use a username/password to login. If you get a chance to test the implementation (or if you're missing something) please let me know.

@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.

@ncw

ncw commented Jul 20, 2025

Copy link
Copy Markdown
Member

@StarHack sorry for the delay looking at this PR - we are a bit behind.

I'd be happy to further support developnment of this backend so you could simply assign incoming issues/requests regarding this to me.

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 go test -v in the backend directory work for your new backend? How about test_all? See https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md#writing-a-new-backend for more details.

@StarHack

Copy link
Copy Markdown
Contributor Author

@ncw Changed the codebase to use the testing framework but I'm not entirely done yet.

--- FAIL: TestIntegration (90.99s)
    --- SKIP: TestIntegration/FsCheckWrap (0.00s)
    --- SKIP: TestIntegration/FsCommand (0.00s)
    --- PASS: TestIntegration/FsRmdirNotFound (0.07s)
    --- PASS: TestIntegration/FsString (0.00s)
    --- PASS: TestIntegration/FsName (0.00s)
    --- PASS: TestIntegration/FsRoot (0.00s)
    --- PASS: TestIntegration/FsRmdirEmpty (0.09s)
    --- FAIL: TestIntegration/FsMkdir (90.14s)
        --- FAIL: TestIntegration/FsMkdir/FsMkdirRmdirSubdir (1.06s)
        --- PASS: TestIntegration/FsMkdir/FsListEmpty (0.15s)
        --- PASS: TestIntegration/FsMkdir/FsListDirEmpty (0.16s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirEmpty (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsListDirNotFound (0.08s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirNotFound (0.00s)
        --- FAIL: TestIntegration/FsMkdir/FsEncoding (77.16s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/control_chars (2.28s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot (2.54s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot_dot (5.18s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/punctuation (3.62s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_space (3.47s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_tilde (2.51s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_CR (2.00s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_LF (7.51s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_HT (3.28s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_VT (7.05s)
            --- SKIP: TestIntegration/FsMkdir/FsEncoding/leading_dot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_space (4.43s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_CR (5.71s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_LF (3.15s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_HT (5.94s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_VT (2.24s)
            --- SKIP: TestIntegration/FsMkdir/FsEncoding/trailing_dot (0.00s)
            --- FAIL: TestIntegration/FsMkdir/FsEncoding/invalid_UTF-8 (5.17s)
            --- FAIL: TestIntegration/FsMkdir/FsEncoding/URL_encoding (10.92s)
        --- PASS: TestIntegration/FsMkdir/FsNewObjectNotFound (0.95s)
        --- PASS: TestIntegration/FsMkdir/FsPutError (1.00s)
        --- SKIP: TestIntegration/FsMkdir/FsPutZeroLength (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsOpenWriterAt (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsOpenChunkWriter (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsChangeNotify (0.00s)
        --- FAIL: TestIntegration/FsMkdir/FsPutFiles (4.50s)
        --- SKIP: TestIntegration/FsMkdir/FsPutChunked (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsCopyChunked (0.00s)
        --- FAIL: TestIntegration/FsMkdir/FsUploadUnknownSize (1.21s)
            --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize/FsPutUnknownSize (0.00s)
            --- FAIL: TestIntegration/FsMkdir/FsUploadUnknownSize/FsUpdateUnknownSize (1.21s)
        --- FAIL: TestIntegration/FsMkdir/FsRootCollapse (0.29s)
        --- SKIP: TestIntegration/FsMkdir/FsDirSetModTime (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsMkdirMetadata (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsDirectory (0.00s)
    --- SKIP: TestIntegration/FsShutdown (0.00s)
FAIL

@ncw

ncw commented Jul 21, 2025

Copy link
Copy Markdown
Member

Looking good :-) Keep going until you can get all the tests to pass. If you need help then let me know.

@lullius

lullius commented Jul 21, 2025 •

Copy link
Copy Markdown
Contributor

@StarHack

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:

--- PASS: TestIntegration (253.78s)
    --- SKIP: TestIntegration/FsCheckWrap (0.00s)
    --- SKIP: TestIntegration/FsCommand (0.00s)
    --- PASS: TestIntegration/FsRmdirNotFound (0.28s)
    --- PASS: TestIntegration/FsString (0.00s)
    --- PASS: TestIntegration/FsName (0.00s)
    --- PASS: TestIntegration/FsRoot (0.00s)
    --- PASS: TestIntegration/FsRmdirEmpty (1.90s)
    --- PASS: TestIntegration/FsMkdir (249.82s)
        --- PASS: TestIntegration/FsMkdir/FsMkdirRmdirSubdir (5.56s)
        --- PASS: TestIntegration/FsMkdir/FsListEmpty (0.07s)
        --- PASS: TestIntegration/FsMkdir/FsListDirEmpty (0.07s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirEmpty (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsListDirNotFound (0.07s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirNotFound (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsEncoding (128.42s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/control_chars (7.49s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot (11.66s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot_dot (5.61s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/punctuation (9.49s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_space (7.06s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_tilde (6.47s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_CR (6.40s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_LF (7.18s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_HT (6.27s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_VT (6.39s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_dot (6.51s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_space (6.05s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_CR (5.00s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_LF (7.10s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_HT (7.60s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_VT (5.39s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_dot (5.03s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/invalid_UTF-8 (6.82s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/URL_encoding (4.83s)
        --- PASS: TestIntegration/FsMkdir/FsNewObjectNotFound (0.14s)
        --- PASS: TestIntegration/FsMkdir/FsPutError (3.64s)
        --- SKIP: TestIntegration/FsMkdir/FsPutZeroLength (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsOpenWriterAt (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsOpenChunkWriter (27.88s)
        --- SKIP: TestIntegration/FsMkdir/FsChangeNotify (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsPutFiles (77.58s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListDirFile2 (0.54s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRDirFile2 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListR (0.53s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListRSubdir (0.42s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListDirRoot (0.22s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRDirRoot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListSubdir (0.20s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRSubdir#01 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListLevel2 (0.20s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRLevel2 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListFile1 (0.51s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsNewObject (0.09s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsNewObjectCaseInsensitive (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListFile1and2 (0.56s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsNewObjectDir (0.11s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsPurge (4.61s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsPurgeRoot (5.04s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListRootedSubdir (7.70s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsCopy (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsMove (17.17s)
                --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsMove/Metadata (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsDirMove (11.92s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsRmdirFull (0.11s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsPrecision (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectString (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectFs (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectRemote (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectHashes (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectModTime (0.10s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectMimeType (0.11s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectMetadata (0.10s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectSetMetadata (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectSetModTime (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectSize (0.10s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpen (1.42s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpenSeek (0.56s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpenRange (1.40s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectPartialRead (1.04s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectUpdate (3.96s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectStorable (0.11s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFile (1.51s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFile/FsRoot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFileNotFound (0.66s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot (5.76s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/List (1.11s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/ListEntries (0.10s)
                --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FromRoot/ListR (0.00s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/Put (4.55s)
                    --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/Put/Remove (1.64s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/PublicLink (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/SetTier (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectCheckWrap (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/Bucket (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectRemove (1.66s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectAbout (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsPutStream (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/Internal (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsPutChunked (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsCopyChunked (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize (3.57s)
            --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize/FsPutUnknownSize (0.34s)
            --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize/FsUpdateUnknownSize (3.24s)
        --- PASS: TestIntegration/FsMkdir/FsRootCollapse (0.67s)
        --- SKIP: TestIntegration/FsMkdir/FsDirSetModTime (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsMkdirMetadata (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsDirectory (0.00s)
    --- SKIP: TestIntegration/FsShutdown (0.00s)
PASS

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?

@larryrider

Copy link
Copy Markdown

Hi! I'm Larry, a developer at Internxt!
First of all, thank you so much for the work you've put into this integration. We truly appreciate the interest and the effort to make Internxt natively compatible with rclone, and we believe this would be a great step for our community.

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!

@ncw

ncw commented Jul 25, 2025

Copy link
Copy Markdown
Member

Hi @larryrider great to have you onboard with the project. I'm the rclone project lead.

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.

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.

@Neustradamus

Copy link
Copy Markdown

@larryrider: @StarHack has done a good work:

Maybe that he can work for @internxt?

But it must be totally Open Source.

@StarHack

Copy link
Copy Markdown
Contributor Author

@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:

=== RUN   TestIntegration/FsShutdown
    fstests.go:2836: Shutdown method not supported
--- PASS: TestIntegration (236.49s)
    --- SKIP: TestIntegration/FsCheckWrap (0.00s)
    --- SKIP: TestIntegration/FsCommand (0.00s)
    --- PASS: TestIntegration/FsRmdirNotFound (0.08s)
    --- PASS: TestIntegration/FsString (0.00s)
    --- PASS: TestIntegration/FsName (0.00s)
    --- PASS: TestIntegration/FsRoot (0.00s)
    --- PASS: TestIntegration/FsRmdirEmpty (0.74s)
    --- PASS: TestIntegration/FsMkdir (233.82s)
        --- PASS: TestIntegration/FsMkdir/FsMkdirRmdirSubdir (4.75s)
        --- PASS: TestIntegration/FsMkdir/FsListEmpty (0.16s)
        --- PASS: TestIntegration/FsMkdir/FsListDirEmpty (0.16s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirEmpty (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsListDirNotFound (0.08s)
        --- SKIP: TestIntegration/FsMkdir/FsListRDirNotFound (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsEncoding (168.23s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/control_chars (4.80s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot (7.65s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/dot_dot (5.89s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/punctuation (7.37s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_space (5.65s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_tilde (8.72s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_CR (8.64s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_LF (5.96s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_HT (7.84s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_VT (6.36s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/leading_dot (6.08s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_space (8.56s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_CR (6.42s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_LF (8.34s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_HT (34.68s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_VT (11.06s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/trailing_dot (10.43s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/invalid_UTF-8 (5.23s)
            --- PASS: TestIntegration/FsMkdir/FsEncoding/URL_encoding (8.38s)
        --- PASS: TestIntegration/FsMkdir/FsNewObjectNotFound (0.15s)
        --- PASS: TestIntegration/FsMkdir/FsPutError (3.15s)
        --- SKIP: TestIntegration/FsMkdir/FsPutZeroLength (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsOpenWriterAt (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsOpenChunkWriter (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsChangeNotify (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsPutFiles (46.06s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListDirFile2 (0.81s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRDirFile2 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListR (0.84s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListRSubdir (0.64s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListDirRoot (0.41s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRDirRoot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListSubdir (0.33s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRSubdir#01 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListLevel2 (0.34s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsListRLevel2 (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListFile1 (1.09s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsNewObject (0.09s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsNewObjectCaseInsensitive (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListFile1and2 (0.84s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsNewObjectDir (0.09s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsPurge (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsPurgeRoot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsListRootedSubdir (12.13s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsCopy (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsMove (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsDirMove (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsRmdirFull (0.17s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsPrecision (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectString (0.11s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectFs (0.09s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectRemote (0.08s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectHashes (0.08s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectModTime (0.08s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectMimeType (0.08s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectMetadata (0.09s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectSetMetadata (0.09s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectSetModTime (0.08s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectSize (0.08s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpen (0.73s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpenSeek (0.54s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectOpenRange (1.80s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectPartialRead (0.45s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectUpdate (2.25s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectStorable (0.09s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFile (1.82s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFile/FsRoot (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FsIsFileNotFound (0.65s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot (8.55s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/List (1.51s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/ListEntries (0.20s)
                --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FromRoot/ListR (0.00s)
                --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/Put (6.64s)
                    --- PASS: TestIntegration/FsMkdir/FsPutFiles/FromRoot/Put/Remove (1.51s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/PublicLink (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/SetTier (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectCheckWrap (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/Bucket (0.00s)
            --- PASS: TestIntegration/FsMkdir/FsPutFiles/ObjectRemove (1.56s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/ObjectAbout (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/FsPutStream (0.00s)
            --- SKIP: TestIntegration/FsMkdir/FsPutFiles/Internal (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsPutChunked (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsCopyChunked (0.00s)
        --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize (2.13s)
            --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize/FsPutUnknownSize (0.11s)
            --- PASS: TestIntegration/FsMkdir/FsUploadUnknownSize/FsUpdateUnknownSize (2.03s)
        --- PASS: TestIntegration/FsMkdir/FsRootCollapse (0.65s)
        --- SKIP: TestIntegration/FsMkdir/FsDirSetModTime (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsMkdirMetadata (0.00s)
        --- SKIP: TestIntegration/FsMkdir/FsDirectory (0.00s)
    --- SKIP: TestIntegration/FsShutdown (0.00s)
PASS
ok  	github.com/rclone/rclone/backend/internxt	236.819s

@StarHack
StarHack force-pushed the internxt branch 2 times, most recently from eecde34 to 64d2452 Compare July 27, 2025 15:56
@egnrse

egnrse commented Jul 30, 2025

Copy link
Copy Markdown

Hey, ty for doing this. I cant seem to get it to work thought.

./rclone lsd internxt:
2025/07/30 10:09:01 CRITICAL: Failed to create file system for "internxt:": failed to login

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?

@lullius

lullius commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Hey, ty for doing this. I cant seem to get it to work thought.

./rclone lsd internxt:
2025/07/30 10:09:01 CRITICAL: Failed to create file system for "internxt:": failed to login

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.

@StarHack

Copy link
Copy Markdown
Contributor Author

@egnrse That was not possible until now but I just added it to the rclone implementation. Please use rclone config and set 2FA to true for your remote. You'll then be prompted to enter a 2FA code when mounting (or issuing other commands against the remote).

@StarHack

Copy link
Copy Markdown
Contributor Author

@ncw All test cases are now passing. I wanted to ask if we could merge this.

@Neustradamus

Copy link
Copy Markdown

@StarHack: Excellent, good job! :)

@cbertelli

cbertelli commented Sep 8, 2025 •

Copy link
Copy Markdown

I tried the StarHack/rclone fork with mixed results. I should point out the reason first.
I need to copy some folders from Google Drive to Internxt Drive.
I tried with v1.71.0, using the Internxt cli that provides a local webdav server, and I couldn't keep the modification dates. I tried with CrispStrobe/internxt-cli that provides a webdav server as well, with the same outcome.
I was hoping the native interface provided by StarHack could get the dates stored in Google Drive:

$ ./rclone copy gdrive:MYFOLDER internxt:MYFOLDER --metadata

The copy was successful but the date is today's date.
Is this a problem that could be solved by rclone or it's an Internxt limitation?

@StarHack

StarHack commented Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

@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.

@StarHack

StarHack commented Sep 8, 2025

Copy link
Copy Markdown
Contributor Author

@cbertelli Seems like the modified timestamps are preserved correctly but the WebUI seems to display a different timestamp (probably updatedAt).

"creationTime": "2025-05-16T10:51:42.000Z",
"modificationTime": "2025-05-16T10:51:42.000Z",
"createdAt": "2025-09-08T21:02:54.344Z",
"updatedAt": "2025-09-08T21:02:54.000Z",
"plainName": "wrar420",

One may verify this by using one of rclone's mount commands.

@cbertelli

Copy link
Copy Markdown

Thank you. Probably Internxt should take into account the chronology...

@ncw

ncw commented Sep 9, 2025

Copy link
Copy Markdown
Member

@StarHack

All test cases are now passing. I wanted to ask if we could merge this.

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

@ncw ncw added this to the v1.72 milestone Sep 9, 2025
@StarHack

StarHack commented Sep 9, 2025 •

Copy link
Copy Markdown
Contributor Author

@ncw

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 just checked and it seems like there's still an issue with two of these we need to figure out:

    sync_test.go:701: Server side copy (if possible) TestInternxt:rclone-test-... -> TestInternxt:rclone-test-...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x50 pc=0x10354f194]

Will take a look at it and report back once I get a chance to do so.

I'll put this on the milestone for the 1.72 release

Thank you.

@cbertelli

cbertelli commented Sep 10, 2025 •

Copy link
Copy Markdown

@StarHack
I tried to cp -a between the two mounted cloud (how much I love rclone for this!). The files show the right date and
the directories as well until I unmount the remote. After remounting it, the date changes. In fact this does not seem the case when I use rclone copy --metadata.
There is a long time question about date handling with directories in rclone, but I don't want to ask @ncw to explain the matter again and again. Thanks both for the wonderful program and for the new driver.

@cbertelli Seems like the modified timestamps are preserved correctly but the WebUI seems to display a different timestamp (probably updatedAt).

"creationTime": "2025-05-16T10:51:42.000Z",
"modificationTime": "2025-05-16T10:51:42.000Z",
"createdAt": "2025-09-08T21:02:54.344Z",
"updatedAt": "2025-09-08T21:02:54.000Z",
"plainName": "wrar420",

One may verify this by using one of rclone's mount commands.

@cbertelli

Copy link
Copy Markdown

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.
They will act on this issue, whose importance is not underrated, but the support staff couldn't provide a date.

@pawel319-1

pawel319-1 commented Oct 7, 2025 •

Copy link
Copy Markdown

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.
I’ve copied tens of thousands of files, and it works flawlessly.

Of course, I’ve run into a few issues, for example:

Failed to copy: can't upload empty files to this remote

Failed to copy: startResp.Uploads is empty

And exactly after 3 days (72h) of continuous operation, I get the following error:

Failed to copy: create meta failed: status 401, {"message":"Unauthorized","statusCode":401}

After that, the job needs to be stopped and restarted.

For anyone interested, here’s the command I’m using:

/usr/bin/rclone copy /mnt/myfiles internxt:myfiles --fast-list --ignore-existing --size-only --no-update-modtime --create-empty-src-dirs --transfers 2 --checkers 2 --contimeout 60s --timeout 300s --retries 10 --low-level-retries 10 --tpslimit 10 --no-update-dir-modtime --no-check-certificate --retries-sleep 3s --verbose --stats 1s --stats-file-name-length 0

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

@StarHack

StarHack commented Oct 8, 2025

Copy link
Copy Markdown
Contributor Author

@pawel319-1 Many thanks for your feedback.

The empty files error is expected behavior since the web UI returns the same:

Empty files are not supported.

The 72h session timeout behaves just like the web client as well (unfortunately) but could be addressed by using the /users/refresh endpoint in our client. This change (or an automatic relogin) would be also important for mounting.

@cbertelli

Copy link
Copy Markdown

@larryrider
I think the effort of @StarHack and @lullius deserves a proper handling of metadata when dealing with the backend.
I asked Internxt support when proper metadata handling will be added to the backend and this long lasting deficiency seems still not addressed by anyone. Is there some activity on this issue?

@larryrider

Copy link
Copy Markdown

@larryrider I think the effort of @StarHack and @lullius deserves a proper handling of metadata when dealing with the backend. I asked Internxt support when proper metadata handling will be added to the backend and this long lasting deficiency seems still not addressed by anyone. Is there some activity on this issue?

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.

@cbertelli

cbertelli commented Oct 15, 2025 •

Copy link
Copy Markdown

Hello, I'm sorry but I cannot reproduce this successful behaviour.
If I mount my Internxt drive with rclone and I copy a file to the directory that holds the mountpoint, I get the proper time and date. Great!
Unfortunately when I unmount it and mount it again, the dates are lost.
The same happens if I copy one file to internxt with:

rclone copy AnOldFile.txt internxt:

when I list files with:

rclone lsl internxt:

I don't get the original date of the file, but the time the file was transferred to my drive.
Maybe I do something wrong, but this is the behaviour I get.
Please help me to get this right, this prevented me to from moving lots of file to Internxt.

@ncw ncw modified the milestones: v1.72, v1.73 Nov 24, 2025
@cbertelli

Copy link
Copy Markdown

@lullius @StarHack,
Hello, I tried to build lullius' internxt_rewrite branch of rclone. Unfortunately, when building,
go build -tags cmount
I got:

backend/internxt/internxt.go:15:2: no required module provides package github.com/StarHack/go-internxt-drive/internxtclient; to add it:
	go get github.com/StarHack/go-internxt-drive/internxtclient

but the repository changed. Is there a way to go on or overcome this issue?

@StarHack

StarHack commented Jan 3, 2026

Copy link
Copy Markdown
Contributor Author

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.

@jzunigax2 jzunigax2 mentioned this pull request Jan 20, 2026
5 tasks done
@ncw

ncw commented Jan 30, 2026

Copy link
Copy Markdown
Member

This has been superseded by #9110

@ncw ncw closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants