Skip to content

Guard log4j logging calls from needed security permissions #93714

Closed
@rjernst

Description

@rjernst

Log4j needs some security manager permissions, for example to write to a file, or read configuration in an env variable. We make log4j available to all Elasticsearch plugins, but those plugins don't necessarily have all the necessary permissions, especially in the context of reduced permissions (eg ingest attachment reduces permissions when calling Tika code, but Tika code may still log).

We should improve how our log4j loggers handle permissions, so that calling code does not need to worry about the permissions necessary for log4j.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions