Commit graph

95 commits

Author SHA1 Message Date
Thomas Watson
0997f4e783
[6.8] Use @commercial/hapi (#97605) 2021-06-29 16:57:46 +02:00
Thomas Watson
df41843abc
[6.8] Upgrade hapi v17.8.5 to @hapi/hapi v17.9.0 (#100382) 2021-05-26 10:26:55 +02:00
Thomas Watson
a726f59550
Upgrade from statehood v6.0.9 to @hapi/statehood v6.1.2 (#100319) 2021-05-19 16:52:13 +02:00
Thomas Watson
84fa5add86
[6.8] Upgrade some hapi related packages to their hapi-namespace counterparts (#98753) 2021-05-06 18:50:12 +02:00
Aleh Zasypkin
6a529d0720
[6.8] Support deep links inside of RelayState for SAML IdP initiated login. (#69663) 2020-06-26 10:38:54 +02:00
Aleh Zasypkin
058e535172
[6.8] Redirect to Logged Out UI on SAML Logout Response. (#69815) 2020-06-25 14:12:45 +02:00
Mikhail Shustov
293d6de10c
[6.8] Make SameSite cookie's attribute configurable (#68108) (#68993)
* add SameSite:None support

* add docs

* Update docs/settings/security-settings.asciidoc

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-15 15:33:20 +02:00
Joe Portner
fbe078c6bd
[6.8] Bump jquery from 3.4.1 to 3.5.0 (#64884) again (#67036) 2020-05-21 15:05:58 -04:00
Joe Portner
12085a84c0
[6.8] Revert jquery update (#66201) 2020-05-12 08:52:04 -04:00
Joe Portner
a72b8ceffe
[6.8] Bump jquery from 3.4.1 to 3.5.0 (#64884) (#65336) 2020-05-05 17:10:13 -04:00
Aleh Zasypkin
2baa83bc4b
[6.8][Security] Add message to login page. (#64158) 2020-04-23 08:16:55 +02:00
Aleh Zasypkin
dc91d17ffc
[6.8] Allow SAML IdP initiated login when SAML authentication provider is NOT configured as the first provider. (#60240) 2020-03-17 07:29:59 +01:00
Aleh Zasypkin
34147e8f79
[6.8] Use refresh token for any access token error with 401 status code and re-authentication user for any refresh token error with 400 status code. (#60233)
* Use refresh token for any access token error with 401 status code and re-initiate SAML handshake for any refresh token error with 400 status code.

* Review#1: repurpose redundant tests to test token failures with 500 code.
2020-03-16 13:30:12 +01:00
Peter
5b70dcabea
[6.8] Backport/6.8/security basic (#35889)
* enable security plugin in basic

enable security on file dataviz and import (ML plugin)

update unit tests

add api test coverage for security in basic

move audit logging to standard+ license level

* removing test that wasn't added until 7.X (feature controls)
2019-05-01 16:40:56 -07:00
Aleh Zasypkin
a8dcac07d2
[6.7] Force user to re-authenticate if token refresh fails with 400 status code. (#33839) 2019-03-26 15:10:48 +01:00
Brandon Kobel
2d1408f080
Allow run_as to be arbitrary string to support patterns and unknown users (#32779) (#33205) 2019-03-14 10:48:26 -07:00
Jason Tedor
6b0ed49175
Add manage_leader_index privilege (#33154)
* Add manage_leader_index privilege

This commit adds the newly added manage_leader_index privilege.

* Iteration

* Update snaps
2019-03-13 16:39:32 -04:00
Brandon Kobel
fd58b08037
Add create_snapshot privilege (#31086) (#31598)
A new cluster privilege type has been added to ES in [elastic/elasticsearch#35820](https://github.com/elastic/elasticsearch/pull/35820) .
2019-02-20 10:43:04 -08:00
Larry Gregory
3fe125b951
[6.x] Support allow_restricted_indices on PUT role api (#30077) (#30140)
Backports the following commits to 6.x:
 - Support allow_restricted_indices on PUT role api  (#30077)
2019-02-05 16:54:31 -05:00
Aleh Zasypkin
e7c5c0bf3d
[6.x] Introduce I18nService core service and I18nContext. (#29944) 2019-02-04 14:39:45 +01:00
Matthew Kime
ad92f4b451
[6.x] Management: EUI Navigation sidebar (#25905) (#29490)
* Management: EUI Navigation sidebar (#25905)

* partial work - sidebar works, need to address rendering issues

* rendering fixes

* refactor sidenav into its own file

* refactor sidenav into its own file

* remove unneeded changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove more unneeded EuiPage

* remove more unneeded EuiPage

* snap snap

* remove unused dependencies

* functional tests

* sidebar tweaks, beats-cm

* lint

* properly sharing UI code

* fix eui export

* type fixes

* add test

* add test

* testy test

* partial progress

* attmpt to fix functional test

* from merge

* snap snap

* clean up management for side nav changes

* functional test fix

* snap, blank landing

* snap snap

* change management item order

* test fix

* disable tslint line

* ts fix

* functional test fix

* functional test fixes

* fix functional test

* minor cleanup

* simplify management registry callback

* remove comment

* react island with kibana version

* merge

* fix scss reference

* fix types

* remove mistaken commit

* remove k7 switch

* snapshot update

* fix sidebar nav headers

* landing page copy

* remove dummy text

* merge

* i18n and revert unneeded change

* Update edit_role_page.tsx

* i18n

* i18n

* snap snap

* better text

* snap snap

* mergi

* pop open nav on mobile

* add management section tests

* NOTICE

* fix subhead text, add padding to bottom of management nav

* Update sidebar_nav.tsx

* merge merge

* fix sass lint

* .

* snap snap

* snap snap
2019-01-31 14:31:18 -06:00
Jason Rhodes
d39bebde67
Updates React et al to 16.6 (#24707) (#29203)
* Updates react to 16.6 (latest)

* Updated fragment-based snapshots for Kibana root unit tests

* Updated fragment-based snapshots for x-pack unit tests

* Removed xpack yarn.lock file bc it is no longer needed, it was reintroduced by accident during a rebase in this branch

* React 16.6 snapshot updates, round 2 (mostly Fragment snapshot diffs)

* Updated last round of React 16.6 snapshots

* Fixes query bar issue with 16.4 gDSFP lifecycle

* Updated yarn lock (arraybuffer.slice updated)

* Updates snapshots where executeQueryOptions prop appears
2019-01-23 14:35:39 -05:00
Larry Gregory
d289656e53
[6.x] Adds missing cluster privileges to role management screen (#28692) (#28698)
Backports the following commits to 6.x:
 - Adds missing cluster privileges to role management screen  (#28692)
2019-01-14 14:51:52 -05:00
Spencer
8a5bcbc7aa
[uiExports/styleSheetPaths] avoid string concatenation for paths (#27471) (#27644) 2019-01-14 11:47:10 -08:00
Caroline Horn
6e4ae71663
Final ui/public/styles LESS to SASS (#27510) (#28696) 2019-01-14 13:53:10 -05:00
Chandler Prall
749374eb5a
Add SCSS linting (#27328) (#27995)
* scss linting POC

* update yarn.lock

* Include sass linting alongside es/ts lint tasks

* fix linting errors

* replace unceccessary selector on rollup creation
2019-01-03 09:50:49 -07:00
Nathan Reese
09fd4b245b
EUI 6.0.1 (#27787) (#27793)
* EUI 6.0.1

* update snapshots
2018-12-26 15:08:03 -07:00
Court Ewing
1fb934b70c
[security] Token auth provider (#26997) (#27503)
* [security] Token auth provider

From a user perspective, the token provider behaves similarly to the
basic provider in that it can power the native login experience and can
also be used for API calls via the authorization header (albeit with the
Bearer realm).

From a technical perspective, the token provider deals with
authentication via the token service in Elasticsearch, so while it
handles user credentials in the case of login, a temporary, refreshable
access token is stored in the session cookie instead. This means that
when you log out, not only is the cookie invalidated, but the token
itself cannot be reused.

* token provider integration tests

* include token api integration tests by default

* remove unused ProviderOptions from typedef

* assert that valid login sets an authorization header

* unit tests for refresh token and failure cases

* integration tests for headers and sessions

* clean up login/logout tests for consistent setup functions

* test for header rejection scenarios
2018-12-21 11:19:44 -05:00
Leanid Shutau
65a26c82f3
[I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat (#26468) (#27375)
* [I18n] Update locale data for IntlRelativeFormat and IntlMessageFormat

* Update locales

* Add default relative formats

* Fix en locale formats

* Update readme

* Make setFormats public

* Update snapshots

* Resolve comments

* Update locales list

* Update snapshots

* Add locale data for pseudo-locale
2018-12-21 13:20:00 +03:00
Tal Levy
c7dacec434 Add ILM privileges (#27461)
This commit adds the `manage_ilm`, `read_ilm` cluster
privileges, and the `manage_ilm` index privilege.

these were introduced into ES by:
https://github.com/elastic/elasticsearch/pull/36493
2018-12-20 08:54:22 -08:00
dave.snider@gmail.com
dd9e773156
[6.x] EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI (#27009) (#27429)
* EUI 5.8.1 comes with a brand color refresh. Also removes lots of KUI (#27009)

EUI 5.7.0 had a color refresh which switched around our palette to better match branding guidelines. Hex colors are still hard coded in large parts of Kibana so most of the changes not in kbn/ui-framework are simple shifts to match that styling.

* snapshots
2018-12-18 14:32:08 -08:00
Chandler Prall
f4314cd01c
[6.x] update eui to 5.6.1 (#27145) (#27339)
* update eui to 5.6.1 (#27145)
2018-12-17 14:56:23 -07:00
Larry Gregory
9eeed3bce9
fix DLS query toggle (#27213) (#27229) 2018-12-14 16:36:19 -05:00
Court Ewing
af0bb705fb
[security] Support alternate auth providers for login (#26979) (#27097)
Login is no longer coupled directly to our basic auth provider, so
alternative auth providers can now be used with our standard login flow.
The LoginAttempt request service is the mechanism for auth providers to
integrate with the login flow.
2018-12-12 20:18:39 -05:00
Brandon Kobel
cc0cdc61d3
Redirecting to /, instead of /login, on the successfully logged out page (#26999) (#27065)
We're using the successfully logged out page with the SAML provider
currently, so redirecting to the /login page is problematic since they
won't be able to login using this url. Instead, we're redirecting them
to '/' so that the auth providers can figure out what to do.
2018-12-12 12:56:25 -08:00
Maryia Lapata
9d0d7894e8
[i18n] Optimize translation labels for Roles page (#26945) (#27029)
* [i18n] Optimize translation labels

* Usage of ng-if instead of ng-show
2018-12-12 17:09:34 +03:00
Brandon Kobel
86c9a69c16
Fixing issues with the url.search being null in Node 10 (#26992) (#27007)
Node 10 uses `null` to denote the non-existence of a querystring
parameter when `url.parse(urlString, true)` is used, the following
changes fix our usages within the security plugin.
2018-12-11 17:23:17 -08:00
Larry Gregory
17b6fc7294
[6.x] Only show change password form when a password change is possible (#26779) (#26954)
Backports the following commits to 6.x:
 - Only show change password form when a password change is possible  (#26779)
2018-12-11 08:30:02 -05:00
Court Ewing
5ae28da66d
Fail out of auth flow on first provider failure (#26648) (#26934)
In practical terms, the flexibility afforded by providers being able to
recover from the failures of previously configured providers isn't
compelling, but the ambiguity is not ideal.
2018-12-10 21:44:40 -05:00
Bhavya RM
dd8e16a70b
fixing a11y errors so we can add a11y rules for tslint (#26902) (#26921) 2018-12-10 17:10:01 -05:00
Tiago Costa
1d3fcaac0a
[6.x] Upgrade to NodeJS 10 (#25157) (#26909)
* chore(NA): merge and solve conflicts backporting to 6.x

* chore(NA): merge and solve conflicts backporting to 6.x
2018-12-10 18:50:30 +00:00
Chris Koehnke
84de0b0865 Fix Elasticsearch typo on connection error screen (#26815)
`Elastiscearch` -> `Elasticsearch`.
2018-12-07 12:54:04 -05:00
Court Ewing
d0c0959843
Update token API calls in elaticsearch.js (#26650) (#26773) 2018-12-06 12:58:23 -05:00
Maryia Lapata
005bf4d900
[i18n] Translate Security -> Account and Nav control components (#26011) (#26689)
* translate login/logout visualization component

* Update login/logout component - change injecti18n name to injectI18n

* Update login/logout component - make needed changes

* update one snapshot

* update login translation

* update one snapshot

* Fix

* Fix unit test

* Localize logout tooltip
2018-12-05 15:27:05 +03:00
Maryia Lapata
0c6a9429d9
translate login/logout visualization component part 2 (#26082) (#26621)
* translate login/logout visualization component part 2

* Update login translation part 2 - change FormattedMessage to intl.formatMessage

* change some ids

* update Infra Ops Part 2 - directly wrap some classes by injectI18n()

* update one snapshot

* update one snapshot

* update tests

* update collapsible_panel.test.tsx

* update one snapshot

* update one test

* change some code

* update one snapshot

* update roles.html

* Fix unit tests

* Fix message
2018-12-04 16:01:23 +03:00
Larry Gregory
8e3d8022ef
fixes documentation links for ES role privileges (#26466) (#26547) 2018-12-03 13:50:56 -05:00
Larry Gregory
555acc7d62
updates GET /api/security/role to sort on role name (#26491) (#26546) 2018-12-03 13:29:12 -05:00
Leanid Shutau
f1f5f1c9b3
[I18n] Support interpreting individual i18n-values as html or text-only (#26274) (#26469)
* [I18n] Add attribute for interpreting i18n-values as html or text-only

* Switch over to html_ prefixed values solution

* Update readme
2018-12-03 10:11:49 +03:00
Brandon Kobel
f00d37fcc5
Respect the basePath for the link to the user profile in the k7 header (#26417) (#26423) 2018-11-29 09:33:48 -08:00
Brandon Kobel
6de1f6e4cd
Deleting no longer used privileges (#24873) (#26190)
* We can now delete old privileges

* Logging message when error deleting specific privilege
2018-11-26 12:35:37 -08:00