From d5fbb7e58736c16e58557eecbe4bad173bfbf9c3 Mon Sep 17 00:00:00 2001 From: Grejdi Gjura Date: Fri, 10 Oct 2025 16:23:38 -0400 Subject: [PATCH] fix: update ssl opts after removal in ecto upgrade --- ex_cubic_ingestion/config/prod.exs | 1 - ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex | 2 +- ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ex_cubic_ingestion/config/prod.exs b/ex_cubic_ingestion/config/prod.exs index 03867fac..b077d81c 100644 --- a/ex_cubic_ingestion/config/prod.exs +++ b/ex_cubic_ingestion/config/prod.exs @@ -2,7 +2,6 @@ import Config config :ex_cubic_ingestion, ExCubicIngestion.Repo, show_sensitive_data_on_connection_error: false, - ssl: true, use_iam_token: true config :ex_cubic_ingestion, diff --git a/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex b/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex index 0958e713..764b4612 100644 --- a/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex +++ b/ex_cubic_ingestion/lib/ex_cubic_ingestion/repo.ex @@ -27,7 +27,7 @@ defmodule ExCubicIngestion.Repo do # update password with token and update ssl options (if set) to ref rds cert Keyword.merge(config, password: token, - ssl_opts: [ + ssl: [ cacertfile: Application.app_dir(:ex_cubic_ingestion, ["priv", "aws-cert-bundle.pem"]), verify: :verify_peer, server_name_indication: String.to_charlist(hostname), diff --git a/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs b/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs index 54e7e04d..640918cc 100644 --- a/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs +++ b/ex_cubic_ingestion/test/ex_cubic_ingestion/repo_test.exs @@ -58,7 +58,7 @@ defmodule ExCubicIngestion.RepoTest do ] # assert the ssl options are expected - assert Keyword.fetch!(connection_config, :ssl_opts) == expected_ssl_opts + assert Keyword.fetch!(connection_config, :ssl) == expected_ssl_opts end end end