Commit Graph

9 Commits

Author SHA1 Message Date
pulse-triage[bot]
6e156073de Serialize tenant API token validation and usage metadata
Use the same exclusive config writer for tenant and global token normalization and LastUsedAt updates. Clone the validated record before releasing it, then recheck the cached tenant owner across the lock transition. Keep live revocation, organisation, owner and scope enforcement and explicit credential precedence.

Contract-Neutral: Restores the existing concurrency, live-owner and tenant-isolation guarantees without changing public fields, token authority, organisation membership, archive formats or reload policy.
Change-source: pulse-maintainer
2026-10-25 02:56:30 +00:00
pulse-triage[bot]
a4646caec9 Cover concurrent tenant route authentication and token metadata
Exercise four concurrent callers through route revalidation and middleware with cached synthetic tenant owners. Preserve token identity, organisation, owner, scope checks and live usage metadata, with a global-inventory control and no monitored runtime.

Change-source: pulse-maintainer
2026-10-25 02:53:06 +00:00
pulse-triage[bot]
13100030d1 Model resolved tenant context in route-auth unit controls
The full consuming router import now passes. Direct auth controls must also supply TenantMiddleware's resolved organisation before testing route enforcement; missing context correctly denotes the default scope. Keep the positive, revocation, replacement and forged-context assertions without relaxing runtime validation.

Change-source: pulse-maintainer
2026-10-25 02:11:44 +00:00
pulse-triage[bot]
3b6483fce6 Keep tenant authentication bound to the current runtime owner
Use the configuration handler's locked monitor-manager reference for auth-context extraction and route revalidation, rather than capturing the manager that an instance reload replaces. Add synthetic old/new-owner, between-check replacement and removed-reference controls without exercising native reload or altering membership/scope rules.

Contract-Neutral: Maintains the existing current-owner credential validation and tenant-isolation invariants across monitor replacement; no public fields, scope grants, membership or reload policy change.
Change-source: pulse-maintainer
2026-10-25 01:43:58 +00:00
pulse-triage[bot]
31db0c8f38 Revalidate tenant credentials against their live scoped runtime
A valid tenant token passed auth-context extraction but failed protected routes because checkAuth checked only the global inventory. Retain the middleware-selected tenant inventory owner privately and revalidate the actual presented token against its live cached config at route enforcement. Keep global fallback, explicit-credential priority, tenant binding and scope enforcement; reject unvalidated context claims, revocation and stale runtime owners.

Contract-Neutral: Repairs the existing tenant-token authentication path and credential precedence without changing public fields, supported authorities, scope grants or organisation membership rules.
Change-source: pulse-maintainer
2026-10-25 01:39:41 +00:00
pulse-triage[bot]
971d4e9f77 Keep auth context tests independent of tenant runtime writers
The containing-source API suite passed its auth assertions but failed temporary-directory cleanup in the tenant token test. It unnecessarily started a complete mock monitoring runtime for a request-context check. Use the existing cached-monitor fixture pattern instead; retain global fallback and add real tenant-token and invalid-token controls. This changes no production authentication or monitor lifecycle behaviour.

Change-source: pulse-maintainer
2026-10-03 18:16:20 +01:00
rcourtman
1e28a03b57 Stabilize rc1 mock mode and metrics history 2026-04-11 16:47:37 +01:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
rcourtman
b9eee668e5 test: expand security regression coverage 2026-02-04 10:28:41 +00:00