Commit graph

42 commits

Author SHA1 Message Date
jasper
1f9f5732a7 [5.x] Kibana Globalization - Phase 1 (#10664)
* Kibana Globalization - Phase 1

Backports PR #7545

**Commit 1:**
Add low level i18n plugin

Manages languages that are available and is responsible for loading translated
content at the granularity of a plugin.

To be done:
 - APIs for store and retrieval

* Original sha: aca671f10b
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-20T17:12:25Z

**Commit 2:**
Use Kibana install as root for the translation store directory

Setting the path for storing the bundled language translation files to
<KIBANA_INSTALL>/data/store_translations/<PLUGIN_NAME>

* Original sha: c3ba5785cb
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-21T13:36:59Z

**Commit 3:**
Updated i18n core plugin APIs to be asynchronous

To be done:
 - Better error handling in APIs
 - Fix threading issue with storePluginLanguageTranslations API

* Original sha: 80d8a2ce72
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-22T17:25:30Z

**Commit 4:**
Fix thread synchroization issue in storePluginLanguageTranslations

* Original sha: 856fb0200f
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-24T10:43:06Z

**Commit 5:**
Update error handling in i18n core plugin

* Original sha: c5d22bede1
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-24T14:30:27Z

**Commit 6:**
Change to use NodeJS mkdirp function for creating directories recursively

Updates with review comments from @srl295. Changed export syntax to show the
exported functions at end of file.

* Original sha: b37e4f8b7b
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-27T11:04:01Z

**Commit 7:**
Add REST API for getting translations of a language for a plugin

To be done:
 - Add algorithm to decide on the language for a plugin by comparing the accept languages
from the REST call and the plugin supported languages
 - Add REST API tests

* Original sha: ec6d2b1ca2
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-27T22:42:15Z

**Commit 8:**
Add algorithm for determining plugin language when retrieving translations

Client would pass languages used in the 'accept-language' header. These
languages would then be compared against the plugin supported languages
and best compared language would be selected.

To be done:
 - Add REST API tests

* Original sha: a75faaea1c
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-28T21:10:39Z

**Commit 9:**
Add API to return all registered plugin language translations

* Original sha: 66d051bed3
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-29T17:02:34Z

**Commit 10:**
Add HAPI API to get all plugins translation files

* Original sha: c3403e7530
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-06-30T16:08:28Z

**Commit 11:**
Update register translations API to be independent of plugin name and language

The register API is updated to be independent of plugin name and language. The API will now
traverse the path given and create language bundles as per language files it traverses.
The translations files structure has also been simplified to be just key/value objects.

To be done:
 - Add hapi API to get translations
 - Extend the API tests to test responses

* Original sha: 0f4902d98d
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-01T16:09:33Z

**Commit 12:**
Update API test

* Original sha: 9785df221f
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-05T17:52:25Z

**Commit 13:**
Add eslint fix for API test

* Original sha: d41fcecc49
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-06T10:00:22Z

**Commit 14:**
Update with review comments

From review https://github.com/elastic/kibana/pull/7545#issuecomment-231147435
following comments updated:
- README, .gitignore, and .eslintrc are not needed in a core plugin
- package.json only needs name and version
- unit tests need to go in a tests directory otherwise they won't get picked up
by the grunt tasks. Also our convention is to name the test file with the same
name as the module it's testing (so i18n_tests.js should just be i18n.js)
- For consistency with the rest of the code base, rename the data directory to fixtures.
- Prefer const (or let if necessary). Don't use var.
- Use ES6 imports/exports rather than commonjs style
- Only export the i18n module's public API. For instance, I don't think getPluginTranslationDetails is used outside of the i18n module, so it shouldn't be exposed publicly. If you want to expose it for testing purposes, I would recommend creating an i18n directory with an index.js file that exports the module's public API, and a separate i18n.js file with the "private" API. index.js will be for public use, i18n.js will be for private internal use.

* Original sha: c8b2197ad5
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-11T11:23:37Z

**Commit 15:**
Update after review comments

From review (https://github.com/elastic/kibana/pull/7545#issuecomment-231884490):
- i18n module API should return promises for async operations instead of using
callbacks
- All filesystem access should be async
- Unit tests need to be updated based on new proposed plugin structure
(single language file, not split by view)

From design (https://github.com/elastic/kibana/issues/6515#issuecomment-231400097):
- Removed API as will consider in later phase

TODO:
- Make write function async

* Original sha: e17653dd04
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-15T18:24:21Z

**Commit 16:**
Update after review comments

Updated write function to be asynchronous

* Original sha: eaf35ab392
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-19T11:03:45Z

**Commit 17:**
Update registerTranslations API to take absolute translation file as argument

The API originally took the directory as the argument but following reviews it
was decided to change to absolute file because it will be less brittle
since it is more explicit.

* Original sha: f1974ca2ab
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-21T17:43:27Z

**Commit 18:**
Translate the Kibana welcome message

Translates the start-up message (“Kibana is loading ...”)in the Jade template.

To be done:
 - Means to register the core plugin translations. They are currently added
in the fixtures directory as static files. Need to be generated on the fly.

* Original sha: 10db4585bd
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-25T13:58:54Z

**Commit 19:**
Add build task to generate core plugin translations

Task which calls registerTranslations API and then a task which copies the
regsitered translations to <kibana_root>/build/kibana

* Original sha: 4957173794
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-27T10:00:35Z

**Commit 20:**
Add hook to optimize module to add registration during dev startup

Registration of the core plugin translations during development start of
Kibana server. The translations include the welcome message and server error
startup message.

* Original sha: 5f61475ad5
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-28T14:18:19Z

**Commit 21:**
Handle scenario when the user preferred language header is not passed

The UI when loading asks i18n plugin which language translation to use
depending on the user preferred language header 'accept-language'.
This commit is to handle scenario where header is not passed. The algorithm
then chooses the default language.

* Original sha: 9fbe6d5fcd
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-07-29T10:51:33Z

**Commit 22:**
Replace registering of translations at plugin install time to the plugin init phase

This change follows review comments in:
https://github.com/elastic/kibana/issues/6515#issuecomment-236237218

* Original sha: 32d5034d9c
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-08T14:39:34Z

**Commit 23:**
Update after review comments

Comments:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-72890673
- https://github.com/elastic/kibana/pull/7545#discussion-diff-72894762

* Original sha: 8c7f51ca5d
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-09T09:36:04Z

**Commit 24:**
Update after plugin folder layout changes in Kibana

This require to use <kibana_root>/data for registered translations
and i18n plugin moved to core_plugins from plugins.

Refer to PR for more details:
https://github.com/elastic/kibana/pull/7562

* Original sha: b84f40a40b
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-09T11:09:18Z

**Commit 25:**
Update translation registration to file path rather than bundling

After review discussions it was agreed to just register the absolute paths
to translation files rather than bundling each file into one central file
at registration.

* Original sha: 2dd3065856
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-16T09:28:38Z

**Commit 26:**
Update review comments

This commit contains the following review comments:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74661282
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74661392
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74662271
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74663235
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669201
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669269
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669419
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669628
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74799382

* Original sha: db11a2db24
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-18T14:09:22Z

**Commit 27:**
Update review comments

The following review comments are included in the commit:
- https://github.com/elastic/kibana/pull/7545#discussion_r74663515
- https://github.com/elastic/kibana/pull/7545#discussion_r74666995
- https://github.com/elastic/kibana/pull/7545#discussion_r74805552

* Original sha: 8c39a8d5e9
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-19T12:44:39Z

**Commit 28:**
Expose the i18n APIs in the server object for plugin access

Plugins should call the i18n plugin APIs through the server object
and not directly from the module.

This closes he following comments:
- https://github.com/elastic/kibana/pull/7545#discussion_r74662598
- https://github.com/elastic/kibana/pull/7545#discussion_r74669327
- https://github.com/elastic/kibana/pull/7545#discussion_r74669765

* Original sha: a9e30d3931
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-19T17:31:10Z

**Commit 29:**
Update accept-language-parser module to 1.2.0

Module version 1.2.0 fixes issue:
https://github.com/opentable/accept-language-parser/issues/8

This commit updates review comments:
https://github.com/elastic/kibana/pull/7545#discussion-diff-75525214
https://github.com/elastic/kibana/pull/7545#issuecomment-240290461

* Original sha: da669da2e5
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-30T17:49:23Z

**Commit 30:**
Add i18n default locale as a configurable item

Adds 'defaultLocale' configurable item to the i18n plugin configuration.
The default locale is used for translations if the locale specified by user
is not supported.

This commit satisfies the review comment:
- https://github.com/elastic/kibana/pull/7545#discussion-diff-74669970

* Original sha: 9064e8a7e6
* Authored by Martin Hickey <martin.hickey@ie.ibm.com> on 2016-08-31T10:42:52Z

* [eslint] autofix lint errors
2017-03-02 16:40:19 -07:00
jasper
b9d99d30b9 Modifying SSL settings to be consistent with the stack (#10062)
Backports PR #9823

**Commit 1:**
Modifying SSL settings to be consistent with the stack

* Original sha: 6ea4077b45
* Authored by = <brandon.kobel@elastic.co> on 2016-10-07T10:19:45Z

**Commit 2:**
Removing deprecated console settings from the docs

* Original sha: 9dc79fda7d
* Authored by kobelb <brandon.kobel@elastic.co> on 2017-01-13T16:08:18Z

**Commit 3:**
Removing unused code

* Original sha: 22713b7777
* Authored by kobelb <brandon.kobel@elastic.co> on 2017-01-13T16:09:43Z

**Commit 4:**
Using array for certificateAuthorities in the kibana.yml

* Original sha: a93c9fe10a
* Authored by kobelb <brandon.kobel@elastic.co> on 2017-01-13T16:10:01Z

**Commit 5:**
Moving the kbn_server deprecation warnings to be earlier

* Original sha: 9dba22aff4
* Authored by kobelb <brandon.kobel@elastic.co> on 2017-01-20T12:30:51Z

**Commit 6:**
Allowing the cipher suites to be configured

* Original sha: e2242686c1
* Authored by kobelb <brandon.kobel@elastic.co> on 2017-01-20T19:00:40Z
2017-01-25 12:11:47 -05:00
jasper
325940d838 replace non-US-ASCII characters in kibana.yml (#9240)
Backports PR #9025

**Commit 1:**
replace non-US-ASCII characters in kibana.yml

* Original sha: 67a22d2e22
* Authored by aquister <aquister@users.noreply.github.com> on 2016-11-10T08:50:18Z
* Committed by Alexander Lindquister <alelindq@cisco.com> on 2016-11-10T09:07:39Z
2016-11-29 09:44:58 -05:00
Thomas Neirynck
14592d5322 remove leading spaces 2016-10-03 15:45:11 -04:00
Elastic Jasper
e418887905 Backport PR #8375
---------

**Commit 1:**
Make expected server.basePath usage more clear

* Original sha: 02c9030c6a
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-20T15:48:35Z
2016-09-22 19:40:23 -04:00
Thomas Neirynck
e702c6d404 Improve doc 2016-08-25 12:41:45 -04:00
Thomas Neirynck
549293d2b1 Bind Kibana server to localhost
This is a breaking change. The default behaviour will now be that
connections from remote users will be rejected.
2016-08-25 12:41:45 -04:00
Court Ewing
d00d177d01 Configurable headers for all elasticsearch requests
A new server-side configuration, elasticsearch.customHeaders, allows
people to configure any number of custom headers that will get sent
along to all requests to Elasticsearch that are made via the proxy or
exposed client.

This allows for advanced architectures that do things such as dynamic
routing based on install-specific headers.
2016-08-18 17:58:20 -04:00
Timothy Sullivan
0c78e59f33 ops: set default interval for stat collection to 5 seconds
When polling the NodeJS server for operations data every 10 seconds, the
data become coarse-looking when viewing it at fine-grain detail. If you
aggregate the data into a date histogram and the bucket size is 10
seconds, then there'll be missing data in every other bucket. That is,
unless the time bounds of the buckets line up PERFECTLY with the time
that operations data was collected, which is unlikely
2016-06-03 13:40:16 -07:00
Shaunak Kashyap
65ddf96d34
Only document one option for sending no headers 2016-04-16 05:52:54 -07:00
Shaunak Kashyap
304511715e
Updating documentation 2016-04-15 12:23:43 -07:00
Shaunak Kashyap
2149f84aba
Renaming property to make its intent more explicit 2016-04-15 06:11:07 -07:00
Shaunak Kashyap
f9f4b79626
Allow for elasticsearch.requestHeaders to be set to null 2016-04-14 17:55:28 -07:00
Shaunak Kashyap
836c740e56 Adding 'authorization' to the default headers list 2016-04-14 16:39:31 -07:00
Shaunak Kashyap
b635b2c466
Adding elasticsearch.requestHeaders option to kibana.yml and documentation 2016-04-13 16:56:26 -07:00
Jonathan Budzenski
738e3d0105 [server] Add server.name 2016-03-23 10:05:24 -05:00
Timothy Sullivan
2c828aedff [config] add ops.interval config option 2016-03-10 10:50:03 -07:00
Timothy Sullivan
71cbe048c9 [chore] cut trailing whitespace 2016-03-10 10:50:03 -07:00
Joe Fleming
419434f5c8 4.x timeout fixes applied to master
see PR #6341 and #6377

Fixes #6385
2016-03-02 19:30:09 +00:00
Paul Echeverri
797c7098cf New commit to sync personal fork with 4.4 main 2016-01-05 14:54:27 -08:00
Jonathan Budzenski
642d4d6afa [config] Add option for changing max payload size on requests sent to server. Closes #5775. 2015-12-29 11:29:13 -06:00
spalger
cdfb581e9a [server/xsrf] use the current version as the xsrf header, rather than a random value 2015-12-07 14:52:02 -07:00
spalger
4e7ae9fafd Merge branch 'master' of github.com:elastic/kibana into fix/relativePathsInKibana 2015-11-16 15:24:22 -06:00
spalger
5b38f328cf [config] add not about server.xsrf.token config 2015-11-10 10:58:04 -06:00
spalger
1cfa5f632f [config] add note about server.basePath 2015-11-05 17:34:11 -06:00
Jonathan Budzenski
9d0515f934 [config] Quote user and password example. Closes #5206 2015-11-05 16:10:57 -06:00
Rashid Khan
04ef79dac4 Merge pull request #5259 from ryanmaclean/patch-1
Update kibana.yml
2015-11-05 06:34:37 -07:00
Mark Walkom
4e2bf76950 Added missing ': false' 2015-11-04 11:05:29 +11:00
Ryan MacLean
48bc82b782 Update kibana.yml
Pedantic edit  :)
2015-11-01 17:49:11 -08:00
Rashid Khan
47cca849c8 Merge pull request #4844 from spalger/fix/configFileOrder
Group auth-related config items together
2015-09-14 16:31:58 -07:00
David Wittman
0d45630b1f Fix typos in kibana.yml 2015-09-10 00:18:19 -04:00
spalger
e5dfa425e3 added logging output tweaks to the config file 2015-09-02 15:40:15 -07:00
spalger
1d576f4fd2 Merge branch 'master' of github.com:elastic/kibana into fix/configFileOrder 2015-09-01 10:35:21 -07:00
spalger
a16e4f1b0b [config] reorder to @tbragin recommendation 2015-09-01 10:33:48 -07:00
Spencer
b694025399 Merge pull request #4734 from lukasolson/issues/4697
Fix issues with elasticsearch and ssl
2015-08-26 15:04:00 -07:00
Arnout Boks
434bf025aa Fixed typo in kibana.yml 2015-08-25 13:21:07 +02:00
Lukas Olson
63bc181871 Attempt to fix issues with elasticsearch and ssl 2015-08-21 17:11:18 -07:00
Spencer
fd79d959a6 Group auth-related config items together 2015-08-18 11:03:48 -07:00
spalger
608be7435e Merge branch 'master' of github.com:elastic/kibana into apps/home 2015-07-22 17:33:23 -07:00
Spencer Alger
73beac9cf1 consolidate around --config arg, use js to resolve 2015-07-10 09:01:27 -07:00
Spencer Alger
4f5f523946 [server/pid] move pid to it's own config, allow setting exclusive=true 2015-07-09 22:27:24 -07:00
Spencer Alger
e98d264c20 enhance cli to manage dev server 2015-07-08 17:45:32 -07:00