{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/3246","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/3246/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/3246/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/3246/events","html_url":"https://github.com/go-gitea/gitea/issues/3246","id":283606995,"node_id":"MDU6SXNzdWUyODM2MDY5OTU=","number":3246,"title":"Feature Request: Move INTERNAL_TOKEN value out of app.ini","user":{"login":"minoru7","id":11465939,"node_id":"MDQ6VXNlcjExNDY1OTM5","avatar_url":"https://avatars3.githubusercontent.com/u/11465939?v=4","gravatar_id":"","url":"https://api.github.com/users/minoru7","html_url":"https://github.com/minoru7","followers_url":"https://api.github.com/users/minoru7/followers","following_url":"https://api.github.com/users/minoru7/following{/other_user}","gists_url":"https://api.github.com/users/minoru7/gists{/gist_id}","starred_url":"https://api.github.com/users/minoru7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minoru7/subscriptions","organizations_url":"https://api.github.com/users/minoru7/orgs","repos_url":"https://api.github.com/users/minoru7/repos","events_url":"https://api.github.com/users/minoru7/events{/privacy}","received_events_url":"https://api.github.com/users/minoru7/received_events","type":"User","site_admin":false},"labels":[{"id":487889463,"node_id":"MDU6TGFiZWw0ODc4ODk0NjM=","url":"https://api.github.com/repos/go-gitea/gitea/labels/kind/refactor","name":"kind/refactor","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/4","html_url":"https://github.com/go-gitea/gitea/milestone/4","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/4/labels","id":2111552,"node_id":"MDk6TWlsZXN0b25lMjExMTU1Mg==","number":4,"title":"1.x.x","description":"","creator":{"login":"tboerger","id":156964,"node_id":"MDQ6VXNlcjE1Njk2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/156964?v=4","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"open_issues":333,"closed_issues":0,"state":"open","created_at":"2016-11-03T08:40:47Z","updated_at":"2018-07-06T16:32:18Z","due_on":null,"closed_at":null},"comments":35,"created_at":"2017-12-20T15:48:10Z","updated_at":"2018-07-10T05:36:28Z","closed_at":null,"author_association":"NONE","body":"- Gitea version (or commit ref): latest\r\n- Git version: latest\r\n- Operating system: Linux\r\n- Database (use `[x]`):\r\n  - [ ] PostgreSQL\r\n  - [ ] MySQL\r\n  - [ ] MSSQL\r\n  - [ ] SQLite\r\n- Can you reproduce the bug at https://try.gitea.io:\r\n  - [ ] Yes (provide example URL)\r\n  - [ ] No\r\n  - [x] Not relevant\r\n- Log gist:\r\n\r\n## Description\r\n\r\nI'd like to request that the INTERNAL_TOKEN value that is currently placed in the app.ini during Gitea startup be moved to a separate file/config than the user-defined app.ini.  It should probably be placed in a lockfile, pid, or separate gitea-system-controlled config file, etc.  \r\n\r\nThe reason for this is that a lot of organizations use automation tools such as Puppet, SaltStack, Ansible, etc. to deploy configurations to servers.  If the app.ini (user-defined config file) is being managed by one of these, it will overwrite the existing app.ini that includes the INTERNAL_TOKEN.  This is less than ideal, and obviously breaks the functioning of Gitea.  \r\n\r\nReferences:  \r\n  -   #2762 https://github.com/go-gitea/gitea/issues/2762\r\n  -   #3226 https://github.com/go-gitea/gitea/issues/3226\r\n"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/403705893","html_url":"https://github.com/go-gitea/gitea/issues/3246#issuecomment-403705893","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/3246","id":403705893,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzcwNTg5Mw==","user":{"login":"bkcsoft","id":4726179,"node_id":"MDQ6VXNlcjQ3MjYxNzk=","avatar_url":"https://avatars0.githubusercontent.com/u/4726179?v=4","gravatar_id":"","url":"https://api.github.com/users/bkcsoft","html_url":"https://github.com/bkcsoft","followers_url":"https://api.github.com/users/bkcsoft/followers","following_url":"https://api.github.com/users/bkcsoft/following{/other_user}","gists_url":"https://api.github.com/users/bkcsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bkcsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkcsoft/subscriptions","organizations_url":"https://api.github.com/users/bkcsoft/orgs","repos_url":"https://api.github.com/users/bkcsoft/repos","events_url":"https://api.github.com/users/bkcsoft/events{/privacy}","received_events_url":"https://api.github.com/users/bkcsoft/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T05:36:28Z","updated_at":"2018-07-10T05:36:28Z","author_association":"MEMBER","body":"So, as far as I can see, the code should only generate this token if it _does not_ exist. Is this still an issue?"}}
{"actor":{"display_login":"bkcsoft"}}