Skip to content

Support cloud filesystems #148

Open

Description

@mihaimaruseac

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.

Activity

  1. added
    enhancement
    on Mar 22, 2024
  2. laurentsimon commented on Mar 25, 2024

    @laurentsimon
    Collaborator

    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?

  3. mihaimaruseac commented on Mar 25, 2024

    @mihaimaruseac
    MemberAuthor

    Was thinking to maybe do something similar to TF's GFile API and then our API will just have code like

    with gfile.open(filepath) as f:
      do_something_with(f)

    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

  4. mihaimaruseac commented on May 14, 2024

    @mihaimaruseac
    MemberAuthor

    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.

  5. mihaimaruseac commented on Sep 30, 2024

    @mihaimaruseac
    MemberAuthor

    We can use etils[epath] for this, it implements the API without needing to also depend on TF

  6. added
    good first issue
    help wanted
    on Mar 28, 2025
  7. added this to the V1.1 release milestone on Mar 28, 2025
  8. goutamadwant commented on Aug 18, 2026

    @goutamadwant

    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.

  9. mihaimaruseac commented on Aug 18, 2026

    @mihaimaruseac
    MemberAuthor

    I'll take a look when I'm back from travel. Thank you!

  10. raajheshkannaa commented on Nov 17, 2026

    @raajheshkannaa

    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?

  11. goutamadwant commented on Nov 18, 2026

    @goutamadwant

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions