Skip to content
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

automate or document minimal permissions set #527

Open
vdelendik opened this issue Jul 25, 2022 · 1 comment
Open

automate or document minimal permissions set #527

vdelendik opened this issue Jul 25, 2022 · 1 comment

Comments

@vdelendik
Copy link
Contributor

vdelendik commented Jul 25, 2022

on some linux distributives default permissions set for new files might be pretty limited aka sharing rwx------, i.e. for current user only.
as some content should be shared across docker container we need minimal permissions set according to the schema below

cd community-edition
chmod 775 .

#apply 775 for all subfolders recursively:
find . -type d -exec chmod 775 {} \;

# apply 775 for all shell scripts:
find . -type f -name "*.sh" -exec chmod 775 {} \;

#sql script permissions:
find . -type f -name "*.sql" -exec chmod 664 {} \;

#rabbitmq permissions patch
find reporting/configuration/rabbitmq/ -type f  -exec chmod 664 {} \;

#elasticsearch permissions:
chmod 664 reporting/configuration/elasticsearch/elasticsearch.yml

# logstash permissions
find reporting/configuration/logstash/ -type f  -exec chmod 664 {} \;

do setup and apply chmod for generated files
##redis conf file permissions:
chmod 664 reporting/configuration/redis/redis.conf*

#rabbitmq
chmod 664 reporting/configuration/rabbitmq/definitions/001-general-definition.json

ideally we have to adjust permissions as part of pre and post setup procedures or document it

@vdelendik vdelendik added this to the 2.1 milestone Jul 25, 2022
@vdelendik vdelendik modified the milestones: 2.1, 2.2 Jul 29, 2022
@vdelendik vdelendik modified the milestones: 2.3, 2.4 Apr 23, 2023
@vdelendik
Copy link
Contributor Author

moved to 2.4 as default Linux distributive generate valid permissions. problems might occur only on customized super secured enterprise linuxes

@vdelendik vdelendik removed this from the 2.4 milestone Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant