Skip to content

Commit

Permalink
[paths] Add default lookup for config folder at /etc/kibana
Browse files Browse the repository at this point in the history
When `(KBN|KIBANA)_PATH_CONF` was introduced, we removed the fallback lookup to
`/etc/kibana/kibana.yml` in #67433.  This environment variable was added
to `/etc/default/kibana` and made available, scoped to the Kibana service
for deb and rpm packages.  This environment setting, however, is not available
when running binaries directly and caused the regression noted in

This re-adds a fallback lookup to `/etc/kibana/kibana.yml` when
searching for a kibana.yml configuration.

Testing
1) Install a .deb or .rpm package
2) `sudo -u kibana /usr/share/bin/kibana --version`

Closes #101249
  • Loading branch information
jbudz committed Jun 30, 2021
1 parent 4b5ceb3 commit c0f5184
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-utils/src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const CONFIG_PATHS = [
process.env.KIBANA_PATH_CONF && join(process.env.KIBANA_PATH_CONF, 'kibana.yml'),
process.env.CONFIG_PATH, // deprecated
join(REPO_ROOT, 'config/kibana.yml'),
'/etc/kibana/kibana.yml',
].filter(isString);

const CONFIG_DIRECTORIES = [
Expand Down

0 comments on commit c0f5184

Please sign in to comment.