Content-Length: 322114 | pFad | http://github.com/electric-sql/electric/commit/d9896741d1263a968c0f0763b894280b9dea33a8

42 Starting with Electric v1.0.6 it is not necessary to explicitly obfus… · electric-sql/electric@d989674 · GitHub
Skip to content

Commit d989674

Browse files
committed
Starting with Electric v1.0.6 it is not necessary to explicitly obfuscate the DB password
However, v1.0.6 is not published on hex.pm. Just use the latest published version available.
1 parent bb4a439 commit d989674

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/elixir-client/config/runtime.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if config_env() == :test do
2020

2121
config :electric,
2222
start_in_library_mode: false,
23-
replication_connection_opts: Electric.Utils.obfuscate_password(connection_opts),
23+
replication_connection_opts: connection_opts,
2424
# enable the http api so that the client tests against a real endpoint can
2525
# run against our embedded electric instance.
2626
enable_http_api: true,

packages/elixir-client/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ defmodule Electric.Client.MixProject do
3232

3333
defp deps do
3434
[
35-
{:electric, "~> 1.0.0", optional: true},
35+
{:electric, "~> 1.0.10", optional: true},
3636
{:ecto_sql, "~> 3.12", optional: true},
3737
{:gen_stage, "~> 1.2", optional: true},
3838
{:jason, "~> 1.4"},

packages/elixir-client/test/support/db_setup.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ defmodule Support.DbSetup do
1818
end
1919

2020
def with_table(tablename \\ tablename(), table_columns) do
21-
base_config = Application.fetch_env!(:electric_client, :database_config)
21+
base_config =
22+
Application.fetch_env!(:electric_client, :database_config)
23+
|> Electric.Utils.deobfuscate_password()
24+
2225
extra_opts = [backoff_type: :stop, max_restarts: 0]
2326

2427
{:ok, utility_pool} = Postgrex.start_link(base_config ++ extra_opts)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/electric-sql/electric/commit/d9896741d1263a968c0f0763b894280b9dea33a8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy