-
Notifications
You must be signed in to change notification settings - Fork 900
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
Appliance-wide custom HTTP error pages #14244
Comments
Shared 404 sounds great! SUI and OPSUI shouldn't each have their own... Lemme know what you need me to do @skateman !! 🙇♀️ |
I mentioned it in #14263, but I'll repeat here. How would we make this productizable? |
@Fryguy we can't override but is there any problem with overwriting? |
We don't overwrite in our build process for productization. Partially because the goal is to separate "productized assets" into a separate RPM, and then one can't overwrite the other, but also because we want to leave the original source as pure as possible. |
Hm, then we have to modify the HTML files. In this |
What about having a conditional rewrite in Apache? If there is a file called |
Is that what we do for other skinnable assets? Saul it is, the change is one png, logo_transpsrent.png (pretty sure that's the name) |
The problem is that apache can't see behind our asset pipeline, so we can't handle this single image as any other asset 😞 |
So there's a whole slew of assets that get skinned, here faveicon.ico also being one... or are these items not being skinned rather superseded?
|
Everything that is in the |
right on! so we can affect brand_transparent.png, and it'll at least fix the miq logo showing up where it shouldn't... where would that change have to be made? |
You are searching for productization 😉 ask @simaishi |
Hmmm...I mean that's possible, but then we have to maintain a list in Apache. Additionally this binds us tighter with Apache, so I'm not sure. @carbonin @bdunne Can you give your perspective with respect to the kubernetes changes? |
Several thoughts based on the discussions around podification...
|
@bdunne is there a problem in putting the error pages & logo into the httpd container? |
@skateman I'm not sure of the state of this discussion, but I don't think we have a productization strategy for containers (other than the miq app one). So while I think the apache container is where the static assets probably belong, I'm not sure productizing them is something we can do yet. @Fryguy + @bdunne keep me honest if I'm missing some detail here. |
I've been trying to remove as much as possible from the httpd container. Soon I hope its only purpose is to handle authentication. Is there an issue with the rails server serving the error pages, or at least the images for them? Another thing to keep in mind is not only productization, but customer skinning of the app as well. It may look foreign to users to see a ManageIQ logo on an error page if the rest of the application is skinned with their company logos. |
I already came up with a conditional rewrite that can be used for the skinning too. |
Will the rails server do the rewrite? |
@bdunne it's kinda strange to serve the assets with rails in general, but it's possible with a conditional in the |
@bdunne, @Fryguy, @carbonin : we really don't want to have Rails serve the assets. That's a step in the wrong direction for the UI. This is a decision that has a significant impact on the UI and we need to be part of the discussion on this. If you guys decide to have a separate httpd to do the auth, keep it slim etc. and move the assets out of that container, we would have to reintroduce Apache or some other http server in the UI container or in a seperate container just for the purpose of serving the assets. Please, make sure that if you dig into things that have a potential of impacting the UI, you invide someone from the UI team to participate. |
@bdunne @carbonin @martinpovolny @skateman In light of the rearchitecture, would this be possible now, since the assets will be in one place? I think we found some oddities with the 404, and 500 pages specifically, because they're not treated like usual assets, but I'm not sure that would come into play here. |
@Fryguy I think yes, we just need some extra lines in the Apache configuration to catch 404 and 500 errors and forward them to the specific URL. |
This issue has been automatically marked as stale because it has not been updated for at least 6 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! |
@skateman is this still a valid issue. If not can you close. |
Well, yes it is |
@skateman @martinpovolny @Fryguy @bdunne @AllenBW where did we end up with this discussion? |
There is an open BZ for having the ManageIQ logo on the HTTP error (404, 422, 500) pages. The SUI team already implemented this feature in their project and I'm thinking about making it appliance-wide.
As we can not rely on the asset pipeline when using static error, I would like to move some minimal set of files from the SUI into the
public
folder of the main repo. When these files are in place, we can tell Apache to take over the error handling by usingProxyErrorOverride
andErrorDocument
. However, this solves the errors for the classic UI only, for the SUI we might need some extramod_rewrite
configuration or some modifications in the Angular app.The solution for the classic UI is super simple, the question is how much changes do we need for the SUI and if this is a good idea or not?
PS: we can always fall back and use the HTTP Status Cats API 🤣
The text was updated successfully, but these errors were encountered: