Skip to content

Commit 117b5dc

Browse files
committed
change default value for jwt signing key for more meanful
1 parent 07eb9a9 commit 117b5dc

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

server/auth/types/kerberos/routes.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ export class KerberosAuthRoutes {
4949
user = await this.securityClient.authinfo(request);
5050
} catch (error) {
5151
context.security_plugin.logger.error(`Failed authentication: ${error}`);
52-
return response.unauthorized(
53-
{
54-
body: `Kerberos authentication failed ${error}`,
55-
headers: {
56-
'www-authenticate': 'Negotiate',
57-
},
58-
});
52+
return response.unauthorized({
53+
body: `Kerberos authentication failed ${error}`,
54+
headers: {
55+
'www-authenticate': 'Negotiate',
56+
},
57+
});
5958
}
6059

6160
// clear session

server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const configSchema = schema.object({
146146
}),
147147
kerberos: schema.object({
148148
jwt_siging_key: schema.string({
149-
defaultValue: '00000000000000000000000000000000',
149+
defaultValue: 'secret share between opensearch and dashboards',
150150
minLength: 32,
151151
}),
152152
}),

0 commit comments

Comments
 (0)