{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1488","repository_url":"https://api.github.com/repos/swagger-api/swagger-editor","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1488/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1488/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1488/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/1488","id":256793867,"number":1488,"title":"Intranet only swagger editor via docker","user":{"login":"Okeanos","id":887496,"avatar_url":"https://avatars1.githubusercontent.com/u/887496?v=4","gravatar_id":"","url":"https://api.github.com/users/Okeanos","html_url":"https://github.com/Okeanos","followers_url":"https://api.github.com/users/Okeanos/followers","following_url":"https://api.github.com/users/Okeanos/following{/other_user}","gists_url":"https://api.github.com/users/Okeanos/gists{/gist_id}","starred_url":"https://api.github.com/users/Okeanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Okeanos/subscriptions","organizations_url":"https://api.github.com/users/Okeanos/orgs","repos_url":"https://api.github.com/users/Okeanos/repos","events_url":"https://api.github.com/users/Okeanos/events{/privacy}","received_events_url":"https://api.github.com/users/Okeanos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"assignees":[{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-09-11T18:09:51Z","updated_at":"2017-09-19T01:07:46Z","closed_at":null,"author_association":"NONE","body":"| Q                                   | A\r\n| ----------------------------------- | -------\r\n| Bug or feature request?             |  feature\r\n| Which Swagger/OpenAPI version?      | latest\r\n| Which Swagger-Editor version?       | latest\r\n| How did you install Swagger-Editor? |  docker\r\n| Which broswer & version?            | any\r\n| Which operating system?             |  any\r\n\r\n### Expected Behavior\r\nUsing the docker image I should be able to start up a swagger editor instance that can be served from local non internet based resources only.\r\n\r\n### Current Behavior\r\nUsing the (latest) docker image to start up a swagger editor instance I am greeted by an editor that requests a large amount of external internet based resources without (see swagger-editor/Dockerfile or swagger-editor/docker-run.sh) any way of telling the swagger editor to serve these resources from either the docker image itself or an additional resource like the swagger-codegen docker image. The Swagger UI can use the swagger-codegen docker image and some additional config values, though.\r\n\r\n### Possible Solution\r\nAdd feature parity between swagger ui and swagger editor docker images concerning environment variables.\r\n\r\n### Context\r\nAt company I am working we are currently trying to centrally host internal API documentations and would very much like to keep all related services such as the Swagger UI and Editor within the intranet only. This includes browser requests to fetch additional content such as stylesheets, JavaScript files, fonts, etc. when accessing these resources. The reasons for that should be fairly obvious. Right now there appears to be no point in using (the provided) docker images as they simply (out of the box and in case of the editor) rely on internet/third-party resources anyway. Maybe I am simply being stupid and am overlooking something very, very simple but after searching through all related issues, documentations, and related search results I could get my hands on I am stumped and can't find a way around this issue. Help would be very much appreciated."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/comments/330398373","html_url":"https://github.com/swagger-api/swagger-editor/issues/1488#issuecomment-330398373","issue_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/1488","id":330398373,"user":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T01:07:46Z","updated_at":"2017-09-19T01:07:46Z","author_association":"CONTRIBUTOR","body":"Ah, got it now. Those three requests are needed for the codegen features (`Generate Server` and `Generate Client` in the top menu) to work. No API definition information is sent in those initial requests, but if the Codegen features are used, the definition is sent to `generator.swagger.io`.\n\nWhile it is possible to disable the Codegen feature if you're controlling the initial Swagger-Editor call, there's currently no way to disable it from the Docker level. \n\n> Given that additional Docker images for the validator and the codegen/generator features exist I thought that the Editor could be provisioned similarly to the UI.\n\nThe Validator project is actually different from the validation you find in the Editor :smile: Similarly, the Codegen feature in the Editor that you're observing is an interface to a running instance of the Codegen project.\n\n---\n\nI think the best way forward here would be to add a configuration option, `codegenUrl`, that is controllable through Docker environment variables.\n\nPinging @webron for prioritization and thoughts!"}}
{"actor":{"display_login":"shockey"}}