Skip to content

fix: production safety and redaction (2.3.0) - #16

Merged
eladser merged 3 commits into
mainfrom
fix/production-safety
Sep 29, 2026
Merged

eladser merged 3 commits into
mainfrom
fix/production-safety

Conversation

@eladser

@eladser eladser commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Security release. The dashboard's controllers and the EF interceptor were registered and active in every environment; only UseDebugDashboard() checked for Development. With MapControllers() in the pipeline, /_debug, /api/export and DELETE /api/clear answered in Production with no auth, and SQL parameters were captured there.

  • Single access check (IsEnabled + new AllowedEnvironments, default Development) used by both controllers, the interceptor and the middleware
  • Optional AuthorizationFilter on every UI and API request
  • More headers excluded by default; password/secret/token/apikey fields redacted in JSON and form bodies
  • EmitActivities = false honored; any custom BasePath routes correctly
  • Unused SignalR hub removed; EnableRealTimeUpdates and AddDebugDashboardSignalR() kept as obsolete no-ops
  • EF Core, MimeKit, MCP SDK, SourceLink and vite bumps (clears the postcss alerts)

Versions: dashboard + Mcp 2.3.0, AspNetMailbox 0.1.1.

controllers and the ef interceptor no longer rely on UseDebugDashboard()
being wired correctly; they check IsEnabled and a new AllowedEnvironments
option themselves, so MapControllers() alone can't expose them outside an
allowed environment. adds an optional AuthorizationFilter hook, redacts
password/secret/token/apikey json body fields by default, widens the
default excluded header list, fixes EmitActivities being dropped on copy,
makes custom BasePath values route correctly, and drops the unused
SignalR hub.
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

@eladser
eladser merged commit 88c34e9 into main Sep 29, 2026
4 checks passed
@eladser
eladser deleted the fix/production-safety branch September 29, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant