Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phrase Key Leaked #12

Closed
baileyparker opened this issue Mar 19, 2015 · 1 comment
Closed

Phrase Key Leaked #12

baileyparker opened this issue Mar 19, 2015 · 1 comment

Comments

@baileyparker
Copy link

FYI: you leak your Phrase API key in your gulp file.

tutanota/web/gulpfile.js

Lines 341 to 347 in 82c96bf

request('https://phraseapp.com/api/v1/locales?auth_token=64b1dce0ec448d21ec25816186cded22', function (error, response, body) {
if (!error && response.statusCode == 200) {
var languages = JSON.parse(body);
// download each language
return async.eachSeries(languages, function(lang, callback) {
// lang is an object eg. {"id": 122, "name": "german", "code": "de-DE", "country_code": "de", "writing_direction": "ltr"}
request('https://phraseapp.com/api/v1/translations/download?auth_token=64b1dce0ec448d21ec25816186cded22&locale='+ lang.name +'&format=simple_json', function(error, response, body) {

I'm assuming this was accidental, but unsure if this can do any harm beyond hitting rate limits. Regardless, you probably want to change this and replace it with an environment variable.

@armhub
Copy link
Contributor

armhub commented Mar 20, 2015

Thanks for the hint. But with this key you can only download the translations and it is not possible to make any changes. As all translations are public anyway, I guess we do not have to hide this key.

@armhub armhub closed this as completed Mar 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants