{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/37660","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/37660/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/37660/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/37660/events","html_url":"https://github.com/saltstack/salt/issues/37660","id":188964912,"number":37660,"title":"git clone identity file SaltStack fileserver URL template","user":{"login":"Dabuti","id":3024945,"avatar_url":"https://avatars.githubusercontent.com/u/3024945?v=3","gravatar_id":"","url":"https://api.github.com/users/Dabuti","html_url":"https://github.com/Dabuti","followers_url":"https://api.github.com/users/Dabuti/followers","following_url":"https://api.github.com/users/Dabuti/following{/other_user}","gists_url":"https://api.github.com/users/Dabuti/gists{/gist_id}","starred_url":"https://api.github.com/users/Dabuti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dabuti/subscriptions","organizations_url":"https://api.github.com/users/Dabuti/orgs","repos_url":"https://api.github.com/users/Dabuti/repos","events_url":"https://api.github.com/users/Dabuti/events{/privacy}","received_events_url":"https://api.github.com/users/Dabuti/received_events","type":"User","site_admin":false},"labels":[{"id":204655,"url":"https://api.github.com/repos/saltstack/salt/labels/Feature","name":"Feature","color":"009800","default":false},{"id":194768064,"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0","default":false},{"id":279790703,"url":"https://api.github.com/repos/saltstack/salt/labels/TEAM%20Platform","name":"TEAM Platform","color":"A9A9A9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"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":3210,"closed_issues":4173,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2016-11-14T20:18:59Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-11-13T11:16:22Z","updated_at":"2016-11-14T20:44:13Z","closed_at":null,"body":"### Description of Issue/Question\r\nHello,\r\nI am trying to run a state with git.latest using a fileserver URL in the identity parameter e.g.: salt://files/id_rsa.\r\n\r\nIf that file uses jinja templating to get the value of the id_rsa key it does not work.\r\n\r\n### Setup\r\n\r\nfiles/id_rsa:\r\n```\r\n{% salt['pillar.get']('keys.my_id_rsa') %}\r\n```\r\n\r\npillars/keys.sls:\r\n```\r\nkeys.my_id_rsa:\r\n  value: |\r\n     -----BEGIN RSA PRIVATE KEY-----\r\n     uq45cJAYszYix4CoznmFEkx3mtYh4E1rF...\r\n     -----END RSA PRIVATE KEY-----\r\n```\r\n### Steps to Reproduce Issue\r\nTry to clone a repository using identity a fileserver file that uses jinja templating.\r\n### Versions Report\r\n``` \r\nSalt Version:\r\n           Salt: 2016.3.4\r\n \r\nDependency Versions:\r\n           cffi: 1.2.1\r\n       cherrypy: Not Installed\r\n       dateutil: 2.3\r\n          gitdb: Not Installed\r\n      gitpython: Not Installed\r\n          ioflo: Not Installed\r\n         Jinja2: 2.8\r\n        libgit2: 0.23.4\r\n        libnacl: Not Installed\r\n       M2Crypto: Not Installed\r\n           Mako: Not Installed\r\n   msgpack-pure: Not Installed\r\n msgpack-python: 0.4.7\r\n   mysql-python: 1.2.5\r\n      pycparser: 2.10\r\n       pycrypto: 2.6.1\r\n         pygit2: 0.23.2\r\n         Python: 2.7.10 (default, Nov  6 2015, 11:00:50)\r\n   python-gnupg: Not Installed\r\n         PyYAML: 3.11\r\n          PyZMQ: 14.7.0\r\n           RAET: Not Installed\r\n          smmap: Not Installed\r\n        timelib: Not Installed\r\n        Tornado: 4.3\r\n            ZMQ: 4.1.3\r\n \r\nSystem Versions:\r\n           dist:   \r\n        machine: amd64\r\n        release: 10.1-RELEASE-p24\r\n         system: FreeBSD\r\n        version: Not Installed\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/260456848","html_url":"https://github.com/saltstack/salt/issues/37660#issuecomment-260456848","issue_url":"https://api.github.com/repos/saltstack/salt/issues/37660","id":260456848,"user":{"login":"gtmanfred","id":732321,"avatar_url":"https://avatars.githubusercontent.com/u/732321?v=3","gravatar_id":"","url":"https://api.github.com/users/gtmanfred","html_url":"https://github.com/gtmanfred","followers_url":"https://api.github.com/users/gtmanfred/followers","following_url":"https://api.github.com/users/gtmanfred/following{/other_user}","gists_url":"https://api.github.com/users/gtmanfred/gists{/gist_id}","starred_url":"https://api.github.com/users/gtmanfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtmanfred/subscriptions","organizations_url":"https://api.github.com/users/gtmanfred/orgs","repos_url":"https://api.github.com/users/gtmanfred/repos","events_url":"https://api.github.com/users/gtmanfred/events{/privacy}","received_events_url":"https://api.github.com/users/gtmanfred/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T20:44:13Z","updated_at":"2016-11-14T20:44:13Z","body":"I think the more concerning thing is that it is available on the fileserver at all, because that file is then accessible by any minion.  It should be a identity_pillar, so that you can limit which minions could actually see it and use the key.\r\n\r\nSimilar to how the `contents_pillar` works for file.managed state https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed  Where it pulls the id file from pillar, creates the file for ssh to use it, and then deletes it."}}
{"actor":{"display_login":"gtmanfred"}}