{"action":"created","issue":{"url":"https://api.github.com/repos/containous/traefik/issues/2458","repository_url":"https://api.github.com/repos/containous/traefik","labels_url":"https://api.github.com/repos/containous/traefik/issues/2458/labels{/name}","comments_url":"https://api.github.com/repos/containous/traefik/issues/2458/comments","events_url":"https://api.github.com/repos/containous/traefik/issues/2458/events","html_url":"https://github.com/containous/traefik/issues/2458","id":276412583,"node_id":"MDU6SXNzdWUyNzY0MTI1ODM=","number":2458,"title":"Traefik basic auth not work with https","user":{"login":"giwery","id":29141123,"node_id":"MDQ6VXNlcjI5MTQxMTIz","avatar_url":"https://avatars1.githubusercontent.com/u/29141123?v=4","gravatar_id":"","url":"https://api.github.com/users/giwery","html_url":"https://github.com/giwery","followers_url":"https://api.github.com/users/giwery/followers","following_url":"https://api.github.com/users/giwery/following{/other_user}","gists_url":"https://api.github.com/users/giwery/gists{/gist_id}","starred_url":"https://api.github.com/users/giwery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giwery/subscriptions","organizations_url":"https://api.github.com/users/giwery/orgs","repos_url":"https://api.github.com/users/giwery/repos","events_url":"https://api.github.com/users/giwery/events{/privacy}","received_events_url":"https://api.github.com/users/giwery/received_events","type":"User","site_admin":false},"labels":[{"id":603759233,"node_id":"MDU6TGFiZWw2MDM3NTkyMzM=","url":"https://api.github.com/repos/containous/traefik/labels/area/authentication","name":"area/authentication","color":"bfdadc","default":false},{"id":259872491,"node_id":"MDU6TGFiZWwyNTk4NzI0OTE=","url":"https://api.github.com/repos/containous/traefik/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-23T15:30:41Z","updated_at":"2018-09-15T09:32:49Z","closed_at":"2017-11-27T18:06:55Z","author_association":"NONE","body":"### Do you want to request a *feature* or report a *bug*?\r\n*bug*\r\n\r\n### What did you do?\r\n I run service in docker swarm with next labels:\r\n```\r\n- \"traefik.docker.network=proxy\"\r\n- \"traefik.backend=kibana\"\r\n- \"traefik.frontend.entryPoints=https,http\"\r\n- \"traefik.frontend.rule=Host:mydomain\"\r\n- \"traefik.port=5601\"\r\n- \"traefik.frontend.auth.basic=test:098f6bcd4621d373cade4e832627b4f6\"\r\n```\r\n### What did you expect to see?\r\n\r\nI want to use basic auth for my application\r\n\r\n### What did you see instead?\r\n\r\nBasic auth don't work with https protocol:\r\n```\r\ncurl -u test:test https://my-domain.com\r\n401 Unauthorized\r\n```\r\nBut for http it's ok:\r\n```\r\ncurl -u test:test http://my-domain.com\r\nFound\r\n```\r\n### Output of `traefik version`: (_What version of Traefik are you using?_)\r\n\r\n```\r\nVersion:      v1.4.3\r\nCodename:     roquefort\r\nGo version:   go1.9.2\r\nBuilt:        2017-11-14_11:14:24AM\r\nOS/Arch:      linux/amd64\r\n```\r\n\r\n### What is your environment & configuration (arguments, toml, provider, platform, ...)?\r\n\r\n```toml\r\nlogLevel = \"DEBUG\"\r\n\r\ndefaultEntryPoints = [\"http\", \"https\"]\r\n\r\n[entryPoints]\r\n  [entryPoints.http]\r\n  address = \":80\"\r\n    [entryPoints.http.redirect]\r\n    entryPoint = \"https\"\r\n  [entryPoints.https]\r\n  address = \":443\"\r\n    [entryPoints.https.tls]\r\n\r\n\r\n[acme]\r\nemail = \"my@email.com\"\r\nstorage = \"acme.json\"\r\nentryPoint = \"https\"\r\nonDemand = false\r\nOnHostRule = true\r\n\r\n\r\n[web]\r\naddress = \":8080\"\r\n\r\n[docker]\r\nwatch = true\r\nexposedbydefault = false\r\nendpoint = \"unix:///var/run/docker.sock\"\r\ndomain = \"my-domain.com\"\r\n\r\n\r\n\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/containous/traefik/issues/comments/421544856","html_url":"https://github.com/containous/traefik/issues/2458#issuecomment-421544856","issue_url":"https://api.github.com/repos/containous/traefik/issues/2458","id":421544856,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTU0NDg1Ng==","user":{"login":"dimisus","id":14965715,"node_id":"MDQ6VXNlcjE0OTY1NzE1","avatar_url":"https://avatars2.githubusercontent.com/u/14965715?v=4","gravatar_id":"","url":"https://api.github.com/users/dimisus","html_url":"https://github.com/dimisus","followers_url":"https://api.github.com/users/dimisus/followers","following_url":"https://api.github.com/users/dimisus/following{/other_user}","gists_url":"https://api.github.com/users/dimisus/gists{/gist_id}","starred_url":"https://api.github.com/users/dimisus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimisus/subscriptions","organizations_url":"https://api.github.com/users/dimisus/orgs","repos_url":"https://api.github.com/users/dimisus/repos","events_url":"https://api.github.com/users/dimisus/events{/privacy}","received_events_url":"https://api.github.com/users/dimisus/received_events","type":"User","site_admin":false},"created_at":"2018-09-15T09:32:49Z","updated_at":"2018-09-15T09:32:49Z","author_association":"NONE","body":"I haven't fully understood the issue, but using htpassword solved it for me. It seems traefik uses the same algo to unhash the passwords.\r\n\r\n```\r\napt install apache2-utils\r\nhtpasswd -nb your_username \"your_password_here\"\r\n```\r\nYou will receive the according hash\r\n\r\n```\r\nyour_username:khrglahfslgkha345346\r\n```\r\n\r\nCopy paste it to your .toml or your docker-compose script. \r\n\r\nUse your password (not the hash) and everything will work fine."}}
{"actor":{"display_login":"dimisus"}}