Don't set a min-length on encryption key for reportin (#69827)
This commit is contained in:
parent
a89fa3c1f8
commit
ba9aed4b4e
|
@ -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 } } } })
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue