{"action":"closed","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1164","repository_url":"https://api.github.com/repos/Sonarr/Sonarr","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1164/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1164/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/1164/events","html_url":"https://github.com/Sonarr/Sonarr/issues/1164","id":137935063,"number":1164,"title":"Automating Sonarr setup with chef - authentication/user storage questions","user":{"login":"elijah","id":43155,"avatar_url":"https://avatars.githubusercontent.com/u/43155?v=3","gravatar_id":"","url":"https://api.github.com/users/elijah","html_url":"https://github.com/elijah","followers_url":"https://api.github.com/users/elijah/followers","following_url":"https://api.github.com/users/elijah/following{/other_user}","gists_url":"https://api.github.com/users/elijah/gists{/gist_id}","starred_url":"https://api.github.com/users/elijah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elijah/subscriptions","organizations_url":"https://api.github.com/users/elijah/orgs","repos_url":"https://api.github.com/users/elijah/repos","events_url":"https://api.github.com/users/elijah/events{/privacy}","received_events_url":"https://api.github.com/users/elijah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T17:15:45Z","updated_at":"2016-03-20T10:19:34Z","closed_at":"2016-03-20T10:19:34Z","body":"\r\nHi guys,\r\n\r\nI'm working on automating my Sonarr setup with Chef - that's all working fine, but I have some questions.\r\n\r\nHaving set my authentication type to Forms - I discover that the storage of username and passwords was at some point moved into the nzbdrone.db sqlite3 database.  That's all well and good - very likely better for everyone.\r\n\r\nWhat I don't know yet - and my C# is a little weak for reading the src directory and figuring out where to get this answer from - is what the crypto method is that was used to hash my password from the UI into storage in the Users table in sqlite.  I can dump the table and have found my user -- I see a triple that looks like it is probably a UUID, my username, and then (probably) a password hash.  :)\r\n\r\nAlternately - \r\n\r\nIf I just rip those out and store them as data - say, in chef attributes that I can then pass into a template - and use it to rebuild that table upon a reinstall - will that work?  Or is there some other reference to that data in the schema that would *keep* it from working?  \r\n\r\nI know this sounds a tiny bit brittle, and is sort of a long way around to go to automate this - but I really, really, really despise hand work / manual reconfiguration when I need to rebuild something.  ;-)\r\n\r\nJust asking for thoughts and opinions before I start hacking away at this. \r\n\r\nLooking forward to hearing from you!\r\n\r\nbest,\r\n--e\r\n\r\n[I just tried to sign the CLAhub agreement - service threw an error when I tried to sign.  I'll try again later..]"}}