Skip to content

Commit

Permalink
prefer ssl over clear text by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Neise authored Jan 23, 2018
1 parent c4febb8 commit ee38ab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fact/credentials/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,7 @@ def create_factdb_engine(database=None):
if database is not None:
config['database'] = database

return create_engine(spec.format(**config))
return create_engine(
spec.format(**config),
connect_args={'ssl': {'ssl-mode': 'preferred'}},
)

0 comments on commit ee38ab9

Please sign in to comment.