Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Customise Kibana login with an assistance message#702

Merged
v1v merged 8 commits into
elastic:masterfrom
v1v:feature/login-page
Jan 14, 2020
Merged

Customise Kibana login with an assistance message#702
v1v merged 8 commits into
elastic:masterfrom
v1v:feature/login-page

Conversation

@v1v
Copy link
Copy Markdown
Member

@v1v v1v commented Dec 26, 2019

What does this PR do?

Enable a customized message on the Kibana login page.

Why is it important?

Help to know the login details easily.

Related issues

Caused by elastic/kibana#51557
Closes #677
Blocked by elastic/kibana#53800

How to test

python scripts/compose.py start 8.0.0   --build-parallel --no-apm-server-dashboards --no-apm-server-self-instrument --force-build
open http://localhost:5601
docker logs -f localtesting_8.0.0_kibana

UI

image

@v1v v1v self-assigned this Dec 26, 2019
@v1v v1v added the automation label Dec 26, 2019
Comment thread scripts/modules/elastic_stack.py Outdated
@v1v v1v marked this pull request as ready for review December 26, 2019 13:56
v1v added 2 commits January 6, 2020 09:55
For some reason the env variables for docker compose don't support the spaces so, let's replace with '\_' as the words separator
@v1v
Copy link
Copy Markdown
Member Author

v1v commented Jan 9, 2020

jenkins run the tests please

@v1v v1v requested review from cachedout and mikemadden42 January 9, 2020 14:07
@v1v v1v removed the in progress label Jan 9, 2020
Comment thread scripts/modules/elastic_stack.py Outdated
self.environment["ELASTICSEARCH_URL"] = ",".join(self.options.get(
"kibana_elasticsearch_urls") or [self.DEFAULT_ELASTICSEARCH_HOSTS])
if self.at_least_version("7.6") and options.get("xpack_secure"):
self.environment["XPACK_SECURITY_LOGINASSISTANCEMESSAGE"] = "Login\_details:\_`{}/{}`.\_" \
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

As I already described in the PR description, there is no other way to customize the login page using the env variables with docker-compose. That's the reason for using the _ as a word separator.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For people who come across this in the future, this is the PR that will eventually fix this in Docker Compose.

Copy link
Copy Markdown
Contributor

@cachedout cachedout left a comment

Choose a reason for hiding this comment

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

We can work around this by using HTML entity characters to render the spaces correctly in a browser. :)

clean spaces

Comment thread scripts/modules/elastic_stack.py Outdated
Comment thread scripts/modules/elastic_stack.py Outdated
@v1v v1v requested a review from cachedout January 14, 2020 13:14
Copy link
Copy Markdown
Contributor

@cachedout cachedout left a comment

Choose a reason for hiding this comment

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

Tested and looks great!!

@v1v v1v merged commit a11c762 into elastic:master Jan 14, 2020
@v1v v1v changed the title ci(jenkins): Customise login with an assistance message Customise Kibana login with an assistance message Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add message to the login page with authentication details

4 participants