-
Notifications
You must be signed in to change notification settings - Fork 399
feat: [UIE-9393] - IAM Parent/Child: delegate permissions for child account #13033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aaleksee-akamai
merged 14 commits into
linode:develop
from
aaleksee-akamai:UIE-UIE-9393-iam-delegate-permissions
Nov 7, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
60c7ce4
feat: [UIE-9393] - IAM Parent/Child: delegate permissions for child aβ¦
aaleksee-akamai ebb29f5
changesets
aaleksee-akamai c56e0d5
remove the unrestricted check for query
aaleksee-akamai b5e8ffc
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
aaleksee-akamai 7593682
fix conflict
aaleksee-akamai 2645f7f
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
aaleksee-akamai 9ab5127
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
aaleksee-akamai eb58d1c
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
aaleksee-akamai 372ff89
e2e gating
abailly-akamai 662326f
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
abailly-akamai eacb72b
lint fix
abailly-akamai 5cc9cbd
better approach to fixing e2e
abailly-akamai 0ac08ce
Mock IAM to be disabled in Account Switching test
jdamore-linode 29dfa57
Merge branch 'develop' into UIE-UIE-9393-iam-delegate-permissions
aaleksee-akamai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/api-v4": Added | ||
| --- | ||
|
|
||
| IAM Parent/Child: delegate permissions ([#13033](https://github.com/linode/manager/pull/13033)) |
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@linode/manager": Added | ||
| --- | ||
|
|
||
| IAM Parent/Child: delegate permissions for child account ([#13033](https://github.com/linode/manager/pull/13033)) |
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| import { makeErrorResponse } from 'support/util/errors'; | ||
| import { apiMatcher } from 'support/util/intercepts'; | ||
| import { makeResponse } from 'support/util/response'; | ||
|
|
||
| import type { PermissionType } from '@linode/api-v4'; | ||
|
|
||
| export const mockGetUserAccountPermissions = ( | ||
| userAccountPermissions: PermissionType[] | ||
| ): Cypress.Chainable<null> => { | ||
| return cy.intercept( | ||
| 'GET', | ||
| apiMatcher('iam/users/*/permissions/account'), | ||
| makeResponse(userAccountPermissions) | ||
| ); | ||
| }; | ||
|
|
||
| export const mockGetUserAccountPermissionsError = ( | ||
| errorMessage: string = 'An unknown error occurred.', | ||
| statusCode: number = 500 | ||
| ): Cypress.Chainable<null> => { | ||
| return cy.intercept( | ||
| 'GET', | ||
| apiMatcher('iam/users/*/permissions/account'), | ||
| makeErrorResponse(errorMessage, statusCode) | ||
| ); | ||
| }; | ||
|
|
||
| export const mockGetRolePermissionsError = ( | ||
| errorMessage: string = 'An unknown error occurred.', | ||
| statusCode: number = 500 | ||
| ): Cypress.Chainable<null> => { | ||
| return cy.intercept( | ||
| 'GET', | ||
| apiMatcher('iam/role-permissions'), | ||
| makeErrorResponse(errorMessage, statusCode) | ||
| ); | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,5 +81,13 @@ export const accountGrantsToPermissions = ( | |
| update_oauth_client: true, | ||
| delete_oauth_client: true, | ||
| reset_oauth_client_secret: true, | ||
| // delegation permissions | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added all delegate permissions (the link to the APINext permissions are listed in the ticket) |
||
| list_delegate_users: true, | ||
| list_all_child_accounts: true, | ||
| update_delegate_users: true, | ||
| list_user_delegate_accounts: true, | ||
| update_default_delegate_access: true, | ||
| view_child_account: true, | ||
| create_child_account_token: true, | ||
| } as Record<AccountAdmin, boolean>; | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we still need to check if user has
is_account_adminANDupdate_default_delegate_access, but I guess we can find out once api would be ready