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
Provide a better way for users to modify hawtconfig.json #2604
Comments
@tadayosi I think we could leverage the existing |
@akieling That's an idea, but Another option might be to use the custom plugin mechanism: The Login component doesn't share the same code with hawtio-core |
Note also that hawtio-online and hawtio-operator depend on |
@tadayosi yes, hawtio-online relies on |
@tadayosi Let me just share an alternative idea. What about creating a Servlet filter that intercepts the request to hawtconfig.json and customizes it before it gets sent back to the browser? The customization values would come from a file on disk, System variables, environment variables, etc. |
@akieling That sounds good too. Let's provide both ways then. By the way, another thing the custom plugin approach is good at is that the custom plugin provides a place to put other brand related resources such as images and css. The system properties approach might be easier for users but it seems to be still awkward for providing the brand related resources. Is there anything you're concerned about the custom plugin approach? Such as security issues, and so on? |
@tadayosi No concerns at all. You know better than me what type of customization the customers want to do. If they want to change images, then the system properties approach loses some of its benefits due to the need to serve the images from somewhere else or unzip Hawtio to add the images. |
…ication This illustrates how you can customise hawtconfig.json in a SB application. #2604
…mise hawtconfig.json Part of hawtio#2604
My branding-plugin looks ok for the purpose: Alex's idea of using a ServletFilter is recorded to #2609. |
Sorry to revive an old thread. But i couldn't make it work with a spring boot jar project. Where do i need to put my customized hawtconfig.json file in a spring boot jar to make it work? |
@osmanates Can you file a new issue for your question? I'm willing to help you there. First you can check this example btw: https://github.com/hawtio/hawtio/tree/hawtio-2.10.0/examples/springboot-authentication |
See: #2603
Currently users need to unzip
hawtio.war
and pack it again to modifyhawtconfig.json
:https://access.redhat.com/documentation/en-us/red_hat_fuse/7.4/html/managing_fuse/manage-monitor-fuse-karaf#fuse-console-branding-karaf
There should be a more sophisticated way for users to customise the configurations.
The text was updated successfully, but these errors were encountered: