Skip to content

Commit 246a143

Browse files
committed
refactor: disable security whithin YAML config upsertion
1 parent e386001 commit 246a143

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export async function start(options: StartESOptions): Promise<void> {
7373
[
7474
`-p`,
7575
`${FILEPATH_PREFIX}/elasticsearch-${esVersion}/es-pid`,
76-
`-Expack.security.enabled=false`,
7776
`-Ecluster.name=${clusterName}`,
7877
`-Enode.name=${nodeName}`,
7978
`-Ehttp.port=${port}`,
@@ -213,6 +212,9 @@ function upsertYAMLConfig(ymlConfigPath: string): void {
213212
yaml.dump({
214213
...parsedYaml,
215214
xpack: {
215+
security: {
216+
enabled: false,
217+
},
216218
ml: {
217219
enabled: false,
218220
},

0 commit comments

Comments
 (0)