-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filestorage] create_directory respects umask #37774
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Your umask prevents applications from creating files or directories with these permissions. Thus, |
/label -bug |
/label -needs-triage |
Yep. Unfortunately, none of the images produced by opentelemetry-collector-releases have a shell or
|
I would say that this is neither the concern of the extension, nor of the collector container image. If this is in Kubernetes, it'd probably be more reliable to use an init container to create this directory with the right permissions. |
I've added a little to the docs in #37783. |
…rage (open-telemetry#37783) #### Description I was tripped up by umask while I was configuring `file_storage`. #### Link to tracking issue Fixes: open-telemetry#37774
Component(s)
extension/storage/filestorage
What happened?
Description
I am using the Collector as a sidecar to parse and export log files. The application (writing logs) and Collector (reading logs) run with the same GID and/but differing UIDs. I would like the
filelog
receiver to store its offsets on the same disk as the log files so they share that failure domain.When I enable
create_directory
and setdirectory_permissions
to 0775, the directories do not have group-write permission. When the collector starts before the application, these permissions prevent the application from writing its logs.Steps to Reproduce
Configure a
file_storage
extension withdirectory_permissions: '0775'
and start the collector.Expected Result
Directories with
0775
permissions.Actual Result
Directories with
0755
permissions:Collector version
otelcol-contrib version 0.119.0
Environment information
Environment
OS: macOS 15.2
otelcol-contrib_0.119.0_darwin_arm64
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: