{"action":"created","issue":{"url":"https://api.github.com/repos/minio/mc/issues/1813","repository_url":"https://api.github.com/repos/minio/mc","labels_url":"https://api.github.com/repos/minio/mc/issues/1813/labels{/name}","comments_url":"https://api.github.com/repos/minio/mc/issues/1813/comments","events_url":"https://api.github.com/repos/minio/mc/issues/1813/events","html_url":"https://github.com/minio/mc/issues/1813","id":174450625,"number":1813,"title":"mc: Add '--insecure' for making insecure SSL connections","user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/minio/mc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"vadmeste","id":283197,"avatar_url":"https://avatars.githubusercontent.com/u/283197?v=3","gravatar_id":"","url":"https://api.github.com/users/vadmeste","html_url":"https://github.com/vadmeste","followers_url":"https://api.github.com/users/vadmeste/followers","following_url":"https://api.github.com/users/vadmeste/following{/other_user}","gists_url":"https://api.github.com/users/vadmeste/gists{/gist_id}","starred_url":"https://api.github.com/users/vadmeste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadmeste/subscriptions","organizations_url":"https://api.github.com/users/vadmeste/orgs","repos_url":"https://api.github.com/users/vadmeste/repos","events_url":"https://api.github.com/users/vadmeste/events{/privacy}","received_events_url":"https://api.github.com/users/vadmeste/received_events","type":"User","site_admin":false},"assignees":[{"login":"vadmeste","id":283197,"avatar_url":"https://avatars.githubusercontent.com/u/283197?v=3","gravatar_id":"","url":"https://api.github.com/users/vadmeste","html_url":"https://github.com/vadmeste","followers_url":"https://api.github.com/users/vadmeste/followers","following_url":"https://api.github.com/users/vadmeste/following{/other_user}","gists_url":"https://api.github.com/users/vadmeste/gists{/gist_id}","starred_url":"https://api.github.com/users/vadmeste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadmeste/subscriptions","organizations_url":"https://api.github.com/users/vadmeste/orgs","repos_url":"https://api.github.com/users/vadmeste/repos","events_url":"https://api.github.com/users/vadmeste/events{/privacy}","received_events_url":"https://api.github.com/users/vadmeste/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/minio/mc/milestones/6","html_url":"https://github.com/minio/mc/milestones/Distributed%20Server%20Release","labels_url":"https://api.github.com/repos/minio/mc/milestones/6/labels","id":1890214,"number":6,"title":"Distributed Server Release","description":null,"creator":{"login":"GarimaKapoor","id":11859916,"avatar_url":"https://avatars.githubusercontent.com/u/11859916?v=3","gravatar_id":"","url":"https://api.github.com/users/GarimaKapoor","html_url":"https://github.com/GarimaKapoor","followers_url":"https://api.github.com/users/GarimaKapoor/followers","following_url":"https://api.github.com/users/GarimaKapoor/following{/other_user}","gists_url":"https://api.github.com/users/GarimaKapoor/gists{/gist_id}","starred_url":"https://api.github.com/users/GarimaKapoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarimaKapoor/subscriptions","organizations_url":"https://api.github.com/users/GarimaKapoor/orgs","repos_url":"https://api.github.com/users/GarimaKapoor/repos","events_url":"https://api.github.com/users/GarimaKapoor/events{/privacy}","received_events_url":"https://api.github.com/users/GarimaKapoor/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-07-18T17:48:55Z","updated_at":"2016-09-01T07:00:45Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-09-01T07:00:29Z","updated_at":"2016-09-01T10:53:14Z","closed_at":null,"body":"```\r\ntype Config struct {\r\n....\r\n....\r\n        // InsecureSkipVerify controls whether a client verifies the\r\n        // server's certificate chain and host name.\r\n        // If InsecureSkipVerify is true, TLS accepts any certificate\r\n        // presented by the server and any host name in that certificate.\r\n        // In this mode, TLS is susceptible to man-in-the-middle attacks.\r\n        // This should be used only for testing.\r\n        InsecureSkipVerify bool\r\n....\r\n....\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/minio/mc/issues/comments/244044552","html_url":"https://github.com/minio/mc/issues/1813#issuecomment-244044552","issue_url":"https://api.github.com/repos/minio/mc/issues/1813","id":244044552,"user":{"login":"harshavardhana","id":622699,"avatar_url":"https://avatars.githubusercontent.com/u/622699?v=3","gravatar_id":"","url":"https://api.github.com/users/harshavardhana","html_url":"https://github.com/harshavardhana","followers_url":"https://api.github.com/users/harshavardhana/followers","following_url":"https://api.github.com/users/harshavardhana/following{/other_user}","gists_url":"https://api.github.com/users/harshavardhana/gists{/gist_id}","starred_url":"https://api.github.com/users/harshavardhana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harshavardhana/subscriptions","organizations_url":"https://api.github.com/users/harshavardhana/orgs","repos_url":"https://api.github.com/users/harshavardhana/repos","events_url":"https://api.github.com/users/harshavardhana/events{/privacy}","received_events_url":"https://api.github.com/users/harshavardhana/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T10:53:14Z","updated_at":"2016-09-01T10:53:14Z","body":"> This needs change in minio-go, I think we have four options:\r\n> \r\n> Add an API, SetInsecure()\r\n> Add a new parameter in New()\r\n> Add an API NewInsecure()\r\n> The fourth option: New() has already the secure flag, so this is my suggestion:\r\n> New(\"localhost:9000\", \"accesskey\", \"secretkey\", true) => HTTPS secure\r\n> New(\"localhost:9000\", \"accesskey\", \"secretkey\", false) => HTTP\r\n> New(\"https://localhost:9000\", \"accesskey\", \"secretkey\", false) => HTTPS insecure\r\n> New(\"http://localhost:9000\", \"accesskey\", \"secretkey\", true) => HTTP or returns an error\r\n\r\nThis is not needed, you need to set a custom transport\r\n\r\n```\r\ntr := &http.Transport{\r\n\tTLSClientConfig:    &tls.Config{RootCAs: pool},\r\n}\r\n```"}}
{"actor":{"display_login":"harshavardhana"}}