Hangfire icon indicating copy to clipboard operation
Hangfire copied to clipboard

There is no validation for configuring queue names in HangfireServer option

Open Li7ye opened this issue 3 years ago • 2 comments

Because the queue name has validation : 'A queue name that consists only of lowercase, letters, digits and underscores.'

However, when setup HangfireServer option, we can configure the invalid queue names.

builder.Services.AddHangfireServer(option =>
{
    option.Queues = new string[]
    {
        "DEFAULT",
        "&*asd!#",
        "QUEUEU!"
    };
});

The dashboard still can see these queue names and can browse anyone.

image image

Li7ye avatar Sep 14 '22 09:09 Li7ye

Hangfire version number : 1.7.31

Li7ye avatar Sep 14 '22 09:09 Li7ye

@odinserj I'd appreciate if you can take a look on this PR that solve this issue. The queue naming validation. Sorry for being too noisy.

https://github.com/HangfireIO/Hangfire/pull/2320

MuhamedAbdallaMuhamed avatar Nov 22 '23 18:11 MuhamedAbdallaMuhamed