YT-260: Inherit restrictions from the parent Confluence page
We require edit restrictions on the release page. Since a new page is created each time, these restrictions must be applied to every new page. To streamline this in the pipeline, we inherit restrictions from the parent page.
By design, Confluence only inherits "read" permissions from the parent page. However, we also need "edit/update" restrictions. This update ensures that edit restrictions are manually inherited from the parent page.
With this approach, the Confluence space owner can decide which restrictions should be applied and set them on the Confluence side. The CI script will simply follow these settings, eliminating the need to modify the CI process when restriction changes are required.
Note: as the Confluence Python API module does not support setting restrictions, direct HTTP requests are used with the requests library to handle this functionality.