Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-g8xr-f424-h2rv
  • Loading branch information
susodapop committed Nov 23, 2021
1 parent da696ff commit ce60d20
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker-compose.yml
Expand Up @@ -8,6 +8,8 @@ x-redash-service: &redash-service
skip_frontend_build: "true"
volumes:
- .:/app
env_file:
- .env
x-redash-environment: &redash-environment
REDASH_LOG_LEVEL: "INFO"
REDASH_REDIS_URL: "redis://redis:6379/0"
Expand All @@ -16,6 +18,7 @@ x-redash-environment: &redash-environment
REDASH_MAIL_DEFAULT_SENDER: "redash@example.com"
REDASH_MAIL_SERVER: "email"
REDASH_ENFORCE_CSRF: "true"
# Set secret keys in the .env file
services:
server:
<<: *redash-service
Expand Down
6 changes: 5 additions & 1 deletion redash/settings/__init__.py
Expand Up @@ -64,7 +64,11 @@
)

# The secret key to use in the Flask app for various cryptographic features
SECRET_KEY = os.environ.get("REDASH_COOKIE_SECRET", "c292a0a3aa32397cdb050e233733900f")
SECRET_KEY = os.environ.get("REDASH_COOKIE_SECRET")

if SECRET_KEY is None:
raise Exception("You must set the REDASH_COOKIE_SECRET environment variable. Visit http://redash.io/help/open-source/admin-guide/secrets for more information.")

# The secret key to use when encrypting data source options
DATASOURCE_SECRET_KEY = os.environ.get("REDASH_SECRET_KEY", SECRET_KEY)

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -39,6 +39,7 @@ jsonschema==3.1.1
RestrictedPython==5.0
pysaml2==6.1.0
pycrypto==2.6.1
python-dotenv==0.19.2
funcy==1.13
sentry-sdk>=0.14.3,<0.15.0
semver==2.8.1
Expand Down

1 comment on commit ce60d20

@willy-dauphin
Copy link

Choose a reason for hiding this comment

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

Docker problem with lines 11 and 12 during installation. You have to delete the two lines in order to proceed installation. If not, Docker isn't able to localize the correct file env.

Please sign in to comment.