Closed Zaperex closed 1 month ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from zaperex. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
The image is available at: quay.io/janus-idp/backstage-showcase:pr-1265
!
seems the patches are failing to be applied when doing yarn install
locally
Tested with https://quay.io/janus-idp/backstage-showcase:pr-1265-efc72e5 and the permissions patches were not applied in the image. (Permissions don't appear in the /api/scaffolder/.well-known/backstage/permissions/metadata
endpoint.)
So it seems the patches partially work? As in the backend routes seem to be protected now, however, the frontend changes that disable certain buttons depending on permissions does not seem to be working. I tested in the upstream backstage instance, and it works as expected.
Patches seem to break as soon as I update the branch
The image is available at: quay.io/janus-idp/backstage-showcase:pr-1265
!
When testing locally (after manually adding the content into the node_modules
and then running yarn patch-package <package>
), I was able to get it to work as expected (previous UI issue might have been due to patching with an outdated package).
However, the scaffolder-backend
, scaffolder-react
, scaffolder
, and catalog
package patches fail to apply in a clean environment (after I do a rm -rf node_modules
).
The image is available at: quay.io/janus-idp/backstage-showcase:pr-1265
!
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Close in favor of https://github.com/janus-idp/backstage-showcase/pull/1282
The image is available at: quay.io/janus-idp/backstage-showcase:pr-1265
!
Description
This Pull Requests tests applying the additional scaffolder permissions package changes as a patch using
yarn patch-package
to test RHIDP-2324Testing Instructions
The new permissions add the following new behaviours:
<BACKEND_URL>/api/scaffolder/.well-known/backstage/permissions/metadata
scaffolder.task.read
: prevents reading of tasks, task events/eventstreamsGET /v2/tasks
,GET /v2/tasks/:taskId
,GET /v2/tasks/:taskId/events
andGET /v2/tasks/:taskId/eventstream
endpointsscaffolder.task.create
: prevents creation of scaffolder tasks (can't trigger a software template)POST /v2/tasks
endpoint and try launching a software template via the UI (catalog entity about page, and Create page should both have their buttons disabled)scaffolder.task.cancel
: prevents cancellation of scaffolder tasksPOST /v2/tasks/:taskId/cancel
endpoint and try cancelling a running task in the UI (cancel button should be disabled)