Technical analysis of migration of link services to resource register
Opened this issue · 0 comments
Description
This analysis describes what is needed to allow for self-service of migration of link services from Altinn 2
GUI for creating a new resource based on existing service in Altinn 2
Migrate page to see status of resource and trigger migration of delegations
Step 1. Creation of Resources in Altinn Studio based on metadata from Altinn 2
By using the AvailableService API, we can get the name and title of the service together with the external service code and edition Code.
This can be used to create the initial resource information.
- API for creating Policy Altinn/altinn-studio#10667
- API for getting metadata Altinn/altinn-studio#10667
Step 2. Deploying Resource to Resource Registry
The next step is to deploy the APi
- Functionality to publish in UI Altinn/altinn-studio#10670
- API in Altinn Studio to publish resources Altinn/altinn-studio#10337
- API in Resource Registry to publish
Step 3. Verifying Resources and integration
The service owner must validate integration with the new PDP endpoint in this step.
- PDP endpoint for external usage Altinn/altinn-authorization#448
- Optional? Rights API for service owner usage
Step 5 Disabling service in Altinn 3
Before starting the migration of delegations, the service owner should prevent changes in the delegated rights
To do this, the service owner needs to disable the service
- API to disable delegation of service #215
- Functionality in Altinn Studio to disable service Altinn/altinn-studio#10670
Step 6 Migration delegation
The next step is to migrate the delegations.
The service owner can set a time
- Create ExportDelegationBatch Altinn/altinn-access-management#579
- API to trigger batch job #214
- API to verify status of batch job #214
Step 7 Removing Altinn 3 delegation data
The last step is to remove all delegations from Altinn 2
Depending tasks as part of single rights delegation
- Single rights delegation in Altinn 3
- Update rights overview in Altinn 2 to includes single rights from Altinn 3