{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/27366","labels_url":"https://api.github.com/repos/saltstack/salt/issues/27366/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/27366/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/27366/events","html_url":"https://github.com/saltstack/salt/issues/27366","id":108120714,"number":27366,"title":"salt-ssh should utilise XDG base directories","user":{"login":"babilen","id":117961,"avatar_url":"https://avatars.githubusercontent.com/u/117961?v=3","gravatar_id":"","url":"https://api.github.com/users/babilen","html_url":"https://github.com/babilen","followers_url":"https://api.github.com/users/babilen/followers","following_url":"https://api.github.com/users/babilen/following{/other_user}","gists_url":"https://api.github.com/users/babilen/gists{/gist_id}","starred_url":"https://api.github.com/users/babilen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babilen/subscriptions","organizations_url":"https://api.github.com/users/babilen/orgs","repos_url":"https://api.github.com/users/babilen/repos","events_url":"https://api.github.com/users/babilen/events{/privacy}","received_events_url":"https://api.github.com/users/babilen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Core","name":"Core","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Salt-SSH","name":"Salt-SSH","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2579,"closed_issues":2625,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-09-25T16:51:02Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-24T12:28:37Z","updated_at":"2015-09-25T18:16:17Z","closed_at":null,"body":"salt-ssh is rather tricky to use as a 'normal' user in that you have to explicitly set `cacheddir`, `pki_dir`  and other settings in the master configuration file explicitly. This makes it harder for users to use it or, even worse, simply means that everybody runs salt-ssh as root which is by no means necessary.\r\n\r\nIt would, IMHO, make a lot of sense to utilise XDG base directories (cf. [0]) for this as they are well established and understood by users. This way salt would behave in a more standardised fashion that is transparent to users.\r\n\r\nI suggested this in #9474 initially, but it would also solve #17063 or #27284.\r\n\r\n[0] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/143312465","html_url":"https://github.com/saltstack/salt/issues/27366#issuecomment-143312465","issue_url":"https://api.github.com/repos/saltstack/salt/issues/27366","id":143312465,"user":{"login":"techhat","id":287147,"avatar_url":"https://avatars.githubusercontent.com/u/287147?v=3","gravatar_id":"","url":"https://api.github.com/users/techhat","html_url":"https://github.com/techhat","followers_url":"https://api.github.com/users/techhat/followers","following_url":"https://api.github.com/users/techhat/following{/other_user}","gists_url":"https://api.github.com/users/techhat/gists{/gist_id}","starred_url":"https://api.github.com/users/techhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techhat/subscriptions","organizations_url":"https://api.github.com/users/techhat/orgs","repos_url":"https://api.github.com/users/techhat/repos","events_url":"https://api.github.com/users/techhat/events{/privacy}","received_events_url":"https://api.github.com/users/techhat/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T18:16:17Z","updated_at":"2015-09-25T18:16:17Z","body":"I'm not too familiar with XDG dirs, but does the Saltfile help out here at all?\r\n\r\nhttps://docs.saltstack.com/en/latest/topics/ssh/index.html#define-cli-options-with-saltfile"}}