Skip to content

Commit

Permalink
Don't store connection details in connection
Browse files Browse the repository at this point in the history
These connection options are only needed when establishing a new connection
and they are retrieved from config at that time.

This ensures that sensitive information is not logged when
a snowflex connection crashes.

fixes DAPPS-2084
  • Loading branch information
kellyfelkins committed Apr 4, 2023
1 parent 02d2ecb commit d902d77
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/snowflex/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ defmodule Snowflex.Connection do

state = %__MODULE__{
pid: pid,
status: :idle,
conn_opts: connection_args
status: :idle
}

{:ok, state}
Expand Down

0 comments on commit d902d77

Please sign in to comment.