plugins.asciidoc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [float]
  2. [[breaking_70_plugins_changes]]
  3. === Plugins changes
  4. [float]
  5. ==== Azure Repository plugin
  6. * The legacy azure settings which where starting with `cloud.azure.storage.` prefix have been removed.
  7. This includes `account`, `key`, `default` and `timeout`.
  8. You need to use settings which are starting with `azure.client.` prefix instead.
  9. * Global timeout setting `cloud.azure.storage.timeout` has been removed.
  10. You must set it per azure client instead. Like `azure.client.default.timeout: 10s` for example.
  11. See {plugins}/repository-azure-repository-settings.html#repository-azure-repository-settings[Azure Repository settings].
  12. [float]
  13. ==== Google Cloud Storage Repository plugin
  14. * The repository settings `application_name`, `connect_timeout` and `read_timeout` have been removed and
  15. must now be specified in the client settings instead.
  16. See {plugins}/repository-gcs-client.html#repository-gcs-client[Google Cloud Storage Client Settings].
  17. [float]
  18. ==== S3 Repository Plugin
  19. * The plugin now uses the path style access pattern for all requests.
  20. In previous versions it was automatically determining whether to use virtual hosted style or path style
  21. access.
  22. [float]
  23. ==== Analysis Plugin changes
  24. * The misspelled helper method `requriesAnalysisSettings(AnalyzerProvider<T> provider)` has been
  25. renamed to `requiresAnalysisSettings`
  26. [float]
  27. ==== File-based discovery plugin
  28. * This plugin has been removed since its functionality is now part of
  29. Elasticsearch and requires no plugin. The location of the hosts file has moved
  30. from `$ES_PATH_CONF/file-discovery/unicast_hosts.txt` to
  31. `$ES_PATH_CONF/unicast_hosts.txt`. See <<file-based-hosts-provider, the
  32. file-based hosts provider documentation>> for further information.
  33. [float]
  34. ==== Security Extensions
  35. As a consequence of the <<include-realm-type-in-setting, change to Realm settings>>,
  36. the `getRealmSettings` method has been removed from the `SecurityExtension` class,
  37. and the `settings` method on `RealmConfig` now returns the node's (global) settings.
  38. Custom security extensions should register their settings by implementing the standard
  39. `Plugin.getSettings` method, and can retrieve them from `RealmConfig.settings()` or
  40. using one of the `RealmConfig.getSetting` methods.
  41. Each realm setting should be defined as an `AffixSetting` as shown in the example below:
  42. [source,java]
  43. --------------------------------------------------
  44. Setting.AffixSetting<String> MY_SETTING = Setting.affixKeySetting(
  45. "xpack.security.authc.realms." + MY_REALM_TYPE + ".", "my_setting",
  46. key -> Setting.simpleString(key, properties)
  47. );
  48. --------------------------------------------------
  49. The `RealmSettings.simpleString` method can be used as a convenience for the above.