Skip to content

Fixes #3132 - Control anonymous reporting via config option#3133

Merged
karlcow merged 5 commits intomasterfrom
issues/3132/1
Jan 9, 2020
Merged

Fixes #3132 - Control anonymous reporting via config option#3133
karlcow merged 5 commits intomasterfrom
issues/3132/1

Conversation

@miketaylr
Copy link
Copy Markdown
Member

@miketaylr miketaylr requested a review from karlcow January 6, 2020 22:29
OAUTH_TOKEN = os.environ.get('OAUTH_TOKEN')
SECRET_KEY = os.environ.get('SECRET_KEY') or 'NO SECRETS'
HOOK_SECRET_KEY = os.environ.get('HOOK_SECRET_KEY') or 'SECRETS'
ANON_REPORTING_ENABLED = False
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in the future we want to allow localhost anonymous reporting, but for now just set everything to False.

Copy link
Copy Markdown
Member

@karlcow karlcow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good. Thanks.

UPLOADS_DEFAULT_DEST = os.environ.get('PROD_UPLOADS_DEFAULT_DEST')
UPLOADS_DEFAULT_URL = os.environ.get('PROD_UPLOADS_DEFAULT_URL')
ANON_REPORTING_ENABLED = os.environ.get('PROD_ANON_REPORTING_ENABLED')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is happening if the value is not defined in environment?

@karlcow karlcow merged commit 4617b3f into master Jan 9, 2020
@karlcow karlcow deleted the issues/3132/1 branch June 1, 2020 21:49
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

Successfully merging this pull request may close these issues.

2 participants