Skip to content

Commit

Permalink
make warning logging of encryptionKey possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jan 7, 2020
1 parent 2d03066 commit 4c85953
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/legacy/plugins/reporting/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export async function config(Joi: any) {
}).default(),
encryptionKey: Joi.when(Joi.ref('$dist'), {
is: true,
then: Joi.string(),
then: Joi.string()
.allow(null)
.default(null),
otherwise: Joi.string().default('a'.repeat(32)),
}),
roles: Joi.object({
Expand Down

0 comments on commit 4c85953

Please sign in to comment.