{"action":"created","issue":{"url":"https://api.github.com/repos/cloudflare/unsee/issues/250","repository_url":"https://api.github.com/repos/cloudflare/unsee","labels_url":"https://api.github.com/repos/cloudflare/unsee/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/cloudflare/unsee/issues/250/comments","events_url":"https://api.github.com/repos/cloudflare/unsee/issues/250/events","html_url":"https://github.com/cloudflare/unsee/issues/250","id":313793385,"number":250,"title":"[0.9.1] Silence on Proxied Alertmanagers returns 404","user":{"login":"svenmueller","id":131689,"avatar_url":"https://avatars0.githubusercontent.com/u/131689?v=4","gravatar_id":"","url":"https://api.github.com/users/svenmueller","html_url":"https://github.com/svenmueller","followers_url":"https://api.github.com/users/svenmueller/followers","following_url":"https://api.github.com/users/svenmueller/following{/other_user}","gists_url":"https://api.github.com/users/svenmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/svenmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenmueller/subscriptions","organizations_url":"https://api.github.com/users/svenmueller/orgs","repos_url":"https://api.github.com/users/svenmueller/repos","events_url":"https://api.github.com/users/svenmueller/events{/privacy}","received_events_url":"https://api.github.com/users/svenmueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-12T16:07:49Z","updated_at":"2018-04-14T10:43:51Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI configured that requests from browsers to our Alertmanagers will be proxied via unsee. But when looking at the developer console when trying to create a new silence in the UI, i see that the POST request to the proxy-endpoint returns a 404. We are using unsee 0.9.1.\r\n\r\nrequest:\r\n```\r\nPOST https://unsee.mydomain.com/proxy/alertmanager/test/api/v1/silences 404\r\n```\r\n\r\nsnippet form the config:\r\n```\r\n...\r\nservers:\r\n  - name: test\r\n    uri: https://username:password@alertmanager.mydomain.com\r\n    timeout: 30s\r\n    proxy: true\r\n  ...\r\n  listen:\r\n    address: \"0.0.0.0\"\r\n    port: 8080 # port in Docker container (we are running unsee in k8s)\r\n    prefix: /\r\n  ...\r\n```\r\n\r\nWhen triggering the silencing requests, i can see the following debug log:\r\n```\r\ntime=\"2018-04-12T15:50:02Z\" level=debug msg=\"[test] Proxy request for /api/v1/silences\"\r\n```\r\nAny idea what causes the issue or how i can debug this?\r\n\r\nThx a lot,\r\nSven"},"comment":{"url":"https://api.github.com/repos/cloudflare/unsee/issues/comments/381320310","html_url":"https://github.com/cloudflare/unsee/issues/250#issuecomment-381320310","issue_url":"https://api.github.com/repos/cloudflare/unsee/issues/250","id":381320310,"user":{"login":"svenmueller","id":131689,"avatar_url":"https://avatars0.githubusercontent.com/u/131689?v=4","gravatar_id":"","url":"https://api.github.com/users/svenmueller","html_url":"https://github.com/svenmueller","followers_url":"https://api.github.com/users/svenmueller/followers","following_url":"https://api.github.com/users/svenmueller/following{/other_user}","gists_url":"https://api.github.com/users/svenmueller/gists{/gist_id}","starred_url":"https://api.github.com/users/svenmueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svenmueller/subscriptions","organizations_url":"https://api.github.com/users/svenmueller/orgs","repos_url":"https://api.github.com/users/svenmueller/repos","events_url":"https://api.github.com/users/svenmueller/events{/privacy}","received_events_url":"https://api.github.com/users/svenmueller/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T10:43:51Z","updated_at":"2018-04-14T10:43:51Z","author_association":"NONE","body":"Using the Alertmanager API directly works:\r\n\r\n```\r\ncurl https://username:password@alertmanager1.mydomain.com/api/v1/silences \\\r\n-X POST --data @- << EOF\r\n{\r\n  \"matchers\": [\r\n  ...\r\n  ],\r\n  \"startsAt\": \"2018-04-14T10:35:41.436Z\",\r\n  \"endsAt\": \"2018-04-14T11:35:41.722Z\",\r\n  \"createdBy\": \"...\",\r\n  \"comment\": \"test\"\r\n}\r\nEOF\r\n{\"status\":\"success\",\"data\":{\"silenceId\":\"a09f4706-6129-425c-b773-f071e126bf42\"}}\r\n```\r\n\r\nDoes the proxy maybe have issues when the username/password is part of the proxied url?\r\n\r\n-- Sven"}}
{"actor":{"display_login":"svenmueller"}}