Don't set a min-length on encryption key for reportin (#69827)

This commit is contained in:
Joel Griffith 2020-06-24 11:19:13 -07:00 committed by GitHub
parent a89fa3c1f8
commit ba9aed4b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -112,6 +112,8 @@ describe('Reporting Config Schema', () => {
.encryptionKey
).toBe('qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq');
expect(ConfigSchema.validate({ encryptionKey: 'weaksauce' }).encryptionKey).toBe('weaksauce');
// disableSandbox
expect(
ConfigSchema.validate({ capture: { browser: { chromium: { disableSandbox: true } } } })

View file

@ -136,8 +136,8 @@ const CsvSchema = schema.object({
const EncryptionKeySchema = schema.conditional(
schema.contextRef('dist'),
true,
schema.maybe(schema.string({ minLength: 32 })), // default value is dynamic in createConfig$
schema.string({ minLength: 32, defaultValue: 'a'.repeat(32) })
schema.maybe(schema.string()), // default value is dynamic in createConfig$
schema.string({ defaultValue: 'a'.repeat(32) })
);
const RolesSchema = schema.object({