Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webui: do not warn about CAs if there is only one master #566

Closed
wants to merge 1 commit into from

Conversation

pvoborni
Copy link
Member

@pvoborni pvoborni commented Mar 9, 2017

Web UI showed pop-up dialog which recommends to install additional CA in
topology section when only 1 CA existed even if there was only one master.

Though behind the pop-up is to prevent situation, where multiple replicas
are installed but neither with --setup-ca option and thus risking to loose
CA when original master is lost.

The warning was displayed also if only one IPA server exists. It is unnecessary
to annoy admin only about CA because the entire IPA is not duplicated.

Therefore the pop-up is now shown only one IPA server exists.

https://pagure.io/freeipa/issue/6598

@pvoborni
Copy link
Member Author

pvoborni commented Mar 9, 2017

Written in a way that it can be then easily extended with KRA check.

@@ -507,6 +507,9 @@ topology.servers_search_facet = function(spec, no_init) {
}
}

// Do not show warning if there is only one master
if (result.length <= 1) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd expect this check to appear prior to the for cycle so no useless computations are done, other than that LGTM. I will test it when I'm fixing #553.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@stlaz stlaz self-assigned this Mar 10, 2017
Web UI showed pop-up dialog which recommends to install additional CA in
topology section when only 1 CA existed even if there was only one master.

Though behind the pop-up is to prevent situation, where multiple replicas
are installed but neither with --setup-ca option and thus risking to loose
CA when original master is lost.

The warning was displayed also if only one IPA server exists. It is unnecessary
to annoy admin only about CA because the entire IPA is not duplicated.

Therefore the pop-up is now shown only one IPA server exists.

https://pagure.io/freeipa/issue/6598
@stlaz stlaz added the ack Pull Request approved, can be merged label Mar 10, 2017
@MartinBasti MartinBasti added the pushed Pull Request has already been pushed label Mar 10, 2017
@MartinBasti
Copy link
Contributor

master:

  • 6027a81 webui: do not warn about CAs if there is only one master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged pushed Pull Request has already been pushed
Projects
None yet
3 participants