Skip to content

Request authentication and/or filtering #2

Description

@nblumhardt

By default, the /ingest endpoint will accept any payload it receives. We could implement a request validation callback to filter out unauthenticated or otherwise unacceptable requests, e.g.:

app.UseSerilogIngestion(options => {
    // Just deny everything :-)
    options.OnIngestingAsync = async httpContext => httpContext.Response.StatusCode = 401;
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions