{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/sops/issues/393","repository_url":"https://api.github.com/repos/mozilla/sops","labels_url":"https://api.github.com/repos/mozilla/sops/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/sops/issues/393/comments","events_url":"https://api.github.com/repos/mozilla/sops/issues/393/events","html_url":"https://github.com/mozilla/sops/issues/393","id":379570609,"node_id":"MDU6SXNzdWUzNzk1NzA2MDk=","number":393,"title":"Cannot get Azure Keyvault example to work","user":{"login":"iensu","id":3002262,"node_id":"MDQ6VXNlcjMwMDIyNjI=","avatar_url":"https://avatars3.githubusercontent.com/u/3002262?v=4","gravatar_id":"","url":"https://api.github.com/users/iensu","html_url":"https://github.com/iensu","followers_url":"https://api.github.com/users/iensu/followers","following_url":"https://api.github.com/users/iensu/following{/other_user}","gists_url":"https://api.github.com/users/iensu/gists{/gist_id}","starred_url":"https://api.github.com/users/iensu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iensu/subscriptions","organizations_url":"https://api.github.com/users/iensu/orgs","repos_url":"https://api.github.com/users/iensu/repos","events_url":"https://api.github.com/users/iensu/events{/privacy}","received_events_url":"https://api.github.com/users/iensu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2018-11-11T22:29:41Z","updated_at":"2018-11-14T16:29:51Z","closed_at":null,"author_association":"NONE","body":"Hi! \r\n\r\nI am trying to follow the Azure Keyvault example (https://github.com/mozilla/sops#encrypting-using-azure-key-vault) but cannot get it to work. I have redone the example several times but always end up with this error:\r\n\r\n```\r\n[AZKV]\t ERRO[0030] Encryption failed                             error=\"azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://sops-XXXXXX.vault.azure.net/keys/sops-key/XXXXXXX/encrypt?api-version=2016-10-01: StatusCode=0 -- Original Error: adal: Failed to execute the refresh request. Error = 'Get http://XXX.XXX.XXX.XXX/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net: dial tcp XXX.XXX.XXX.XXX:80: i/o timeout'\" key=sops-key version=a114809b9efe4b7286aa67317a5e5ccd\r\nCould not generate data key: [failed to encrypt new data key with master key \"https://sops-XXXXXX.vault.azure.net/keys/sops-key/XXXXXXX\": Failed to encrypt data: azure.BearerAuthorizer#WithAuthorization: Failed to refresh the Token for request to https://sops-XXXXXX.vault.azure.net/keys/sops-key/XXXXXXX/encrypt?api-version=2016-10-01: StatusCode=0 -- Original Error: adal: Failed to execute the refresh request. Error = 'Get http://XXX.XXX.XXX.XXX/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https%3A%2F%2Fvault.azure.net: dial tcp XXX.XXX.XXX.XXX:80: i/o timeout']\r\n```\r\n\r\nI am following the instructions step by step, I even tried creating a new resource group and a new service principal, but that didn't work either. I also set the environment variables specified in the instructions to the values provided by the service principal. Any ideas what I'm doing wrong?"},"comment":{"url":"https://api.github.com/repos/mozilla/sops/issues/comments/438726161","html_url":"https://github.com/mozilla/sops/issues/393#issuecomment-438726161","issue_url":"https://api.github.com/repos/mozilla/sops/issues/393","id":438726161,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODcyNjE2MQ==","user":{"login":"cihangirbesiktas","id":8611045,"node_id":"MDQ6VXNlcjg2MTEwNDU=","avatar_url":"https://avatars2.githubusercontent.com/u/8611045?v=4","gravatar_id":"","url":"https://api.github.com/users/cihangirbesiktas","html_url":"https://github.com/cihangirbesiktas","followers_url":"https://api.github.com/users/cihangirbesiktas/followers","following_url":"https://api.github.com/users/cihangirbesiktas/following{/other_user}","gists_url":"https://api.github.com/users/cihangirbesiktas/gists{/gist_id}","starred_url":"https://api.github.com/users/cihangirbesiktas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cihangirbesiktas/subscriptions","organizations_url":"https://api.github.com/users/cihangirbesiktas/orgs","repos_url":"https://api.github.com/users/cihangirbesiktas/repos","events_url":"https://api.github.com/users/cihangirbesiktas/events{/privacy}","received_events_url":"https://api.github.com/users/cihangirbesiktas/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T16:29:51Z","updated_at":"2018-11-14T16:29:51Z","author_association":"NONE","body":"One other question: How can I setup .sops.yaml file to use azure keyvault?"}}
{"actor":{"display_login":"cihangirbesiktas"}}