Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
c59d8b79
Commit
c59d8b79
authored
Dec 07, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SECURITY FIX] Potential database password leak while in DEBUG mode
parent
4d22817f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
env.py
alembic/env.py
+2
-1
db.py
gargantext/util/db.py
+1
-1
No files found.
alembic/env.py
View file @
c59d8b79
...
...
@@ -18,7 +18,8 @@ from gargantext import settings, models
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config
=
context
.
config
config
.
set_main_option
(
"sqlalchemy.url"
,
settings
.
DATABASES
[
'default'
][
'URL'
])
config
.
set_main_option
(
"sqlalchemy.url"
,
settings
.
DATABASES
[
'default'
][
'SECRET_URL'
])
# Interpret the config file for Python logging.
# This line sets up loggers basically.
...
...
gargantext/util/db.py
View file @
c59d8b79
...
...
@@ -10,7 +10,7 @@ from sqlalchemy import delete
def
get_engine
():
from
sqlalchemy
import
create_engine
return
create_engine
(
settings
.
DATABASES
[
'default'
][
'URL'
]
return
create_engine
(
settings
.
DATABASES
[
'default'
][
'
SECRET_
URL'
]
,
use_native_hstore
=
True
,
json_serializer
=
json_dumps
,
pool_size
=
20
,
max_overflow
=
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment