Install

Works with Drupal: ^10.6 || ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 703.92 KB
MD5: 8cfbbad45248389eb3c14b58f1af188e
SHA-1: ddb9302fda4945c87ff95cfdeb16c5cc863d6d28
SHA-256: bf2abc6ecd1c49cabb540e953876429237f7bd0833f3cd47bb5a3e0593baa554
Download zip 908.92 KB
MD5: 74abd1b59ef4305f8f081ca4a7955cb9
SHA-1: 4fc919ce4e1b0bba6d0401111d506904ab4f41c0
SHA-256: e8ed57dba5e435c82f181d22f08347aaebc44926206e7a76d7535fbecabe222d

Release notes

## [3.5.0] - 2026-10-23

### Added
- Drupal 12 is a declared core target (`^10.6 || ^11.3 || ^12`) on the
main module, the approval / GraphQL / server submodules, test
modules, and `composer.json`. The 10.6 and 11.3 floors are unchanged
(#3628108: Automated Drupal 12 compatibility fixes for mcp_sentinel 1.x-dev(https://www.drupal.org/node/3628108)).

### Changed
- Install and tests grant role permissions through
`McpRolePermissions::grant()` instead of
`user_role_grant_permissions()`, which Drupal 11.5 deprecated
(removed in 13). The helper uses override-free role storage and
`grantPermission()` so the same path works on 10.6, 11.3, and 12.
- The module help page now states that agent kill-switch
stops are Drush-only and points at `docs/kill-switch.md`.
API.md and operator comments match that surface: there
is no Drupal-side kill-block UI. Schema descriptions
and the 10036 already-present message no longer carry
ticket-id prefixes. Update 10036 still says
"already present" and "Drain or review the webhook
queue before updb".
- GitHub Actions refreshes locked contrib to latest-stable
after the recommended-project scaffold so it cannot stay
on an older `audit_chain` than drupal.org.
- `phpstan.neon.dist` keeps a single
`function.unusedParameter` ignore for Drupal hook
implementations (`mcp_sentinel.module`,
`modules/*/*.module`, and the rogue-auth stubs). The
duplicate path list is gone.

### Fixed
- `McpPrincipalAuthGuardBypassTest::testDecoratedModuleHandlerRewireIsDenied`
no longer fatals on drupal.org GitLab CI when the
module's real path sits outside the docroot.
The shared `FakeTestModuleExtensionTrait` derives the
fake `mcp_sentinel_test.info.yml` from
`getModule('mcp_sentinel')->getPath()` and throws a
`LogicException` if that file is missing under the
app root. GitHub Actions runs the Kernel suite in a
gitlab_templates-shaped layout with
`zend.assertions=1`. The first layout leg ran with
assertions off and stayed green on the broken fixture.
tests-gate greps `tests/` for
`modules/(contrib|custom)/mcp_sentinel`. The GitHub job
expands composer.json the way gitlab_templates does, and
the deny test asserts the live handler path before
refusing.
- Latest-stable contrib refresh fails the job when
`composer show --locked` fails or lists no contrib,
instead of skipping the refresh and exiting 0.
- `McpHistoricalExceptionTest` installs `system` date-format
config so `audit_chain` 1.12.2 `ScheduledVerifier::runNow()`
can format the last-run time through `date.formatter`.
Kernel tests that omit those entities fataled on
`DateFormatter::format()` (`getPattern()` on null) after
that release started interpolating the run time.
`audit_chain` 1.13.0 formats verifier presentation with
`DATE_ATOM`, so that path no longer depends on date-format
config. The test-setup install is therefore unnecessary,
but it is still correct and is kept so the test stays
independent of the `audit_chain` version.

### Security
- Sealed-token authentication denials now write a `denied_access`
audit_chain row (`tool: sealed_token`) with a stable reason:
`malformed`, `bad_signature`, `expired`, `unknown_token`,
`revoked`, `hash_mismatch`, `client_not_designated`,
`audience_mismatch`, `consumer_missing`, `consumer_unpublished`,
`owner_mismatch`, `account_missing`, `account_blocked`. Metadata
is non-secret only (jti or a 12-hex token-hash prefix, uid,
client_id, site, path). The bearer and signature are never
stored. Repeat denials of the same reason and principal
collapse to one row per 60-second window
(`mcp_sentinel.settings:sealed_token_deny_audit_window`,
1..3600; invalid values use 60), whatever the request
host or path. The row keeps the site and path
of the first denial in the window. A throwing audit write still
denies; the failure is logged on `mcp_sentinel` with the
exception class only. Apply with `drush cr` (last hook remains
10039).
- 3.4.0 left `mcp_sentinel.principal_auth_extension` as
an unguarded admission hook. Audit enabled modules for
a `mcp_sentinel.principal_auth_extension` service. That
release said a site that does not enable
`mcp_sentinel_test` cannot obtain a principal from
`mcp_sentinel_role_fallback_test_principal` or skip the
claimless seal; that held only while no other module
registered the hook. Production now owns those checks:
`fallbackClaims()` runs only after the fallback stamp
and `permitted()` (which refuses a proxied hop), and
keeps `iss`/`sub`/`azp`/`tenant` only. The subscriber
evaluates the claimless predicate before
`deferClaimlessSeal()`. The hook id is
`mcp_sentinel_test.principal_auth_extension`. The
compiler pass at `TYPE_BEFORE_OPTIMIZATION` (-1000)
removes the legacy id and a namespaced definition
that `mcp_sentinel_test` does not own. Ownership is
that module's real path (info.yml basename) against
`container.modules` (the same map the compiler pass
uses), not `@module_handler`, not a class-namespace
prefix, and not a provider name. The factory and
subscriber fail closed on the wired object; the
subscriber re-checks before `deferClaimlessSeal()`.
A refused wired object, a compile-time removal, and
stripped claims each write an `audit_chain` row
(`refused`, or `claims_stripped` when extra keys are
dropped). Compile-time refusals flush once per
compiled parameter hash (state-keyed: once per
rebuild, not every request). Provider attribution
uses the longest path prefix.
Sites on 3.4.0 apply this with `drush cr`, not
`updatedb`: there is no new update hook (last is
10039). The interface is `@internal`. The
kill-block reader seam is veto-only: a decorator
may make a block unreadable, never expired. A NULL
`block_until` read still blocks on re-issue.

### Removed
- Unused `McpSealedTokenManager::MAX_TTL` is gone. Mint TTL
is clamped to `TTL_CHOICES` (`clampTtl()`); 86400 remains
the 24-hour choice, not a separate ceiling.
- Unused alias `McpOperatorBinding::UID_UNIQUE_INDEX` is
gone (same value as `McpOperatorBindingUidSchema::INDEX`,
zero callers).
- Unused `McpPrincipalContextGuard::WEAKEN_SKIP_SCOPE` and
the dispatcher short-circuit that skipped
`assertScopesAllowed()` are gone. Nothing set the flag,
so the skip was permanently false. Scope checks stay
fail-closed. `WEAKEN_SKIP_KILL` remains.

### Known issues
- A later compiler pass with installed PHP can
silently forge `container.modules`. Runtime
ownership then treats the forged map as truth, so
no refusal row is written.
- A later compiler pass with installed PHP can delete
the compile-refusal parameter. The refused hook stays
removed, but `flushCompileRejections()` finds no
parameter and writes no refusal row.
- Sealed-token denial floods collapse to one
`denied_access` row per reason, principal, and
window, so a count-based `denied_access` rule, such
as the README's Denied access storm example (20 in
300 s), sees one row per window.

### Upgrade
- No database update. The last hook remains 10039.
Sites on 3.4.0 apply with `drush cr`, not `updatedb`.
Audit enabled modules for a
`mcp_sentinel.principal_auth_extension` service.
`McpSealedTokenManager` gained a
`McpSealedTokenDenialAuditor` argument. Until the
container is rebuilt, resolving the manager fails
with a TypeError.

Created by: jmcerda
Created on: 23 Oct 2026 at 07:06 UTC
Last updated: 23 Oct 2026 at 07:07 UTC
New features
Bug fixes
Unsupported

Other releases