-
Notifications
You must be signed in to change notification settings - Fork 913
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
[BUG] Custom branding fails for SSL enabled because certs aren't passed in the verification #1164
Comments
Hello @awuetz, Thanks for opening this! Just to verify when the server is running, you can navigate to
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: #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 Let me know if need me to clarify anything. |
Hi @kavilla i do see these log messages after the startup of the container, as soon as a user accesses the dashboard:
"Are you dumping your assets into the docker container", yes we are using docker compose here and we ensured, that the files are present within the container. Also the owner of the files is the user and group I already tested with all options, so I do see the same behavior for all of those branding urls. The
What I also noticed was, that I do not see my configured URLs neither in the logs nor if I observe the browser requests.
So I was wondering if the branding config is working at all? |
Would you be willing to share you docker-compose file? If not, no worries! As of the current release, custom branding requires something to be serving these files. Sorry for the redundancy, but if you don't have something externally serving these images then the docs only provide a temp workaround. Any files that are placed in So just to verify you have a docker-compose file that adding the file to the nested assets folder and it is still having issues accessing the file?
I think it should be since the applicationTitle is coming through correct? There is just some verification on the URLs provide that the file returned doesn't 404. So if it doesn't 404 it will use the default branding configurations. If it turns out that it wasn't added to the assets folder, then I think we should use this issue #1022 to make it less complicated since I do believe relying a nested folder is really confusing. Let me know! Thank you so much! |
@kavilla yes i choose to use the temp workaround. opensearch-dashboard:
[....]
ports:
- 5601:5601
expose:
- "5601"
[....]
volumes:
[...]
- /opt/sc/elk/opensearch-dashboards/config/fav32.png:/usr/share/opensearch-dashboards/src/core/server/core_app/assets/fav32.png:ro
- /opt/sc/elk/opensearch-dashboards/config/icon.svg:/usr/share/opensearch-dashboards/src/core/server/core_app/assets/icon.svg:ro
I have already validated, that the Regarding the URL validation: "here is just some verification on the URLs provide that the file returned doesn't 404", could it be an issue due to the fact, that we have TLS enabled |
I have the same exact issue. |
Duplicate issue: #1243 |
Adding `assets` folder that gets served up under UI for ease of us. SSL support when OpenSearch Dashboards SSL is enabled. Issue Resolved: opensearch-project#1164 Signed-off-by: Kawika Avilla <[email protected]>
Adding `assets` folder that gets served up under UI for ease of us. SSL support when OpenSearch Dashboards SSL is enabled. Issue Resolved: #1164 Signed-off-by: Kawika Avilla <[email protected]>
Adding `assets` folder that gets served up under UI for ease of us. SSL support when OpenSearch Dashboards SSL is enabled. Issue Resolved: #1164 Signed-off-by: Kawika Avilla <[email protected]> (cherry picked from commit 289ad24)
Adding `assets` folder that gets served up under UI for ease of us. SSL support when OpenSearch Dashboards SSL is enabled. Issue Resolved: #1164 Signed-off-by: Kawika Avilla <[email protected]> (cherry picked from commit 289ad24) Co-authored-by: Kawika Avilla <[email protected]>
We are using OpenSearch 2.0.0 version but still facing custom logo over HTTPs. Any update on any fix for this issue? {"type":"log","@timestamp":"2022-07-21T12:58:52Z","tags":["error","branding"],"pid":23552,"message":"logo default URL was not found or invalid. Using default branding."} |
Hello @jkrishnarao2003, Do you mind sharing your opensearch_dashboards.yml config? A few things that I can think of that might still be preventing you from using this. Other folks start the server with their the certs then they do some actions on the certs to prevent it from being readable after the application is running per their requirements. The validation happens every time the application is rendered so if the certs are not valid at runtime then the logo won't load. |
Sure. this opensearch_dashboards.yml config works only with http but not with https. Modified some confidential details.
|
Thanks for reviewing. |
@joshuarrrr @kavilla Please tag this issue to the correct version. |
Hello @joshuarrrr @kavilla , |
Describe the bug
We did setup the opensearch-dashboards as docker container and did configure the custom branding according to the documentation
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:
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
The text was updated successfully, but these errors were encountered: