Skip to content

Releases

Bedrock Guardrail Firewall v4.1.2

Choose a tag to compare

@github-actions github-actions released this 18 Nov 17:24
c56aed8

Changelog

All notable changes to this project are documented here.

The format follows Keep a Changelog, and versions follow semantic versioning.

Unreleased

4.1.2 - 2026-11-18

Added

  • Added a credential-free application request-gate example with an explicit server-side authorization boundary.
  • Added an owner-reviewed release tag workflow that accepts only the approved signed protected-main commit and matching stable version.

Changed

  • Refresh the paired boto3/botocore AWS integration pins to 1.43.127 and the development Ruff pin to 0.17.5.

Fixed

  • Generate policy templates with the same bounded prompt-pattern forms as the shipped policy, so generated policy and profile templates pass the normal offline loader.
  • Record metrics after required audit failures finalize enforcement, preserving one outcome per recorded request and noncritical metrics failure handling.
  • Correct the live audit-verification flag and align deployment state permissions with current final namespace admission.

Security

  • Refresh the reproducible build lock, including setuptools 84.2.1.

  • Require protected owner-only Windows final state namespaces and existing JSON leaves without silently repairing permissions. Create state temporaries, review/incident directories and evidence reservations through the pinned private descriptor helper before writing.

  • Preserve private POSIX state reads and writes below a retained root-owned sticky temporary ancestor; final directories and files still require private ownership and permissions.

  • Preserve Unicode separators and value whitespace for opaque-token labels while keeping label case matching and token alphabets explicitly ASCII.

  • Reject required integration profiles with release-permitting failure actions, validate runtime-required Presidio at startup, and enforce a minimum review on required failure paths.

  • Bound the materialized Bedrock response before projection by bytes, cardinality, strings, keys and nesting; accumulate transformed text within character and UTF-8 limits before joining while retaining original per-finding scoring order and metrics.

  • Apply ASCII format boundaries to credential, email, IBAN and CUI recognizers while retaining Unicode normalization and bounded matching.

  • Require literal JSON booleans for required grounding and profile controls.

  • Require reviewed source bytes in every wheel/source-distribution provenance validation call, including default API admission.

  • Keep audit events, chain head and trusted checkpoint comparison under one coherent writer lock.

  • Re-evaluate current local release permission before each live content-evaluation call after transformations.

  • Keep behavior-state reads and compact writes within the same 16 MiB encoded-byte limit, evicting oldest entries by both count and byte capacity.

  • Recognize compact JWT/JOSE credentials structurally, including signed headers with JSON whitespace, before input, output, or retrieval content reaches cloud evaluation. This detects sensitive content; it does not authenticate tokens. Oversized compact candidates fail closed before decoding.

  • Reject whitespace or case collisions in normalized policy identifiers before enforcement or digest acceptance. Existing valid policy digests remain unchanged.

  • Redact complete PEM private-key blocks under explicit SANITIZE policies; unknown, incomplete, nested, oversized, or explicitly allowed private keys fail closed.

  • Authenticate every source-distribution source member and static generated metadata against the reviewed source, without importing build hooks.

  • Bound shared JSON reads to one no-follow regular-file descriptor and a maximum-byte budget, with component-relative traversal on POSIX and Windows.

  • Bind release validation and checksums to the same immutable artifact snapshots; reject unreviewed archive extensions and hidden trailing streams.

  • Block premature or orphan private-key footers and reject unsupported regex syntax instead of bypassing complexity validation.

  • Validate competing policy regex atoms with Python's actual Unicode case-insensitive matching semantics, rejecting ambiguous scoped flags.

  • Protect local lock namespaces and random diagnostic probes before writing, rejecting links, unsafe owners, and other-principal mutation permissions.

[4.1.1] - 2026-09-29

Changed

  • Removed the unsupported Beta development-status classifier from the installable package metadata. This is a metadata correction; runtime behavior is unchanged from 4.1.0.

[4.1.0] - 2026-08-27

Added

  • Conventional wheel and source-distribution metadata with a typed public library interface
  • bedrock-guardrail-firewall console entry point
  • Pinned aws and presidio optional dependency groups
  • Exact botocore service-model pin and SHA-256 verification for the Presidio English model wheel
  • Offline six-case sanitized demo with measurable decision and containment results
  • Continuous-integration package build, metadata, clean-install, import, resource, and CLI checks
  • Scheduled Semgrep and Trivy scans with native GitHub code-scanning uploads and retained SARIF evidence
  • Two-stage draft-release and trusted-PyPI publication workflows with immutable action pins and protected approval
  • Reproducible wheel and normalized source-distribution builds with SHA-256 evidence and provenance attestations
  • Deterministic SPDX 2.3 dependency SBOM covering the exact pinned optional package groups
  • Release validation for stable identity, metadata uniqueness, archive safety, wheel RECORD coverage, and non-overwrite behavior
  • Installed-wheel validation for both missing-model failure and full pinned Presidio initialization

Changed

  • Installed execution resolves explicit relative paths from the working directory while direct one-file execution preserves source-relative behavior
  • Installed packages retain their bundled default policy documents while runtime state remains outside the package directory
  • Distribution metadata and runtime version identify the stable 4.1.0 release
  • Quick start now covers a clean Windows, Linux, or macOS source installation
  • GitHub workflows avoid retaining checkout credentials and Dependabot updates use explicit cooldowns
  • Test doubles avoid unnecessary wrappers and local-variable deletion flagged by CodeQL

