Add support for setting security attributes on Http.Sys RequestQueue #61084
Labels
api-approved
API was approved in API review, it can be implemented
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Background and Motivation
We've had a few asks about how to set permissions for the request queue created by Http.Sys. After helping one team manually do PInvoking and getting it working, we've distilled the needed API here so they can get rid of their code and let us continue setting up the request queue.
Proposed API
namespace Microsoft.AspNetCore.Server.HttpSys; public class HttpSysOptions { public string? RequestQueueName { get; set; } + public GenericSecurityDescriptor? RequestQueueSecurityDescriptor { get; set; } }
GenericSecurityDescriptor
Usage Examples
Alternative Designs
The only alternative is to create the request queue yourself in code, which involves PInvoking and native memory management, and then telling our Http.Sys server to attach to the queue that was created.
Risks
N/A
The text was updated successfully, but these errors were encountered: