🐛 Do not check for basic auth on Kubernetes /healthz endpoint

This commit is contained in:
Jan Oberhauser 2019-09-17 16:39:52 +02:00
parent 68823f8b6f
commit e7bdaa65d4

View file

@ -135,7 +135,7 @@ class App {
throw new Error('Basic auth is activated but no password got defined. Please set one!');
}
const authIgnoreRegex = new RegExp(`^\/(rest|healthz|${this.endpointWebhook}|${this.endpointWebhookTest})\/.*$`);
const authIgnoreRegex = new RegExp(`^\/(rest|healthz|${this.endpointWebhook}|${this.endpointWebhookTest})\/?.*$`);
this.app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
if (req.url.match(authIgnoreRegex)) {
return next();