Commit 042166a7 authored by Ramallo Alejandro M.'s avatar Ramallo Alejandro M.

fixed UPDATE REALM SPEC

parent bde1fc6d
Pipeline #80059324 passed with stage
in 3 minutes and 41 seconds
......@@ -237,19 +237,22 @@
}
}).
%% Override to make private_kesy requiered without a default
%% Every node will load the config file and thus if we do not do this
%% all of tehm will generate a differemt set ok keys concurrently.
%% Even though the vsalue should converge, we would be wasting resources.
%% Override to make private_keys not required on update
-define(UPDATE_REALM_SPEC, ?REALM_SPEC#{
<<"private_keys">> => #{
alias => private_keys,
key => <<"private_keys">>,
required => true,
required => false,
allow_undefined => false,
allow_null => false,
datatype => {list, binary},
validator => fun
([]) ->
Keys = [
jose_jwk:generate_key({namedCurve, secp256r1})
|| _ <- lists:seq(1, 3)
],
{ok, Keys};
(Pems) when length(Pems) < 3 ->
false;
(Pems) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment