Skip to content

v1.5.0

Latest

Choose a tag to compare

@arcjet-rei arcjet-rei released this 03 Dec 16:51
Immutable release. Only release title and notes can be modified.
611be53

1.5.0 (2026-12-03)

Highlights

Content moderation now tells you what it found. When GuardModerateContent flags text, GuardModerateContentResult.DetectedCategories lists the categories it detected, such as arcjet.ModerationCategoryHateSpeech or arcjet.ModerationCategoryInsults, so you can log the category or show the user a more specific message. Read about content moderation

The Rampart backend scans up to 100,000 characters by default, the same default as the JavaScript and Python SDKs, up from 4,096. Its default recognizers also find labelled bank account numbers, ABA routing numbers, apartment and suite numbers, and US states.

The optional Rampart backend, github.com/arcjet/arcjet-go/sensitiveinfo/rampart, is released in lockstep at v1.5.0.

🔒 Security updates

Fixes GHSA-8j4r-jvrq-q6wh

⚠ BREAKING CHANGES

Note

Guard now fails closed. A direct Guard call returns ConclusionDeny with ReasonError when a required live check has no result: a timeout, an unavailable response, or a missing or invalid live-rule verdict. Guard also returns the RPC error, when there is one. Previously these calls returned a ConclusionAllow for which HasFailedOpen() was true. Call decision.ErrorResults() to see which check failed. GuardAction already blocked by default and still does, and OnGuardError: arcjet.OnGuardErrorAllow on an action still lets an unavailable check through. Protect is unchanged.

Guard migration guidance

Note

Decision.IsAllowed() is now false for an ERROR decision, as is_allowed() already is in the Python SDK. Protect still returns an ERROR decision, not a denial, when its call to Arcjet fails, so code that blocks only when IsDenied() is true is unaffected. Code that serves a request only when IsAllowed() is true now blocks it when Arcjet cannot decide. To keep the old behaviour:

if decision.IsAllowed() || decision.Conclusion == arcjet.ConclusionError {
	// serve the request
}

Do not use IsErrored() for this: it is also true for a denial with an error reason, such as text over a sensitive-info scan limit.

Note

A live SensitiveInfo or GuardSensitiveInfo rule changes in three ways. A scan that its context stops before it finishes, such as when Protect's deadline passes, now denies the request; a scan that had already found a denied entity denies with that entity. Without a backend, text longer than 1,048,576 characters (arcjet.BundledSensitiveInfoMaxInputChars) is denied without being scanned. Card numbers are detected with the Arcjet server's definition: the Rampart backend takes them from arcjet.DetectCardNumbers, and rampart.CreditCardRecognizer is deprecated and no longer in DefaultRecognizers.

With the Rampart backend's new 100,000-character default, a scan of more than about 20,000 characters can outlast Protect's two-second default deadline, and is then denied. Set a longer deadline on the request's context, or set MaxInputChars. Guard sets no deadline on a local scan, so Guard callers should set their own.

Note

The redact package is deprecated and will be removed in a future release. Move to the SensitiveInfo rule where possible. In this release, redact.New rejects an entity name that is not built in unless you pass a Detect function, and Redact returns redact.ErrNotReversible when Unredact could not restore the original text.

  • guard: fail closed when required live checks are incomplete (#126)
  • IsAllowed reports false for an ERROR decision, and Rampart scans up to 100,000 characters by default (#131)
  • sensitive-info: deny a scan that its context stops before it finishes (#130)

🚀 New Features

  • guard: expose detected content moderation categories (#123)
  • sync analyze 38753f0 and well-known-bots c413909 (#121)
  • sync well-known-bots 18631dc (#125)

🪲 Bug Fixes

  • improve sensitive information handling (#127)
  • regenerate the wasm bindings and bound each guest call (#128)
  • sensitive-info: use the shared card detection and validate redact entities (#124)

⚡ Performance

  • reuse compiled wasm guests across clients (#129)

📝 Documentation

  • redact: deprecate the redact package (#122)

🧹 Miscellaneous Chores

  • release: 1.5.0 (#132)