splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Incorrect permissions on file lib/splunklib/modularinput/event_writer.py in release 1.7.2

Open gjanders opened this issue 4 years ago • 13 comments

The issue is the permissions of the file: lib/splunklib/modularinput/event_writer.py

-rwxr-xr-x 1 user None 2878 Sep 22 20:09 event_writer.py

So 755 will not pass appinspect, this file should be 644 like all the other files...

gjanders avatar Sep 22 '22 10:09 gjanders

In my copy the others are 664

diogofgm avatar Sep 28 '22 13:09 diogofgm

@gjanders Thank you for reporting this issue. The team is taking a look.

ncanumalla-splunk avatar Sep 29 '22 21:09 ncanumalla-splunk

@ncanumalla-splunk thanks for the reply. Perhaps this check could be automated or send it via appinspect which would definitely find the issue :)

gjanders avatar Sep 30 '22 00:09 gjanders

@gjanders Our team hasn't changed the file permissions in the SDK and doesn't handle updating them. It depends on the way the SDK is packaged with the app. You have the option to move the SDK into /bin. Also, we recommend you install the SDK using pip in which case the file permissions are 664. Hope that helps.

ncanumalla-splunk avatar Oct 05 '22 20:10 ncanumalla-splunk

@ncanumalla-splunk refer to https://github.com/splunk/splunk-sdk-python/releases/tag/1.7.2

Or this picture: 2022-10-06 09_36_23-E__temp_splunk-sdk-python-1 7 2 (1) tar gz_splunk-sdk-python-1 7 2 (1) tar_splun

gjanders avatar Oct 05 '22 22:10 gjanders

Perhaps your packaging system has an issue then? The releases are created on this github and that is the .tar.gz from tag 1.7.2

gjanders avatar Oct 05 '22 22:10 gjanders

@gjanders Thank you very much for pointing this out in the Github release. We will look into fixing this and also check on our packaging/release process. cc: @ashah-splunk

ncanumalla-splunk avatar Oct 06 '22 18:10 ncanumalla-splunk

image

As per the image, it's actually in the master branch...I'll send in a pull request

gjanders avatar Oct 06 '22 22:10 gjanders

https://github.com/splunk/splunk-sdk-python/pull/491

gjanders avatar Oct 06 '22 22:10 gjanders

@gjanders thanks for the PR, we are also looking into options to prevent such file permission changes in future. We will be merging the change soon. Also we have modified the PR with base branch to develop as per the process. Changes will be available in the master branch once new SDK is released.

ashah-splunk avatar Oct 12 '22 09:10 ashah-splunk

Thanks for updating the PR

gjanders avatar Oct 12 '22 10:10 gjanders

new PR ref - #493

ashah-splunk avatar Nov 04 '22 09:11 ashah-splunk

@gjanders fix is available in the Python SDK latest release v1.7.3. Request you to pull the latest release.

ashah-splunk avatar Feb 13 '23 06:02 ashah-splunk