ahydrax / Hangfire.MissionControl

A plugin for Hangfire that enables you to launch jobs manually.
MIT License
60 stars 10 forks source link

Protect mission page/endpoint #12

Closed thomas-illiet closed 3 years ago

thomas-illiet commented 3 years ago

Hello @ahydrax,

Do you have any idea to protect mission control with the following configuration:

app.UseHangfireDashboard("/hangfire", new DashboardOptions
{
    IsReadOnlyFunc = (DashboardContext context) => true
});

Kind regards ThomaK

ahydrax commented 3 years ago

Hi @thomas-illiet,

Currently MissionControl doesn't respect IsReadOnlyFunc callback to check user rights. I'll look into it, thanks!

ahydrax commented 3 years ago

It turned out that IsReadOnly flag was added in Hangfire v1.7.0 but MissionControl have been targeted for 1.6.x versions. I've raised hangfire.core version and added new dashboard feature support. You'll find new version here: https://www.nuget.org/packages/Hangfire.MissionControl/0.6.0

thomas-illiet commented 3 years ago

Your Rox !