Skip to content

docs: HF token auth + CI egress; release 1.1.0#60

Merged
lab700xdev merged 1 commit into
mainfrom
slice-59-auth-ci-docs-release
Jun 5, 2026
Merged

docs: HF token auth + CI egress; release 1.1.0#60
lab700xdev merged 1 commit into
mainfrom
slice-59-auth-ci-docs-release

Conversation

@lab700xdev

Copy link
Copy Markdown
Contributor

Documents the HF token auth + status-aware fetch-error feature set (#56/#57/#58) in the public README and bumps to 1.1.0 — the release-gate slice.

Changes

  • README "Authentication" subsection: HF_TOKENHUGGING_FACE_HUB_TOKEN precedence, huggingface.co-only token scope (dropped on the LFS-CDN redirect), "never logged or in telemetry — only the token_present boolean" line, CI snippet with secrets.HF_TOKEN, and an egress note (HTTPS to huggingface.co + its LFS CDN).
  • Telemetry & Privacy: discloses the new cli_error http_status bucket and token_present boolean; reaffirms the token value is never collected.
  • CHANGELOG: neutral 1.1.0 entry.
  • Version: 1.0.7 → 1.1.0.

Verification

  • poetry run pytest --cov=aisbom --cov-fail-under=85227 passed, 88.72% (in the slice-59 worktree off origin/main).

The actual gh release create (PyPI publish + @v1 float + changelog regen) is run separately after merge.

Surface the #56/#57/#58 feature set to users and gate the release:

- README "Authentication" subsection — env token (HF_TOKEN, then
  HUGGING_FACE_HUB_TOKEN), huggingface.co-only scope, never
  logged/telemetered (only the token_present boolean), CI snippet with
  secrets.HF_TOKEN, and an LFS-CDN egress note.
- Telemetry & Privacy: disclose the new cli_error http_status bucket and
  token_present boolean; reaffirm the token value is never collected.
- CHANGELOG: neutral 1.1.0 entry.
- Bump version 1.0.7 -> 1.1.0.
@lab700xdev lab700xdev merged commit 26b1d70 into main Jun 5, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af3105649a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
aisbom scan hf://your-org/private-model
```

The token is sent **only** to `huggingface.co` as a bearer credential on the model-metadata requests; it is dropped on the redirect to the presigned LFS CDN and is never attached to any other host. It is **never written to logs and never included in telemetry** — the only token-related field we emit is a `token_present` boolean (whether *a* token was set), never the value itself. See [Telemetry & Privacy](#telemetry--privacy).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Disclose token use on range requests accurately

This privacy/security wording is too narrow for the behavior in aisbom.remote: after the model tree request, RemoteStream._fetch_size() and RemoteStream.read() also add _auth_headers(self.url) to the huggingface.co/.../resolve/... Range requests before the cross-host CDN redirect strips auth. In environments that review where bearer credentials are sent, documenting only “model-metadata requests” understates the actual same-host file resolve/range requests; please update the docs to mention both metadata and resolve/range requests to huggingface.co.

Useful? React with 👍 / 👎.

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.

1 participant