The source project of this merge request has been removed.
🗃 Add `href_rewrites` field to RPS Mapping model
Decision Record
Some applications served via the Reverse Proxy Service have no knowledge of the source URL used to serve them.
This means that in the HTML they return, the hyperlinks (href
and src
attributes on HTML elements <a/>
, <img/>
, <script/>
, <link/>
, <form/>
, etc...) contain the target URL of the upstream.
In the SID CMDB, mappings had a field has standard rewrites
which, when enabled, enabled the configuration to replace the target URLs with the source URLs.
We need to replicate this feature in the Netbox CMDB.
Changes
-
🗃 Add fieldhref_rewrites
toMapping
model -
🗃 Add migration for new fieldhref_rewrites
on theMapping
model -
✨ Add fieldhref_rewrites
toMapping
forms, tables and HTML templates -
✨ Serialize fieldhref_rewrites
in REST API