forked from bird-house/birdhouse-deploy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request bird-house#247 from bird-house/weaver-publish-process
## Changes: - Magpie/Twitcher: update `magpie` service from [3.21.0](https://github.com/Ouranosinc/Magpie/tree/3.21.0) to [3.26.0](https://github.com/Ouranosinc/Magpie/tree/3.26.0) and bundled `twitcher` from [0.6.2](https://github.com/bird-house/twitcher/tree/v0.6.2) to [0.7.0](https://github.com/bird-house/twitcher/tree/v0.7.0). - Adds [Service Hooks](https://pavics-magpie.readthedocs.io/en/latest/configuration.html#service-hooks) allowing Twitcher to apply HTTP pre-request/post-response modifications to requested services and resources in accordance to `MagpieAdapter` implementation and using plugin Python scripts when matched against specific request parameters. - Using *Service Hooks*, inject ``X-WPS-Output-Context`` header in Weaver job submission requests through the proxied request by Twitcher and `MagpieAdapter`. This header contains the user ID that indicates to Weaver were to store job output results, allowing to save them in the corresponding user's workspace directory under `wpsoutputs` path. More details found in PR bird-house#244. - Using *Service Hooks*, filter processes returned by Weaver in JSON response from ``/processes`` endpoint using respective permissions applied onto each ``/processes/{processID}`` for the requesting user. Users will only be able to see processes for which they have read access to retrieve the process description. More details found in PR bird-house#245. - Using *Service Hooks*, automatically apply permissions for the user that successfully deployed a Weaver process using ``POST /processes`` request, granting it direct access to this process during process listing, process description request and for submitting job execution of this process. Only this user deploying the process will have access to it until further permissions are added in Magpie to share or publish it with other users, groups and/or publicly. The user must have the necessary permission to deploy a new process in the first place. More details found in PR bird-house#247.
- Loading branch information
Showing
9 changed files
with
377 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.