-
Notifications
You must be signed in to change notification settings - Fork 123
Environment Variables: Unified access vs. Usability #1249
Comments
Overview
Keep it as IsKeeping the current behaviour sounds okay. The only time I wish Elektra supports environment variables – namely the variable kdb set user/sw/elektra/kdb/#0/current/editor /Applications/TextMate.app/Contents/Resources/mate . However if I want to test something, then I often remove the whole configuration beforehand. This implies, that the setting for Adapt XDGI like the idea behind XDG, since I prefer that tools do not litter all over the base level of my home directory. However, I recently tried to change Easier Switch Between SetupsI think this item should include a description on how we can switch between setups. All in all it sound like implementing this would require a lot of work, without providing many benefits. Provide two Different BuildsI dislike this idea, since it possibly means twice the work. Especially since we then need to debug two slightly different versions of Elektra. |
Thanks for the detailed answer!
Yes, and even if you would found a place to fix it for this situation, there are dozens of other places where you have the same issue (cron and at jobs or anything else executed from some background daemons). Maybe some more concrete background about the issue at hand. We have some people running Mac OS X who should run scripts using Elektra. The scripts also need a specification to be present. Homebrew certainly helps them to have an easy installation. But in the current situation, they would need to execute at least one script as root so that the mounting can be done. A completely different way to achieve it (not listed above before) would be to have #1074 but with userspec mounts. |
Implementing user spec mounts sounds like a good idea. Especially, if it allows us to close this issue without adding support for environment variables. |
Thanks for the discussion yesterday! I added one more point which could be interesting. In the same way as applications can have built-in configuration (keysets compiled in), we could allow I am not sure, but maybe @KurtMi already wanted to say this yesterday ;) And one more thought about Discussions about implementation of I also look forward for @BernhardDenner views! |
I vote for XDG as it is the thing on Linux. I understand the rationale behind consistent configuration access. However, calling a command was and is always different on POSIX systems depending on the PATH variable. Aren't security concerns separate? One way might be to ignore environment variables in elektra, for e.g. user ID's < 500. |
Thanks for your vote!
Yes, security in this context only means that admins lose control over which configuration their users receive. One can argue that for a kiosk system many other modifications are needed (disable executable bit in writable dirs, disable Open questions when adopting XDG as default are:
|
Thank you for the discussion. #734 is the issue for the implementation. |
Currently Elektra by default completely ignores environment variables. This is a necessity for unified access, only then every application sees the configuration in the same way.
Unfortunately, this approach makes it also less convenient to use Elektra (in particular if you are not root). Should we:
kdb get --preload <somefile> /something #
somefile contains spec/something; see kdb: preload config #1269The text was updated successfully, but these errors were encountered: