Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
By default, don't render the config vars debug panel
Browse files Browse the repository at this point in the history
Summary:
We could allow the config vars based on logged in or admin status, but they're rarely useful, and if we want
them there are other ways.
Sadly, this seemed to be the cleanest way to exclude only a single panel.

Test Plan: Manual, oh so manual.

Reviewers: josiah

Reviewed By: josiah

Subscribers: changesbot

Differential Revision: https://tails.corp.dropbox.com/D220332
  • Loading branch information
kylec1 committed Aug 16, 2016
1 parent f7e49c2 commit 44c45dc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions changes/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,17 @@ def create_app(_read_config=True, **config):

app.config['DEBUG_TB_ENABLED'] = True

app.config['DEBUG_TB_PANELS'] = ('flask_debugtoolbar.panels.versions.VersionDebugPanel',
'flask_debugtoolbar.panels.timer.TimerDebugPanel',
'flask_debugtoolbar.panels.headers.HeaderDebugPanel',
'flask_debugtoolbar.panels.request_vars.RequestVarsDebugPanel',
# Disable the config vars panel by default; it can contain sensitive information.
# 'flask_debugtoolbar.panels.config_vars.ConfigVarsDebugPanel',
'flask_debugtoolbar.panels.template.TemplateDebugPanel',
'flask_debugtoolbar.panels.sqlalchemy.SQLAlchemyDebugPanel',
'flask_debugtoolbar.panels.logger.LoggingPanel',
'flask_debugtoolbar.panels.profiler.ProfilerDebugPanel')

# celerybeat must be running for our cleanup tasks to execute
# e.g. celery worker -B
app.config['CELERYBEAT_SCHEDULE'] = {
Expand Down

0 comments on commit 44c45dc

Please sign in to comment.