Skip to content

feat: disable DebugProbe UI in production by default#104

Merged
georgidhristov merged 2 commits into
mainfrom
feature/disable-ui-in-production
Jun 4, 2026
Merged

feat: disable DebugProbe UI in production by default#104
georgidhristov merged 2 commits into
mainfrom
feature/disable-ui-in-production

Conversation

@georgidhristov

Copy link
Copy Markdown
Collaborator

Closes #97

Summary

Disable DebugProbe UI endpoints in Production by default and require explicit opt-in when UI access is needed.

Changes

  • Added AllowUiInProduction option
  • Default value is false
  • Prevented DebugProbe UI endpoints from being registered in Production when not explicitly enabled
  • UI protection applies to:
    • Dashboard
    • Trace Viewer
    • Compare UI
    • Future UI pages
  • Request capture, response capture, and trace storage remain unaffected

Example

builder.Services.AddDebugProbe(options =>
{
    options.AllowUiInProduction = true;
});

@georgidhristov georgidhristov merged commit 97fb43b into main Jun 4, 2026
1 check passed
@georgidhristov georgidhristov deleted the feature/disable-ui-in-production branch June 4, 2026 16:41
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.

Disable DebugProbe UI in Production by Default

1 participant