{"action":"created","issue":{"url":"https://api.github.com/repos/akamai/cli/issues/16","repository_url":"https://api.github.com/repos/akamai/cli","labels_url":"https://api.github.com/repos/akamai/cli/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/akamai/cli/issues/16/comments","events_url":"https://api.github.com/repos/akamai/cli/issues/16/events","html_url":"https://github.com/akamai/cli/issues/16","id":251782563,"number":16,"title":"Error with credentials in Windows","user":{"login":"roberto-mardeni","id":7926321,"avatar_url":"https://avatars1.githubusercontent.com/u/7926321?v=4","gravatar_id":"","url":"https://api.github.com/users/roberto-mardeni","html_url":"https://github.com/roberto-mardeni","followers_url":"https://api.github.com/users/roberto-mardeni/followers","following_url":"https://api.github.com/users/roberto-mardeni/following{/other_user}","gists_url":"https://api.github.com/users/roberto-mardeni/gists{/gist_id}","starred_url":"https://api.github.com/users/roberto-mardeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberto-mardeni/subscriptions","organizations_url":"https://api.github.com/users/roberto-mardeni/orgs","repos_url":"https://api.github.com/users/roberto-mardeni/repos","events_url":"https://api.github.com/users/roberto-mardeni/events{/privacy}","received_events_url":"https://api.github.com/users/roberto-mardeni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-21T21:59:31Z","updated_at":"2017-08-28T20:17:58Z","closed_at":"2017-08-28T20:17:58Z","body":"I setup my credentials according to the guide and when I execute:\r\n\r\n`akamai property retrieve <property name removed on purpose>`\r\n\r\nI get the error below:\r\n\r\n```\r\nC:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\node_modules\\edgegrid\\src\\edgerc.js:69\r\n    throw new Error('An error occurred parsing the .edgerc file. You probably specified an invalid section name.');\r\n    ^\r\n\r\nError: An error occurred parsing the .edgerc file. You probably specified an invalid section name.\r\n    at module.exports (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\node_modules\\edgegrid\\src\\edgerc.js:69:11)\r\n    at EdgeGrid._setConfigFromObj (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\node_modules\\edgegrid\\src\\api.js:152:17)\r\n    at new EdgeGrid (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\node_modules\\edgegrid\\src\\api.js:26:10)\r\n    at new WebSite (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\src\\website.js:64:26)\r\n    at main (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\bin\\akamaiProperty:499:20)\r\n    at Object.<anonymous> (C:\\Users\\rmardeni\\.akamai-cli\\src\\cli-property\\bin\\akamaiProperty:609:1)\r\n    at Module._compile (module.js:571:32)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:488:32)\r\n    at tryModuleLoad (module.js:447:12)\r\n```\r\n\r\nMy username in my computer is **rmardeni** and the credentials were stored in **c:\\users\\rmardeni\\.edgerc**, what is wrong with this?"},"comment":{"url":"https://api.github.com/repos/akamai/cli/issues/comments/325468244","html_url":"https://github.com/akamai/cli/issues/16#issuecomment-325468244","issue_url":"https://api.github.com/repos/akamai/cli/issues/16","id":325468244,"user":{"login":"roberto-mardeni","id":7926321,"avatar_url":"https://avatars1.githubusercontent.com/u/7926321?v=4","gravatar_id":"","url":"https://api.github.com/users/roberto-mardeni","html_url":"https://github.com/roberto-mardeni","followers_url":"https://api.github.com/users/roberto-mardeni/followers","following_url":"https://api.github.com/users/roberto-mardeni/following{/other_user}","gists_url":"https://api.github.com/users/roberto-mardeni/gists{/gist_id}","starred_url":"https://api.github.com/users/roberto-mardeni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roberto-mardeni/subscriptions","organizations_url":"https://api.github.com/users/roberto-mardeni/orgs","repos_url":"https://api.github.com/users/roberto-mardeni/repos","events_url":"https://api.github.com/users/roberto-mardeni/events{/privacy}","received_events_url":"https://api.github.com/users/roberto-mardeni/received_events","type":"User","site_admin":false},"created_at":"2017-08-28T20:17:58Z","updated_at":"2017-08-28T20:17:58Z","body":"Using the **--section** parameter worked for me, so I can close this issue now.\r\n\r\nI do think however that using a section named **default** should be an option, especially because you are not really minimizing the attack surface area by having to provide an additional parameter, you are just making it a little bit harder for anybody to use the CLI, especially because those credentials will be within the same **.edgerc** file.\r\n\r\nMinimizing the attack surface area is an enterprise practice that you will not be able to effectively enforce this way and it should be at most a recommendation for users to adopt as best practice."}}
{"actor":{"display_login":"roberto-mardeni"}}