Security

  • Serialized shared Presidio initialization so concurrent requests wait for a complete analyzer or receive the same fail-closed initialization error
  • Added defensive degraded-state handling when a required Presidio analyzer is unexpectedly unavailable
  • Expanded sanitized-demo evaluation containment across Python socket creation, connection, and name-resolution entry points
  • Redacted AWS request previews use a non-HTML marker while continuing to expose only length and digest metadata
  • Release workflows require an exact five-asset set, bind the SBOM and evidence to the checked-out commit, and reject non-portable archive names

[4.0.0] - 2026-08-12

Added

  • Standard-library-only offline core
  • Explicit disabled, preview, and live AWS modes
  • Two-part CLI authorization gate for live AWS calls
  • Current Amazon Bedrock ApplyGuardrail adapter for input and output
  • Grounding-source, query, and guard-content qualifiers
  • Redacted AWS request preview
  • Optional Microsoft Presidio integration with deterministic fallback recognizers
  • PII, credential, token, private-key, and controlled-marking detection
  • Luhn and IBAN checksum validation
  • Input, output, and retrieval-context sanitization
  • Local short-circuiting that prevents live cloud transmission after review, escalation, or block decisions
  • Local re-evaluation and size validation of transformed cloud content
  • Prompt-injection and zero-width obfuscation detection
  • Denied-topic, blocked-term, masked-term, and exfiltration controls
  • Role, capability, classification, and clearance enforcement
  • Lexical grounding and citation checks
  • Trusted policy profiles and exact policy-digest pinning
  • Strongest-action decision precedence and risk floors
  • Monitor and enforce modes
  • Capability restrictions based on recommended action
  • Metadata-only audit, review, incident, behavior, and metrics records
  • HMAC-SHA256 subject pseudonyms and content digests
  • Secure privacy-key injection for ephemeral and multi-instance deployments
  • Cross-platform advisory file locks and atomic state writes
  • SHA-256 audit hash chain and integrity verification
  • Optional KMS audit signatures
  • Optional S3 Object Lock audit delivery with KMS encryption
  • Optional tiered SQS review routing
  • Bounded behavior retention and request sizes
  • Lambda handler with strict request parsing and authorizer trust boundary
  • Doctor, policy validation, self-test, red-team, chaos, metrics, and audit commands
  • Opt-in action-specific CLI exit codes
  • 163-test core and optional-integration suite, 85 percent branch-aware coverage, and cross-platform continuous integration
  • Threat model, policy schema, deployment guide, quick reference, and project governance

Changed

  • Replaced reversible encryption with non-reversible redaction
  • Replaced legacy model-centric behavior with a model-independent guardrail firewall
  • Replaced outdated dependency ranges with isolated pinned dependency groups
  • Replaced the legacy deployment document with maintained Markdown documentation

Security

  • Removed implicit AWS client creation
  • Removed fail-open production paths
  • Removed untrusted request control over policy profiles
  • Removed raw content from operational evidence
  • Added duplicate-key and unknown-field rejection
  • Added safe regex validation and strict JSON bounds
  • Added public-response filtering for local and cloud resource details
  • Added blocked-content suppression and request-identifier pseudonymization in stored evidence
Read more

Bedrock Guardrail Firewall 4.1.1

Choose a tag to compare

@github-actions github-actions released this 29 Sep 14:53
v4.1.1
1f52d1e

Bedrock Guardrail Firewall 4.1.1

This patch corrects package metadata. The 4.1.0 PyPI upload carried a Beta development-status classifier without a documented maturity decision. Version 4.1.1 omits that classifier. Runtime policy behavior is unchanged from 4.1.0.

The wheel and source distribution passed the full protected-main CI and security matrix. The downloaded draft's SHA-256 checksums match its release evidence, both distributions passed Twine checks, and clean Windows Python 3.12 installs reported 4.1.1. The offline doctor reported ready with AWS network calls disabled. GitHub provenance verifies the wheel and source distribution.

The release includes the wheel, source archive, SPDX 2.3 dependency SBOM, SHA256SUMS.txt, and commit-bound release-evidence.json. Compare the checksums before installation. The Presidio English model remains optional; disabling Presidio uses deterministic recognizers and does not make a live AWS call.

PyPI publication follows this reviewed GitHub release through a separate protected trusted-publishing workflow. Existing 4.1.0 artifacts remain unchanged.

Bedrock Guardrail Firewall 4.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Sep 13:39
0f99bd0

Bedrock Guardrail Firewall 4.1.0

This release adds a conventional Python wheel and source distribution, a typed library interface, and the bedrock-guardrail-firewall command. The default first-use path runs offline. Live Amazon Bedrock ApplyGuardrail calls require explicit configuration and workload authorization.

What changed

  • Packaged policy defaults and separated installed runtime state from the package directory.
  • Added pinned optional dependency groups for AWS and Presidio, with verification of the required Presidio model and botocore service model.
  • Serialized shared Presidio initialization and fail closed when a required analyzer is unavailable.
  • Added an offline six-case sanitized demo and expanded containment tests.
  • Added reproducible build checks, an SPDX 2.3 dependency SBOM, release evidence, and SHA-256 checksums.

See the full changelog for details and the README for an offline first run.

Installation

After the PyPI project lists this exact version, install it with:

python -m pip install bedrock-guardrail-firewall==4.1.0

Until PyPI publication is verified, use the source installation instructions in the README. The attached wheel and source archive are accompanied by SHA256SUMS.txt, release-evidence.json, and an SPDX SBOM.

Automated checks and local policy signals help identify risks; they do not establish that content is safe or that a workload meets a particular compliance requirement. Live AWS mode can transmit locally sanitized content to the configured guardrail.