Skip to content

[CCR] Allow user to use CCR when security is not enabled.#35333

Merged
cjcenizal merged 2 commits intoelastic:masterfrom
cjcenizal:bug/ccr-permissions-security-disabled
Apr 19, 2019
Merged

[CCR] Allow user to use CCR when security is not enabled.#35333
cjcenizal merged 2 commits intoelastic:masterfrom
cjcenizal:bug/ccr-permissions-security-disabled

Conversation

@cjcenizal
Copy link
Copy Markdown
Contributor

@cjcenizal cjcenizal commented Apr 18, 2019

Fixes #33356

When we shipped CCR in 6.7 we shipped it with a notification to the user when their permissions were inadequate.

Unfortunately, this logic contained a bug which manifested when security was disabled. In such a scenario, the user would see this unhelpful error:

image

This change allows the user to use CCR when security is disabled.


Outdated info below, preserved for posterity

This PR updates the API endpoint to check if security is enabled and notifies the client if it isn't, in which case the user is informed of the missing requirement:

image

@cjcenizal cjcenizal added bug Fixes for quality problems that affect the customer experience Feature:CCR and Remote Clusters v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v7.2.0 v7.0.1 v6.7.2 v6.8.0 labels Apr 18, 2019
@cjcenizal cjcenizal requested a review from jen-huang April 18, 2019 23:36
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/es-ui

@cjcenizal
Copy link
Copy Markdown
Contributor Author

I got word from Shane that security is not required for CCR, so I'm going to update this change to just allow the user to use the UI if security is disabled.

Copy link
Copy Markdown
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM! Thanks for fixing this!

@cjcenizal cjcenizal changed the title [CCR] Surface CCR requirement for security when security is not enabled. [CCR] Allow user to use CCR when security is not enabled. Apr 18, 2019
@cjcenizal cjcenizal force-pushed the bug/ccr-permissions-security-disabled branch from f304f51 to b77940b Compare April 18, 2019 23:49
Copy link
Copy Markdown
Contributor

@jen-huang jen-huang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revised code dropping security requirement LGTM!

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Feature:CCR and Remote Clusters release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v6.7.2 v7.0.1 v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CCR] Unable to load CCR app if security is disabled

3 participants