{"action":"opened","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2818","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2818/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2818/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/2818/events","html_url":"https://github.com/cockpit-project/cockpit/issues/2818","id":108143974,"number":2818,"title":"Specify maximum file size for cockpit.file().read()","user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-24T14:36:59Z","updated_at":"2015-09-24T14:36:59Z","closed_at":null,"body":"I think we should have a maximum file size specified on creating cockpit.file() and fsread1 channels, along with a healthy default. That way we won't accidentally load megabytes of data into the browser."}}