Brand_image for Kibana branding can be a base64 encoded string

This is a post about something I’ve discovered which maybe someone else will see and find useful. The brand_image setting for the Kibana login dialogue as described at

https://docs.search-guard.com/latest/kibana-login-customizing#customizing-the-login-page

doesn’t have to point to an image that you are hosting on a webserver somewhere. If you don’t have anywhere suitable to host such an image you can put a base64 encoded version of it in the configuration file. E.g.

default:
  auth_domains:
  - type: "basic"
    message: "Some words here"
  login_page:
    # base64 of brandlogo.png
    # $ base64 -w 0 brandlogo.png
    brand_image: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAABVCAQAAAB6dUCWAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXandsoonandsoonandsoon"

@mikew thank you for bringing this to our attention, it does appear that this option is not outlined in the documentation. We will have this updated shortly.

Arguably it’s covered by the documentation saying the value is “An absolute URL”. If one considers a data: URL to be absolute. I don’t think a data: URL can ever be relative. :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.