You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/10/01 08:32:59 UTC
[GitHub] [cloudstack] levindecaro opened a new issue, #6796: config.json wrongly set to 640 after upgrade to 4.17.1
levindecaro opened a new issue, #6796:
URL: https://github.com/apache/cloudstack/issues/6796
<!--
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and main branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete the comments.
-->
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
<!--
Categorize the issue, e.g. API, VR, VPN, UI, etc.
-->
~~~
cloudstack-management-4.17.1.0-1.el7.x86_64
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
~~~
4.17.1
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
kvm
SharedMountPoint (CephFS)
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
CentOS Linux release 7.9.2009 (Core) 3.10.0-1160.45.1.el7.x86_64
libvirt-4.5.0-36.el7_9.5.x86_64
qemu-kvm-ev-2.12.0-44.1.el7_8.1.x86_64
qemu-img-ev-2.12.0-44.1.el7_8.1.x86_64
qemu-kvm-common-ev-2.12.0-44.1.el7_8.1.x86_64
libvirt-daemon-driver-qemu-4.5.0-36.el7_9.5.x86_64
##### SUMMARY
<!-- Explain the problem/feature briefly -->
After run yum update cloudstack-management `/etc/cloudstack/management/config.json` perm set to 640, cause inaccessible from browser. should set to 644 instead.
##### STEPS TO REPRODUCE
<!--
For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
For new features, show how the feature would be used.
-->
<!-- Paste example playbooks or commands between quotes below -->
~~~
yum update cloudstack-management
~~~
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
~~~
/etc/cloudstack/management/config.json should set to 644 instead of 640
-rw-r--r-- 1 root cloud 16180 Oct 1 04:56 config.json
~~~
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
~~~
-rw-r----- 1 root cloud 16031 Oct 1 17:02 config.json
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] levindecaro commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
levindecaro commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1294809222
it is `cloud` uid:995, gid:993
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] rohityadavcloud commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
rohityadavcloud commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1345991162
((I'm thinking why this issue as config.json is read publically by UI by anybody having access to the webserver (even with the chmod 600 fix, anybody can curl the static file patch at http://<mgmt IP>:8080/client/config.json); there shouldn't be anything required to guard/enforce that only root or cloud user can read it))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1334967967
@levindecaro , I think your `ACTUAL RESULT` is expected. Is there anything we need to do on this ticket? Do you still see a problem?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] levindecaro closed issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
levindecaro closed issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
URL: https://github.com/apache/cloudstack/issues/6796
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1354404696
thanks @levindecaro , let us kmnow what you find.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1292289594
@levindecaro , i just installed a 4.16.1 environment and the config.json is installed as
```
-rw-r-----. 1 root cloud 15922 May 24 09:07 config.json
```
I think this is not a problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1294815869
should work (if the group with gid 993 is cloud!)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] levindecaro commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
levindecaro commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1292875716
@DaanHoogland
Thanks for your update, I'd try to reproduce that today but no luck. Last time, i got 403 on config.json when it is 0640, after set to 0644, it work immediately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] levindecaro commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
levindecaro commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1352718006
@DaanHoogland, i'm pretty sure i have to change config.json to 644 to make ACS accessible in the upgrade exercise, i have screen capture with forbidden error. Since i fixed that with 644, i cannot reproduce that with changing it back to 640. this is quite mystery to me. I'd like to close this, and observe this problem in next version. Thank you.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1293068006
@levindecaro what user(-id) is running the server? and of what groups is it a member?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [cloudstack] DaanHoogland commented on issue #6796: config.json wrongly set to 640 after upgrade to 4.17.1
Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6796:
URL: https://github.com/apache/cloudstack/issues/6796#issuecomment-1346468795
> ((I'm thinking why this issue as config.json is read publically by UI by anybody having access to the webserver (even with the chmod 600 fix, anybody can curl the static file patch at http://:8080/client/config.json); there shouldn't be anything required to guard/enforce that only root or cloud user can read it))
I don“t get your point @rohityadavcloud !?!?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org