Skip to content

Commit

Permalink
Rotate keys
Browse files Browse the repository at this point in the history
  • Loading branch information
CoralineAda committed Jun 13, 2017
1 parent 39d8698 commit cd06167
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
RACK_ENV="development"
GITHUB_URL="https://github.com/CoralineAda/alice"
ISSUES_URL="https://github.com/CoralineAda/alice/issues"

# https://developer.wolframalpha.com/portal/apisignup.html
ALPHA_APP_KEY=xxx
ALPHA_ENABLED=true
BOT_NAME=alice
BOT_SHORT_NAME=alice

# http://www.brewerydb.com/developers/apps
BREWERY_DB_TOKEN=xxx

DB_HOST=localhost
DB_PASS=foo
DB_USER=alice

# https://support.google.com/cloud/answer/6158862?hl=en
GOOGLE_CLOUD_KEYFILE="./google_language_api.json"
GOOGLE_CLOUD_PROJECT=xxx

OPS=coraline
YUMMLY_APP_ID=xxx
YUMMLY_APP_KEY=xxx
Expand Down
2 changes: 1 addition & 1 deletion alice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

config = {
'channel' => '#main,#mudroom',
'name' => 'alice',
'name' => ENV['BOT_NAME'],
'incoming_webhook' => ENV['INCOMING_WEBHOOK'],
'outgoing_token' => ENV['SLACK_API_TOKEN']
}
Expand Down
13 changes: 12 additions & 1 deletion google_language_api.json
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
{"type": "service_account", "project_id": "alice-154301", "private_key_id": "c7ff3fc9a096e79b53a6d178b7f2f42a21884227", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDTAK4KWdS9Afz2\n/s1AYqZb8sxjx8nL86elMsdCveA4PA7QjlvDLdJrdb3ihXtpTax8Y8oyCWC0835z\n5d0W3WjQEOcn7pcWARa9SkV3nGCncVJaHAZ8lvl/W4hMYv7MtUI2tci/3YYpE+U+\n4MLQ/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RQA8PAm8kXhGYMjiYSph0u3aEhXryU93AoGAT+ds\nPmcgPoViLNyfsFJpWXaNr1dLMJ9nBfWZh8K7R4eWPU1BHnUrDRptonrNr56CmrOF\noRYiIleQ38T0p0NTEIvBLtH8bmj5Z5uR0+gNt3bSRAzpjomFZnj/siE+6mBxPx77\nH1tLVfcm5ZDrWkNiwDFE9bLOioyA2tQXAAi+ddECgYEA7uMEQhLaiF2/eq2jZOu+\nZperqFYD2h/3K2I7nsOowmlpkMx5wddNM/sQCZb7Gwv1ycvyAqK4sZ8YXmNuN2ui\na6iREzRKbFYQPXhZjKfvGd6DPqRtei+EUzcLoInCWjARqKM0DekZ7C/epCr9tXZj\naknwcExWCLBsW0s3ZgLD7hE=\n-----END PRIVATE KEY-----\n", "client_email": "[email protected]", "client_id": "108172675285063539908", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/926062770728-compute%40developer.gserviceaccount.com"}
{
"type": "service_account",
"project_id": "alice-154301",
"private_key_id": "6b973caf72d01ec831f3bda4b9d4ea86056d3b22",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDbuovwjKb3wfvW\nUp3JEyU/6h4Keoag1kofrWciTyGg2y9XrtMLNeDQ1kYioUC+HIo8g+Ut4fgyJCTE\n67lUuemVCTbHwQ03Fymfg3ymSdBf75YujL4UDdLE8VGYPeBWBuR/85X+bhSlFEUE\n71A9UurOgI262KhU3DlR5QdIQGR+wCyvNA4PfuqGW2nn5mkyERVEujE5Czym7Tnr\nt2MfV2u1a7+FP1Du0iWgoBSNMc+lm7dw9nEDqhBmAbj205OwajX+gVx7736EpzvH\nyROPJfcLpDkEx+xEYZlEZ+KlepR6zW5Nhx5yKOJV6wnMtrQgjs4tqkA6s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KsZiJ8qZRP+BtNQ3x4dk0Qcu6ZSVAoGAUf/sBflfOT70odZ4Y0Hg\nAD1viMvXWVToV+HU26RUmQCTZ4pUT63msTozmLqA7JhWLLeRaR/YU4gdL31kB6xo\nwZ93tGB7UPx9xr37//0rCS3DMFelsjvSMvcCCoYK2wTe/RXO5m1BoXHcWu7ZjJAl\nJFQsnYYpfj0p3IDKVu+riAk=\n-----END PRIVATE KEY-----\n",
"client_email": "[email protected]",
"client_id": "108172675285063539908",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/926062770728-compute%40developer.gserviceaccount.com"
}

0 comments on commit cd06167

Please sign in to comment.