{"action":"created","issue":{"url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/23","repository_url":"https://api.github.com/repos/kevholditch/terraform-provider-kong","labels_url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/23/comments","events_url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/23/events","html_url":"https://github.com/kevholditch/terraform-provider-kong/issues/23","id":334273226,"node_id":"MDU6SXNzdWUzMzQyNzMyMjY=","number":23,"title":"Provider URL problem","user":{"login":"mindflash-ops","id":33529206,"node_id":"MDQ6VXNlcjMzNTI5MjA2","avatar_url":"https://avatars1.githubusercontent.com/u/33529206?v=4","gravatar_id":"","url":"https://api.github.com/users/mindflash-ops","html_url":"https://github.com/mindflash-ops","followers_url":"https://api.github.com/users/mindflash-ops/followers","following_url":"https://api.github.com/users/mindflash-ops/following{/other_user}","gists_url":"https://api.github.com/users/mindflash-ops/gists{/gist_id}","starred_url":"https://api.github.com/users/mindflash-ops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mindflash-ops/subscriptions","organizations_url":"https://api.github.com/users/mindflash-ops/orgs","repos_url":"https://api.github.com/users/mindflash-ops/repos","events_url":"https://api.github.com/users/mindflash-ops/events{/privacy}","received_events_url":"https://api.github.com/users/mindflash-ops/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T22:32:58Z","updated_at":"2018-06-21T15:58:26Z","closed_at":null,"author_association":"NONE","body":"I'm wondering if anyone has ideas on this.  I'm trying to use configure the provider block to use a secure endpoint secured with an API token.  If I run curl against this endpoint using the same values it works, but the when configured in the provider it does not work.\r\n\r\n```hcl\r\nprovider \"kong\" {\r\n  kong_admin_uri = \"https://${var.kong_url}?function=${var.kong_api_key}\"\r\n}\r\n```\r\n\r\nThe only error I get is something about an EOF. "},"comment":{"url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/comments/399154611","html_url":"https://github.com/kevholditch/terraform-provider-kong/issues/23#issuecomment-399154611","issue_url":"https://api.github.com/repos/kevholditch/terraform-provider-kong/issues/23","id":399154611,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTE1NDYxMQ==","user":{"login":"kevholditch","id":1679458,"node_id":"MDQ6VXNlcjE2Nzk0NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1679458?v=4","gravatar_id":"","url":"https://api.github.com/users/kevholditch","html_url":"https://github.com/kevholditch","followers_url":"https://api.github.com/users/kevholditch/followers","following_url":"https://api.github.com/users/kevholditch/following{/other_user}","gists_url":"https://api.github.com/users/kevholditch/gists{/gist_id}","starred_url":"https://api.github.com/users/kevholditch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevholditch/subscriptions","organizations_url":"https://api.github.com/users/kevholditch/orgs","repos_url":"https://api.github.com/users/kevholditch/repos","events_url":"https://api.github.com/users/kevholditch/events{/privacy}","received_events_url":"https://api.github.com/users/kevholditch/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T15:58:26Z","updated_at":"2018-06-21T15:58:26Z","author_association":"OWNER","body":"Thanks for raising this issue. You cannot use the provider in this way as the kong admin uri currently is only meant to be the host. The rest of the kong url is appended to this. For example when querying APIs it’ll take this address and add the rest of the path to it. So for apis you would have https://localhost:8001?function=apikey/apis which isn’t valid.\r\n\r\nI think the best way to solve this would be to allow configuration of a custom header that is passed with every request. You could then use that to pass your api key through. Would that work for you?"}}
{"actor":{"display_login":"kevholditch"}}