Skip to content

Commit f8ad901

Browse files
ymao1kibanamachine
andcommitted
Increasing default api key removalDelay to 1h (elastic#85576)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
1 parent a22b397 commit f8ad901

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

x-pack/plugins/alerts/server/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('config validation', () => {
1515
},
1616
"invalidateApiKeysTask": Object {
1717
"interval": "5m",
18-
"removalDelay": "5m",
18+
"removalDelay": "1h",
1919
},
2020
}
2121
`);

x-pack/plugins/alerts/server/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const configSchema = schema.object({
1313
}),
1414
invalidateApiKeysTask: schema.object({
1515
interval: schema.string({ validate: validateDurationSchema, defaultValue: '5m' }),
16-
removalDelay: schema.string({ validate: validateDurationSchema, defaultValue: '5m' }),
16+
removalDelay: schema.string({ validate: validateDurationSchema, defaultValue: '1h' }),
1717
}),
1818
});
1919

x-pack/plugins/alerts/server/plugin.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('Alerting Plugin', () => {
2424
},
2525
invalidateApiKeysTask: {
2626
interval: '5m',
27-
removalDelay: '5m',
27+
removalDelay: '1h',
2828
},
2929
});
3030
const plugin = new AlertingPlugin(context);
@@ -73,7 +73,7 @@ describe('Alerting Plugin', () => {
7373
},
7474
invalidateApiKeysTask: {
7575
interval: '5m',
76-
removalDelay: '5m',
76+
removalDelay: '1h',
7777
},
7878
});
7979
const plugin = new AlertingPlugin(context);
@@ -124,7 +124,7 @@ describe('Alerting Plugin', () => {
124124
},
125125
invalidateApiKeysTask: {
126126
interval: '5m',
127-
removalDelay: '5m',
127+
removalDelay: '1h',
128128
},
129129
});
130130
const plugin = new AlertingPlugin(context);

0 commit comments

Comments
 (0)