From 2ed4db36048ca125d105bfe74470f6cdb2e78e5a Mon Sep 17 00:00:00 2001 From: unenglishable Date: Fri, 16 Aug 2024 03:09:31 -0700 Subject: [PATCH] fix(config/runtime): add issuer for guardian_config in :prod without this config, guardian redis completely breaks and it is ~~impossible~~ very difficult to trace where the issue came from ``` ** (KeyError) key :wheres not found in: #Ecto.Changeset "" ... ``` the telltale issue here being the `"aud" => ""` rather than `t0.aud == ^"EpochtalkServer" ` like you would see if debugging a working instance --- config/runtime.exs | 1 + 1 file changed, 1 insertion(+) diff --git a/config/runtime.exs b/config/runtime.exs index 38adc72c..45406476 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -117,6 +117,7 @@ guardian_config = case config_env() do :prod -> [ + issuer: "EpochtalkServer", secret_key: get_env_or_raise_with_message.( "GUARDIAN_SECRET_KEY",