How can we get a warning banner on the main page before login? We have a requirement to have a login banner (plain text) on the login page or as a popup before authentication. Thanks!
When asking questions, please provide the following information:
-
Search Guard and Elasticsearch version
-
Installed and used enterprise modules, if any
-
JVM version and operating system version
-
Search Guard configuration files
-
Elasticsearch log messages on debug level
-
Other installed Elasticsearch or Kibana plugins, if any
There is a whole chapter about customizing the login page in the docs:
···
On Thursday, July 5, 2018 at 2:56:05 PM UTC+2, erik clark wrote:
How can we get a warning banner on the main page before login? We have a requirement to have a login banner (plain text) on the login page or as a popup before authentication. Thanks!
When asking questions, please provide the following information:
- Search Guard and Elasticsearch version
- Installed and used enterprise modules, if any
- JVM version and operating system version
- Search Guard configuration files
- Elasticsearch log messages on debug level
- Other installed Elasticsearch or Kibana plugins, if any
The problem we are having is with:
searchguard.basicauth.login.brandimage: “file:///etc/kibana/logo-header.png”
Neither file:// nor file:/// works. We do not have some random website where we can host the png, as it has been customized specifically to the Kibana app deployed. Please advise as to why file:// does not work, or where it can be put in the /usr/share/kibana directory so that we can reference it in kibana.yaml. Thanks!
···
On Thursday, July 5, 2018 at 11:08:16 AM UTC-4, Jochen Kressin wrote:
There is a whole chapter about customizing the login page in the docs:
https://docs.search-guard.com/latest/kibana-login-customizing
On Thursday, July 5, 2018 at 2:56:05 PM UTC+2, erik clark wrote:
How can we get a warning banner on the main page before login? We have a requirement to have a login banner (plain text) on the login page or as a popup before authentication. Thanks!
When asking questions, please provide the following information:
- Search Guard and Elasticsearch version
- Installed and used enterprise modules, if any
- JVM version and operating system version
- Search Guard configuration files
- Elasticsearch log messages on debug level
- Other installed Elasticsearch or Kibana plugins, if any
Have a look at the default for the brand image in index.js:
/plugins/searchguard/assets/searchguard_logo.svg
``
So place your image inside public/assets of the Kibana plugin installation in plugins/search-guard-kibana-plugin, e.g.:
/usr/share/kibana/plugins/search-guard-kibana-plugin/public/assets/myimage.svg
``
``
and reference it like
/plugins/searchguard/assets/myimage.svg
``
···
On Thursday, July 5, 2018 at 7:11:47 PM UTC+2, erik clark wrote:
The problem we are having is with:
searchguard.basicauth.login.brandimage: “file:///etc/kibana/logo-header.png”
Neither file:// nor file:/// works. We do not have some random website where we can host the png, as it has been customized specifically to the Kibana app deployed. Please advise as to why file:// does not work, or where it can be put in the /usr/share/kibana directory so that we can reference it in kibana.yaml. Thanks!
On Thursday, July 5, 2018 at 11:08:16 AM UTC-4, Jochen Kressin wrote:
There is a whole chapter about customizing the login page in the docs:
https://docs.search-guard.com/latest/kibana-login-customizing
On Thursday, July 5, 2018 at 2:56:05 PM UTC+2, erik clark wrote:
How can we get a warning banner on the main page before login? We have a requirement to have a login banner (plain text) on the login page or as a popup before authentication. Thanks!
When asking questions, please provide the following information:
- Search Guard and Elasticsearch version
- Installed and used enterprise modules, if any
- JVM version and operating system version
- Search Guard configuration files
- Elasticsearch log messages on debug level
- Other installed Elasticsearch or Kibana plugins, if any
Hello jkressin !
I tried tons of things but couldn’t manage to make the image work…
So I put my image in the folder /usr/share/kibana/plugins/search-guard-kibana-plugin/public/assets/mylogo.svg
I then added searchguard.basicauth.login.brandimage: “file:///plugins/searchguard/assets/mylogo.svg”
I tried without file, without / in front of plugins.
I can’t have a server just to host my picture.
Thank you if you could update the documentation.
Have a good day.
Hi,
have a look at how the default index location is defined in index.js:
brandimage: Joi.string().default("/plugins/searchguard/assets/searchguard_logo.svg")
So if you want to change the logo by adding it to the plugin files, place it in:
search-guard-kibana-plugin/public/assets/mylogo.svg
and then change the default in index.js to:
brandimage: Joi.string().default("/plugins/searchguard/assets/mylogo.svg")
The syntax to reference the image is a bit weird, but that’s node.js / hapi / Kibana.
Hello @jkressin !
It worked succesfully !
I just took some time before I realized you need to give read rights to every one so the image can be loaded.
Thank you for your fast reply !
Thi