{"action":"created","issue":{"url":"https://api.github.com/repos/StackStorm/st2/issues/4012","repository_url":"https://api.github.com/repos/StackStorm/st2","labels_url":"https://api.github.com/repos/StackStorm/st2/issues/4012/labels{/name}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/4012/comments","events_url":"https://api.github.com/repos/StackStorm/st2/issues/4012/events","html_url":"https://github.com/StackStorm/st2/issues/4012","id":300153303,"number":4012,"title":"Token TTL in st2.conf doesn't work","user":{"login":"wyjuly","id":11567391,"avatar_url":"https://avatars1.githubusercontent.com/u/11567391?v=4","gravatar_id":"","url":"https://api.github.com/users/wyjuly","html_url":"https://github.com/wyjuly","followers_url":"https://api.github.com/users/wyjuly/followers","following_url":"https://api.github.com/users/wyjuly/following{/other_user}","gists_url":"https://api.github.com/users/wyjuly/gists{/gist_id}","starred_url":"https://api.github.com/users/wyjuly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyjuly/subscriptions","organizations_url":"https://api.github.com/users/wyjuly/orgs","repos_url":"https://api.github.com/users/wyjuly/repos","events_url":"https://api.github.com/users/wyjuly/events{/privacy}","received_events_url":"https://api.github.com/users/wyjuly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-26T08:54:35Z","updated_at":"2018-03-02T12:47:46Z","closed_at":null,"author_association":"NONE","body":"Hi there,\r\n\r\nWe found that the token_ttl in /etc/st2/st2.conf doesn't work.\r\nBelow is our configuration:\r\n\r\n[auth]\r\ntoken_ttl = 5184000\r\nhost = 0.0.0.0\r\nport = 9100\r\nuse_ssl = False\r\n\r\nIt's version 2.2 and we upgrade it to 2.4.\r\n\r\nThere is two actions in one flow, it took 3 days for step one and while stackstorm starts step 2 the error occurred:\r\n\r\n      \"state_info\": \"{status: 401, cookies: {}, encoding: None, url: http://127.0.0.1:9101/v1/actionexecutions, elapsed: 0.011803, content: {u'faultstring': u'Unauthorized - Token has expired.'}, headers: {u'Content-Length': u'58', u'Access-Control-Allow-Headers': u'Content-Type,Authorization,X-Auth-Token,St2-Api-Key,X-Request-ID', u'Access-Control-Expose-Headers': u'Content-Type,X-Limit,X-Total-Count,X-Request-ID', u'X-Request-ID': u'3c6a8887-918b-4666-8dac-3fb23e0878dc', u'Server': u'gunicorn/19.7.1', u'Connection': u'keep-alive', u'Access-Control-Allow-Credentials': u'true', u'Date': u'Fri, 16 Feb 2018 09:37:50 GMT', u'Access-Control-Allow-Origin': u'http://127.0.0.1:3000', u'Access-Control-Allow-Methods': u'GET,POST,PUT,DELETE,OPTIONS', u'Content-Type': u'application/json'}, reason: Unauthorized, history: []}\",\r\n\r\nSo the token_ttl doesn't work in version 2.4? And do we have another option in st2.conf for stackstorm to generate a new token each time it trigger the next action in a flow?\r\n\r\nThanks.\r\nJason"},"comment":{"url":"https://api.github.com/repos/StackStorm/st2/issues/comments/369912089","html_url":"https://github.com/StackStorm/st2/issues/4012#issuecomment-369912089","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/4012","id":369912089,"user":{"login":"wyjuly","id":11567391,"avatar_url":"https://avatars1.githubusercontent.com/u/11567391?v=4","gravatar_id":"","url":"https://api.github.com/users/wyjuly","html_url":"https://github.com/wyjuly","followers_url":"https://api.github.com/users/wyjuly/followers","following_url":"https://api.github.com/users/wyjuly/following{/other_user}","gists_url":"https://api.github.com/users/wyjuly/gists{/gist_id}","starred_url":"https://api.github.com/users/wyjuly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wyjuly/subscriptions","organizations_url":"https://api.github.com/users/wyjuly/orgs","repos_url":"https://api.github.com/users/wyjuly/repos","events_url":"https://api.github.com/users/wyjuly/events{/privacy}","received_events_url":"https://api.github.com/users/wyjuly/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T12:47:46Z","updated_at":"2018-03-02T12:47:46Z","author_association":"NONE","body":"@Kami Thanks Kami, on the way. Will upgrade to 2.6 and test with both service_token_ttl and token_ttl set in st2.conf and update the result here."}}
{"actor":{"display_login":"wyjuly"}}