Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
110 stars 71 forks source link

Find out what the ruleId for a rule in a policy should look like #10893

Closed ghost closed 1 week ago

ghost commented 10 months ago

Description

Right now, it is unclear how the ruleId should be set for a rule in a policy. Once it is confirmed how the id should be set, the code must be updated. Fille: frontend/packages/policy-editor/src/PolicyEditor.tsx. At the moment, it is set like this ${resourceType}:${usageType` === 'app' ? 'example' : resourceId}:ruleid:${pr.ruleId}.

Additional Information

No response

Tasks

No response

Acceptance Criterias

No response

nkylstad commented 5 months ago

Rules should ideally be unique across all policies, so that they can be used by Altinn Authorization. Currently that is not the case Suggestion: altinn:urn:{{org}}:{{app}}:{{ruleId}} where ruleId is the id that the app developer gives to the rule (which is then something we should validate is unique within the policy file).