{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/vault/issues/281","labels_url":"https://api.github.com/repos/hashicorp/vault/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/vault/issues/281/comments","events_url":"https://api.github.com/repos/hashicorp/vault/issues/281/events","html_url":"https://github.com/hashicorp/vault/issues/281","id":83174062,"number":281,"title":"-addr not respected?","user":{"login":"whit537","id":134455,"avatar_url":"https://avatars.githubusercontent.com/u/134455?v=3","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/vault/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/vault/labels/core","name":"core","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-31T20:03:00Z","updated_at":"2015-06-01T14:43:21Z","closed_at":null,"body":"First steps with Vault, ran `./vault server -dev` in one shell, and then in another:\r\n\r\n```shell\r\n$ ./vault write foo/bar baz=buz\r\nError writing data to foo/bar: Put https://127.0.0.1:8200/v1/foo/bar: tls: oversized record received with length 20527\r\n\r\nThis error usually means that the server is running with TLS disabled\r\nbut the client is configured to use TLS. Please either enable TLS\r\non the server, or run the client with -addr set to http://<addr>\r\nwhere <addr> is replaced by the actual address to the server.\r\n```\r\n\r\nFair enough. But the advice doesn't seem to be good:\r\n\r\n```\r\n$ ./vault -addr=http://127.0.0.1:8200 write foo/bar baz=buz\r\nError writing data to foo/bar: Put https://127.0.0.1:8200/v1/foo/bar: tls: oversized record received with length 20527\r\n\r\nThis error usually means that the server is running with TLS disabled\r\nbut the client is configured to use TLS. Please either enable TLS\r\non the server, or run the client with -addr set to http://<addr>\r\nwhere <addr> is replaced by the actual address to the server.\r\n$\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/vault/issues/comments/107538348","html_url":"https://github.com/hashicorp/vault/issues/281#issuecomment-107538348","issue_url":"https://api.github.com/repos/hashicorp/vault/issues/281","id":107538348,"user":{"login":"karel1980","id":153021,"avatar_url":"https://avatars.githubusercontent.com/u/153021?v=3","gravatar_id":"","url":"https://api.github.com/users/karel1980","html_url":"https://github.com/karel1980","followers_url":"https://api.github.com/users/karel1980/followers","following_url":"https://api.github.com/users/karel1980/following{/other_user}","gists_url":"https://api.github.com/users/karel1980/gists{/gist_id}","starred_url":"https://api.github.com/users/karel1980/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karel1980/subscriptions","organizations_url":"https://api.github.com/users/karel1980/orgs","repos_url":"https://api.github.com/users/karel1980/repos","events_url":"https://api.github.com/users/karel1980/events{/privacy}","received_events_url":"https://api.github.com/users/karel1980/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T14:43:21Z","updated_at":"2015-06-01T14:43:21Z","body":"- Compare to running `git -S vault log` vs `git log -S vault`. Although -address is allowed on multiple commands, it still doesn't apply toall commands.\r\n- Allowing options before the command could become confusing.\r\n\r\nIMO the best thing to do is to have vault complain if using anything other than -h[elp] or -v[ersion].\r\n"}}