Skip to content

Verify the role is available in user's organization before creating activation key #679

@dgolovin

Description

@dgolovin

Role name can be changed without a notice, so extension should not assume hardcoded role it uses is going to be available forever. Extension should implement a workflow to check if the role is available for user's organization before using it through Red Hat Subscription Management -> organization API.

https://editor.swagger.io/?url=https://raw.githubusercontent.com/redhat-developer/podman-desktop-redhat-account-ext/refs/heads/main/src/rh-api/subscription-schema.json

There is include query parameter that should be set to system_purpose_attributes to get names for roles available for user's organization.

The role used to create activation keys should be saved in extension preferences. Extension should try to use role when creating activation keys and if not successful trigger role availability check through organization API and possibly request user for role to use.

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions