{"action":"created","issue":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/1031","labels_url":"https://api.github.com/repos/balloob/home-assistant/issues/1031/labels{/name}","comments_url":"https://api.github.com/repos/balloob/home-assistant/issues/1031/comments","events_url":"https://api.github.com/repos/balloob/home-assistant/issues/1031/events","html_url":"https://github.com/balloob/home-assistant/pull/1031","id":129612673,"number":1031,"title":"Templates in configuration","user":{"login":"happyleavesaoc","id":11217032,"avatar_url":"https://avatars.githubusercontent.com/u/11217032?v=3","gravatar_id":"","url":"https://api.github.com/users/happyleavesaoc","html_url":"https://github.com/happyleavesaoc","followers_url":"https://api.github.com/users/happyleavesaoc/followers","following_url":"https://api.github.com/users/happyleavesaoc/following{/other_user}","gists_url":"https://api.github.com/users/happyleavesaoc/gists{/gist_id}","starred_url":"https://api.github.com/users/happyleavesaoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/happyleavesaoc/subscriptions","organizations_url":"https://api.github.com/users/happyleavesaoc/orgs","repos_url":"https://api.github.com/users/happyleavesaoc/repos","events_url":"https://api.github.com/users/happyleavesaoc/events{/privacy}","received_events_url":"https://api.github.com/users/happyleavesaoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-28T23:05:00Z","updated_at":"2016-01-29T03:48:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/balloob/home-assistant/pulls/1031","html_url":"https://github.com/balloob/home-assistant/pull/1031","diff_url":"https://github.com/balloob/home-assistant/pull/1031.diff","patch_url":"https://github.com/balloob/home-assistant/pull/1031.patch"},"body":"Allow any configuration value to use a template value derived from the configuration itself. For example:\r\n\r\nconfiguration.yaml\r\n```yaml\r\nconst:\r\n  sun_elevation: 2\r\n  motion_wait: 30\r\n  my_name: happyleavesaoc\r\n  secrets: !include secrets.yaml\r\n\r\nsensor:\r\n- platform: some_sensor\r\n  password: \"{{ conf.const.secrets.password }}\"\r\n  name: \"{{ conf.const.my_name }}'s cool  {{ conf.sensor[0].platform }} sensor\"\r\n```\r\n\r\nsecrets.yaml\r\n```yaml\r\npassword: as23df\r\nspecial_key: as9sdf09asd\r\n```\r\n\r\nThis PR is meant to foster some discussion about how to implement this feature. The presented code works, but maybe there is a better way, or maybe this is not safe."},"comment":{"url":"https://api.github.com/repos/balloob/home-assistant/issues/comments/176560289","html_url":"https://github.com/balloob/home-assistant/pull/1031#issuecomment-176560289","issue_url":"https://api.github.com/repos/balloob/home-assistant/issues/1031","id":176560289,"user":{"login":"TDWhbp","id":12042563,"avatar_url":"https://avatars.githubusercontent.com/u/12042563?v=3","gravatar_id":"","url":"https://api.github.com/users/TDWhbp","html_url":"https://github.com/TDWhbp","followers_url":"https://api.github.com/users/TDWhbp/followers","following_url":"https://api.github.com/users/TDWhbp/following{/other_user}","gists_url":"https://api.github.com/users/TDWhbp/gists{/gist_id}","starred_url":"https://api.github.com/users/TDWhbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TDWhbp/subscriptions","organizations_url":"https://api.github.com/users/TDWhbp/orgs","repos_url":"https://api.github.com/users/TDWhbp/repos","events_url":"https://api.github.com/users/TDWhbp/events{/privacy}","received_events_url":"https://api.github.com/users/TDWhbp/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T03:48:36Z","updated_at":"2016-01-29T03:48:36Z","body":"My question is based on not finding instructions on secureing the install\nof HA on a server that is always running and anyone on the network has\naccess to. Where could I find such a set of directions? I am still setting\nmy system up for use.\nOn Jan 28, 2016 10:02 PM, \"Ryan Kraus\" <notifications@github.com> wrote:\n\n> It *could* be used to apply base64 decoding to strings using the Jinja\n> syntax if a custom formatter were created. I don't think it is built in to\n> Jinja.\n>\n> I think a more interesting question is: If you are willing to put in the\n> effort to greatly customize your config file and base64 encode your\n> sensitive information, why not just set proper permissions on your config\n> files instead? That offers real security while base64 only protects you\n> from casual snoopers.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/balloob/home-assistant/pull/1031#issuecomment-176545914>\n> .\n>\n"}}