{"action":"created","issue":{"url":"https://api.github.com/repos/begriffs/postgrest/issues/473","labels_url":"https://api.github.com/repos/begriffs/postgrest/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/begriffs/postgrest/issues/473/comments","events_url":"https://api.github.com/repos/begriffs/postgrest/issues/473/events","html_url":"https://github.com/begriffs/postgrest/issues/473","id":129205583,"number":473,"title":"Select safer default value for jwt-secret","user":{"login":"eric-brechemier","id":151276,"avatar_url":"https://avatars.githubusercontent.com/u/151276?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-brechemier","html_url":"https://github.com/eric-brechemier","followers_url":"https://api.github.com/users/eric-brechemier/followers","following_url":"https://api.github.com/users/eric-brechemier/following{/other_user}","gists_url":"https://api.github.com/users/eric-brechemier/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-brechemier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-brechemier/subscriptions","organizations_url":"https://api.github.com/users/eric-brechemier/orgs","repos_url":"https://api.github.com/users/eric-brechemier/repos","events_url":"https://api.github.com/users/eric-brechemier/events{/privacy}","received_events_url":"https://api.github.com/users/eric-brechemier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T16:57:08Z","updated_at":"2016-01-29T14:23:47Z","closed_at":null,"body":"I suggest to use a secret made of random bytes, [with a length of 512 bits](http://stackoverflow.com/a/30520284), similar to the output of the command `openssl rand 512`.\r\n\r\nThis would make it suitable for development and deployment on a single server, unlike the current default of `'secret'`."},"comment":{"url":"https://api.github.com/repos/begriffs/postgrest/issues/comments/176780094","html_url":"https://github.com/begriffs/postgrest/issues/473#issuecomment-176780094","issue_url":"https://api.github.com/repos/begriffs/postgrest/issues/473","id":176780094,"user":{"login":"eric-brechemier","id":151276,"avatar_url":"https://avatars.githubusercontent.com/u/151276?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-brechemier","html_url":"https://github.com/eric-brechemier","followers_url":"https://api.github.com/users/eric-brechemier/followers","following_url":"https://api.github.com/users/eric-brechemier/following{/other_user}","gists_url":"https://api.github.com/users/eric-brechemier/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-brechemier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-brechemier/subscriptions","organizations_url":"https://api.github.com/users/eric-brechemier/orgs","repos_url":"https://api.github.com/users/eric-brechemier/repos","events_url":"https://api.github.com/users/eric-brechemier/events{/privacy}","received_events_url":"https://api.github.com/users/eric-brechemier/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T14:23:47Z","updated_at":"2016-01-29T14:23:47Z","body":"> Do you mean changing the default constant that is in the source code?\r\n\r\nYes.\r\n\r\n> What would be the benefits of doing this?\r\n\r\nThe default secret is not suitable for production. Anyone can encode a JWT Token using 'secret' and pretend that they have a different role, e.g. 'postgres', and the `postgrest` server will accept to change to the requested role."}}