fix: mark license key sensitive

so it's not logged to console when environment variable is used
This commit is contained in:
Zaiming (Stone) Shi 2022-02-08 17:22:10 +01:00
parent ae9c8098ba
commit 4cee12614b
1 changed files with 7 additions and 3 deletions

View File

@ -19,9 +19,13 @@ roots() -> [{license, hoconsc:union(
hoconsc:ref(?MODULE, file_license)])}]. hoconsc:ref(?MODULE, file_license)])}].
fields(key_license) -> fields(key_license) ->
[ {key, string()} [ {key, #{type => string(),
sensitive => true, %% so it's not logged
desc => "Configure the license as a string"
}}
]; ];
fields(file_license) -> fields(file_license) ->
[ {file, string()} [ {file, #{type => string(),
desc => "Path to the license file"
}}
]. ].