Security & AI

The Hugging Face Spaces secrets incident: practical lessons for every integration

Hugging Face disclosed unauthorised access relating to Spaces secrets and recommended rotating affected tokens. The incident is a useful reminder that a secret manager does not remove the need for scoped credentials and recovery plans.

Source links included
Editorial image accompanying The Hugging Face Spaces secrets incident: practical lessons for every integration

Context

What happened, and why it matters

Hugging Face said it revoked a number of tokens, introduced key-management changes, removed organisation tokens from Spaces and strengthened leaked-token detection. The provider’s disclosure should be read directly for the precise scope it reported.

A token stored in a deployment platform can inherit more authority than the application needs. If exposed, broad or long-lived credentials increase the potential impact and make investigation harder.

Teams should maintain an inventory that links each secret to an owner, system, purpose, permission scope and rotation procedure. Rotation must include updating every dependent service and confirming the old credential no longer works.

Separate the announcement from the outcome

The named source explains what its publisher announced or recommended. It does not guarantee availability, suitability or results for every organisation.

Details

A useful way to read the update

ControlReason
Fine-grained tokenLimits accessible resources and actions
Separate environmentsPrevents a development incident reaching production
Rotation runbookShortens recovery time
Audit trailSupports investigation and accountability
Leak scanningFinds accidental exposure in code and logs

Work through the guide

Set a proportionate review scope

A simple prompt, not a score or recommendation.

Decision check

Put the update in your own context

Decision path

Move from news to a controlled change.

  1. 1ReadPrimary source
  2. 2CheckYour context
  3. 3TestLimited scope
  4. 4ReviewUseful evidence
  5. 5RecordDecision & owner

Practical response

What to do next

  1. 01

    Inventory API keys and service tokens.

  2. 02

    Replace shared or broad credentials.

  3. 03

    Separate development and production secrets.

  4. 04

    Test the complete rotation procedure.

  5. 05

    Revoke unused tokens and monitor provider alerts.

Work through the guide

Start here

Known position

Document the current journey, evidence and owner before changing a live process.

Questions

How to use this update responsibly

What period does this article cover?

31 May 2024 disclosure; lessons remain current. The article was published on 17 September 2026; check the linked source for changes made later.

Does the announcement mean every organisation should adopt it?

No. Availability, cost, risk and usefulness depend on the specific workflow. A limited test with an owner and measurable acceptance criteria is more informative than a provider demonstration.

How should unverified discussion be treated?

Forum posts, rumours and individual reviews can reveal questions worth testing, but they do not establish prevalence or fact. Confirm material decisions through primary documentation, direct testing and qualified advice where necessary.

Relevant service

Need help applying this to your own setup?

Our security, privacy & accessibility service can help you review the current position, decide what is proportionate and plan a clearly scoped next step.

Explore Security, privacy & accessibility

Sources

Read the original material

These sources support the factual description above. External pages can change after our publication date.

Cookie settings

Choose what this site may use

Optional categories are off by default. Change these choices at any time from the cookie button.

See the cookie policy for the current list and more information about each category.

Accessibility

Adjust your reading experience

These controls supplement the underlying website.

Text size

UserWay is an optional third-party accessibility tool. Loading it connects to UserWay; the built-in controls remain available without it.

Live chat

Start a conversation.

Privacy information

Google reCAPTCHA helps protect this form from spam. Google privacy · Google terms.

Open contact form

Prefer email? [email protected]