tracecraft icon indicating copy to clipboard operation
tracecraft copied to clipboard

HF buckets are created public-by-default with no --private flag and no way to flip after (privacy footgun)

Open Arrmlet opened this issue 5 months ago • 0 comments

Summary

There's no way to control bucket privacy from the tracecraft flow, and the safe default for a tool that stores internal memory/transcripts should be private. Today you can easily end up with a public bucket holding internal coordination data, and there's no in-tool way to fix it after creation.

What happened

  1. tracecraft init --backend hf has no --private flag. When the bucket is created via huggingface_hub.create_bucket(...) without private=True, it defaults to public.
  2. There is no update_bucket in huggingface_hub (only create_bucket / move_bucket / delete_bucket / bucket_info), so an existing bucket cannot be flipped to private — the only remedy is delete + recreate with private=True.
  3. The privacy state isn't surfaced in init output, so it's easy to not notice you're public.

In my run I only caught it because I checked bucket_info manually:

BucketInfo(id='arrmlet/tracecraft-apex', private=False, ...)

and had to delete_bucket + create_bucket(private=True) before pushing anything internal.

Why it matters

tracecraft's whole purpose is storing memory, handoffs, and mirrored session transcripts — frequently internal/proprietary. Public-by-default with no flag and no after-the-fact fix is a real data-exposure footgun. (The transcript mirror is large, too — 144 MB in my case — so a public bucket leaks a lot.)

Suggested fix

  1. Default HF buckets to private when tracecraft creates them.
  2. Add a --private/--public flag to init (and to any future bucket create command).
  3. Surface the privacy state in init output, e.g. Backend: HuggingFace Buckets Bucket: arrmlet/x (private).
  4. Since huggingface_hub has no update_bucket, document the delete+recreate workaround for changing privacy, or add a tracecraft bucket set-private helper that does it safely (only when empty).

Related

  • Pairs with #7 (init not creating the bucket) — both are HF-backend onboarding sharp edges. If init auto-creates the bucket, it should create it private and accept a --public opt-out.

Env

  • tracecraft-ai 0.2.1, huggingface_hub 1.12.0, HF backend.

Arrmlet avatar Jun 07 '26 23:06 Arrmlet