[BUG] Custom branding fails for SSL enabled because certs aren't passed in the verification
See original GitHub issueDescribe the bug
We did setup the opensearch-dashboards as docker container and did configure the custom branding according to the documentation
opensearchDashboards.branding:
logo:
defaultUrl: "https://<SERVERNAME>:5601/ui/icon.svg"
darkModeUrl: "https://<SERVERNAME>:5601/ui/icon.svg"
# loadingLogo:
# defaultUrl: ""
# darkModeUrl: ""
# mark:
# defaultUrl: ""
# darkModeUrl: ""
# faviconUrl: ""
applicationTitle: "Loggingsystem"
The applicationTitle
setting is working, but the rest of the URLs are not working, we still see the default opensearch logo/icons.
Doing a curl is valid if I pass the “-k” parameter to omit the certificate validation.
In the logfile I see messages like:
{"type":"log","@timestamp":"2022-01-19T12:30:54Z","tags":["info","branding"],"pid":1,"message":"logo default config is not found or invalid"}
{"type":"log","@timestamp":"2022-01-19T12:30:54Z","tags":["info","branding"],"pid":1,"message":"mark default config is not found or invalid."}
{"type":"log","@timestamp":"2022-01-19T12:30:54Z","tags":["info","branding"],"pid":1,"message":"loadingLogo default config is not found or invalid."}
{"type":"log","@timestamp":"2022-01-19T12:30:54Z","tags":["info","branding"],"pid":1,"message":"favicon config is not found or invalid."}
Expected behavior The configured icons should be shown in frontend.
OpenSearch Version Docker Image: opensearchproject/opensearch:1.2.3
Dashboards Version Docker Image: opensearchproject/opensearch-dashboards:1.2.0
Plugins
Please list all plugins currently enabled. opensearch-alerting opensearch-anomaly-detection opensearch-asynchronous-search opensearch-cross-cluster-replication opensearch-index-management opensearch-job-scheduler opensearch-knn opensearch-observability opensearch-performance-analyzer opensearch-reports-scheduler opensearch-security opensearch-sql
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:12 (6 by maintainers)
Top GitHub Comments
I have the same exact issue. If I disable SSL, the custom branding works but when I enable SSL using my self-signed certificates, it stops working.
Hello @awuetz,
Thanks for opening this! Just to verify when the server is running, you can navigate to
https://<SERVERNAME>:5601/ui/icon.svg
and see your logo?Based on the logs it might not actually be able to see that. Are you dumping your assets into the docker container every time you are start it since putting stuff in the assets folder is a workaround solution for having your own server hosted or having some CDN until there is an improvement to start a server not tracked in source control. But if you are using docker images, every time the server starts it will wipe out this temp solution unless you have something specifically taking a file and putting it in that folder.
You can ignore the other log messages about configs you haven’t set, we have improvement not to log configs not set everytime you start or refresh the application. PR: https://github.com/opensearch-project/OpenSearch-Dashboards/pull/941
Also, unfortunately the custom branding configuration is only consumed from the base OpenSearch Dashboards. So plugins like the security plugin (the login screen) do not consume the configuration yet. Perhaps we can make an issue in that repo to do so since the logic is built out to be consumed by plugins.
Finally:
This
logo
is only consumed by the header bar. I’d recommend usingmark
,mark
is used through out the base OpenSearch Dashboards. If you don’t setlogo
, it will default usemark
in the header menu but we provided alogo
which intended to give a wider option for the header bar.Let me know if need me to clarify anything.