{"action":"created","issue":{"url":"https://api.github.com/repos/akka/akka/issues/23600","repository_url":"https://api.github.com/repos/akka/akka","labels_url":"https://api.github.com/repos/akka/akka/issues/23600/labels{/name}","comments_url":"https://api.github.com/repos/akka/akka/issues/23600/comments","events_url":"https://api.github.com/repos/akka/akka/issues/23600/events","html_url":"https://github.com/akka/akka/issues/23600","id":255240809,"number":23600,"title":"Configuration lists and environment variables","user":{"login":"talpr","id":3009362,"avatar_url":"https://avatars1.githubusercontent.com/u/3009362?v=4","gravatar_id":"","url":"https://api.github.com/users/talpr","html_url":"https://github.com/talpr","followers_url":"https://api.github.com/users/talpr/followers","following_url":"https://api.github.com/users/talpr/following{/other_user}","gists_url":"https://api.github.com/users/talpr/gists{/gist_id}","starred_url":"https://api.github.com/users/talpr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talpr/subscriptions","organizations_url":"https://api.github.com/users/talpr/orgs","repos_url":"https://api.github.com/users/talpr/repos","events_url":"https://api.github.com/users/talpr/events{/privacy}","received_events_url":"https://api.github.com/users/talpr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-05T11:08:39Z","updated_at":"2017-10-06T15:01:57Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nWe use Akka for many of our applications/services and run them in Kubernetes, passing in environment-related information (host names, etc.) via environment variables. Many of these applications use akka-cluster and akka-persistence-cassandra, both of which require a list of nodes as part of their configuration. However, there is no way to pass these via environment variables, so we have to add code that manually parses the environment variable, creates a Config that only contains that, and falls back on the actual config file. (The suggested workaround is using system properties, but that doesn't really fit well with the way we run our applications)\r\n\r\nThis is not ideal for a couple of reasons:\r\nIt divides the config to separate places, instead of everything being contained in 1 file.\r\nIt's basically the same code, duplicated for every env variable / config setting we care about.\r\nNow, this issue has been raised [several](https://github.com/typesafehub/config/pull/168) [times](https://github.com/typesafehub/config/issues/320) in Typesafe Config (even by @patriknw [once](https://github.com/typesafehub/config/issues/69)), and there is even a [merged PR](https://github.com/typesafehub/config/pull/427) to support passing lists via environment variables, but the library hasn't had a release in about a year, and there's no mention of when and if there will be a new one.\r\n\r\nI think there are a couple of ways this issue can be handled:\r\n\r\n1. A new release of Typesafe Config. This would be ideal, but I'm not sure Lightbend/Typesafe have the resources for this.\r\n2. Allow these kinds of list properties in Akka (I don't know if there are others, but I assume so) to be configured via a string as well. For example, checking if the \"seed-nodes\" config exists, and if not falling back to parsing \"seed-nodes-str\" (or vice-versa). This would add some ugliness to the Akka codebase, but it will solve the problem without having to wait for Config. (And I don't mind making a PR for this, so it doesn't even require much resources from Lightbend)."},"comment":{"url":"https://api.github.com/repos/akka/akka/issues/comments/334780758","html_url":"https://github.com/akka/akka/issues/23600#issuecomment-334780758","issue_url":"https://api.github.com/repos/akka/akka/issues/23600","id":334780758,"user":{"login":"2m","id":422086,"avatar_url":"https://avatars3.githubusercontent.com/u/422086?v=4","gravatar_id":"","url":"https://api.github.com/users/2m","html_url":"https://github.com/2m","followers_url":"https://api.github.com/users/2m/followers","following_url":"https://api.github.com/users/2m/following{/other_user}","gists_url":"https://api.github.com/users/2m/gists{/gist_id}","starred_url":"https://api.github.com/users/2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2m/subscriptions","organizations_url":"https://api.github.com/users/2m/orgs","repos_url":"https://api.github.com/users/2m/repos","events_url":"https://api.github.com/users/2m/events{/privacy}","received_events_url":"https://api.github.com/users/2m/received_events","type":"User","site_admin":false},"created_at":"2017-10-06T15:01:57Z","updated_at":"2017-10-06T15:01:57Z","author_association":"MEMBER","body":"New Config library version has been released and we have created PR to update Akka to the newly released version here: https://github.com/akka/akka/pull/23790"}}
{"actor":{"display_login":"2m"}}