elastic / elastic/logstash

allow_superuser false blocks non admin user in Windows

Open
#16,632 1 comment 1 reaction 0 assignees View on GitHub
bug status:needs-triage
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Setting `allow_superuser: false` is expected to run Logstash successfully with non admin user. However, on Windows, Logstash exits with an error even when the user is not an admin.

The issue occurs because [Process.euid()](https://github.com/elastic/logstash/blob/v8.3.0/logstash-core/lib/logstash/runner.rb#L459) always returns 0 in [Windows](https://github.com/jnr/jnr-posix/blob/3ebda1da859f0f2f6b750f27deab7e73ec450a63/src/main/java/jnr/posix/WindowsPOSIX.java#L228).

Relates: https://github.com/elastic/logstash/pull/14089
cc @mashhurs

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.