Fix SAML provider incorrectly added to Docker SSL (#178555)

## Summary

The existence of `kibanaUrl` in the default parameters leads to the SAML
role provider being enabled for `yarn es docker --ssl` and then ES
crashing on startup. This option should only be a default for `yarn es
serverless --ssl`
This commit is contained in:
Brad White 2024-03-12 20:40:11 +01:00 committed by GitHub
parent b285c3a1ed
commit c1f4821607
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -92,7 +92,7 @@ export const serverless: Command = {
string: ['projectType', 'tag', 'image', 'basePath', 'resources', 'host', 'kibanaUrl'],
boolean: ['clean', 'ssl', 'kill', 'background', 'skipTeardown', 'waitForReady'],
default: defaults,
default: { ...defaults, kibanaUrl: 'https://localhost:5601/' },
}) as unknown as ServerlessOptions;
if (!options.projectType) {

View file

@ -20,7 +20,6 @@ kbnEs
'source-path': resolve(__dirname, '../../elasticsearch'),
'base-path': resolve(__dirname, '../.es'),
ssl: false,
kibanaUrl: 'https://localhost:5601/',
})
.catch(function (e) {
console.error(e);