Fixed
Details
Assignee
Christian PapeChristian PapeReporter
JianYetJianYetHB Grooming Date
Jun 06, 2023HB Backlog Status
Refined BacklogSprint
NoneAffects versions
Priority
Medium
Details
Details
Assignee
Christian Pape
Christian PapeReporter
JianYet
JianYetHB Grooming Date
Jun 06, 2023
HB Backlog Status
Refined Backlog
Sprint
None
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created June 6, 2023 at 5:22 PM
Updated August 1, 2024 at 4:34 PM
Resolved June 26, 2023 at 8:51 AM
Despite setting properties
opennms.web.base-url=https://%x%c/
which should force redirect HTTP request to HTTPS, there are certain paths that fail to do that. doesn’t seem to have fixed it completely. This problem is reproducible with certain condition.browser is Chrome/Edge.
OpenNMS is Horizon 31.0.6 and up or latest Meridian.
OpenNMS is located behind a reverse proxy and protocol used is HTTPS.
For example, navigating to path
https://opennms_host/opennms/admin/notification/noticeWizard/eventNotices.htm
then choose Edit. Nothing happens instead of redirecting you to the edit page. Further investigation shows that the HTTP response schema/protocol returned by opennms is http rather than https.Furthermore, coupled with the newly added CSP header
form-action 'self'
appears to contribute to this. Error shown as below. Pressing “Edit” violates the security policy.My theory is that the purpose of that CSP header is restricting URL redirection back to itself only. Upon pressing “Edit” a POST method for the HTTP request is created and opennms responds with schema/protocol http which is not the same as the origin https URL hence the security policy violation. This, however, is not affected when browsing on Firefox. It looks like Firefox permits that kind of HTTP interaction.
Other paths where this issue is observed are
opennms/event/advsearch.jsp
/opennms/alarm/advsearch.jsp
opennms/admin/notification/destinationPaths.jsp