You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to support cloud filesystems to sign models stored in cloud buckets without downloading them locally. This is especially useful if we want to sign large models.
I'd like if we could have an API that takes as input a file system interface. If we only need to support simple operations like read, write, list dir, do you think it would be viable?
If the filepath is a local file then the local filesystem would be used, otherwise, the prefix URI scheme would redirect to the corresponding cloud implementation.
But we don't want a dependency on TF, so I'm searching to see if there is another library we can use instead
I opened #657 to address this. @mihaimaruseac, could you take a look when you have a chance?
The implementation allows model payloads to use GCS or S3 URIs while keeping keys, certificates, trust configuration, and signature bundles local. Remote payloads are traversed through etils.epath, read in bounded chunks, and use seek/range reads for sharded hashing.
Validation covered Python 3.10 through 3.14 with 208 passing tests per version (1,040 executions total). Cloud-specific coverage uses an isolated in-memory gs:// backend and includes hashing, signing, verification, tamper detection, ignore paths, BLAKE3, sharded reads, and CLI digest behavior.
Live GCS and S3 credentials were not exercised and the PR has this limitation called out.
Hey, I was looking at cloud filesystem support and saw #657 already implements it with etils.epath. It's been open since August and now conflicts with main. Are you still working on it, or would it help if I rebase and finish the review feedback?
Thanks for checking @raajheshkannaa , I’m still working on #657. I’ve updated it against current main and validated the cloud paths locally on Python 3.11–3.14. The PR workflows are awaiting maintainer approval @mihaimaruseac could you pls check when convenient?
Activity
laurentsimon commentedon Mar 25, 2024
I'd like if we could have an API that takes as input a file system interface. If we only need to support simple operations like read, write, list dir, do you think it would be viable?
mihaimaruseac commentedon Mar 25, 2024
Was thinking to maybe do something similar to TF's
GFileAPI and then our API will just have code likeIf the
filepathis a local file then the local filesystem would be used, otherwise, the prefix URI scheme would redirect to the corresponding cloud implementation.But we don't want a dependency on TF, so I'm searching to see if there is another library we can use instead
mihaimaruseac commentedon May 14, 2024
I think we should make this a low priority, given there doesn't seem to exist an OSS dependency that doesn't bring in TF at this point.
mihaimaruseac commentedon Sep 30, 2024
We can use
etils[epath]for this, it implements the API without needing to also depend on TFMake the package executable.
Make the package executable. (#375)
Reduce verbosity in file hashing
Reduce verbosity in file hashing (#395)
goutamadwant commentedon Aug 18, 2026
I opened #657 to address this. @mihaimaruseac, could you take a look when you have a chance?
The implementation allows model payloads to use GCS or S3 URIs while keeping keys, certificates, trust configuration, and signature bundles local. Remote payloads are traversed through
etils.epath, read in bounded chunks, and use seek/range reads for sharded hashing.Validation covered Python 3.10 through 3.14 with 208 passing tests per version (1,040 executions total). Cloud-specific coverage uses an isolated in-memory
gs://backend and includes hashing, signing, verification, tamper detection, ignore paths, BLAKE3, sharded reads, and CLI digest behavior.Live GCS and S3 credentials were not exercised and the PR has this limitation called out.
mihaimaruseac commentedon Aug 18, 2026
I'll take a look when I'm back from travel. Thank you!
raajheshkannaa commentedon Nov 17, 2026
Hey, I was looking at cloud filesystem support and saw #657 already implements it with etils.epath. It's been open since August and now conflicts with main. Are you still working on it, or would it help if I rebase and finish the review feedback?
goutamadwant commentedon Nov 18, 2026
Thanks for checking @raajheshkannaa , I’m still working on #657. I’ve updated it against current main and validated the cloud paths locally on Python 3.11–3.14. The PR workflows are awaiting maintainer approval @mihaimaruseac could you pls check when convenient?