-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Adding the Azure sync module functions along with new cloud client functionality #50366
base: master
Are you sure you want to change the base?
Conversation
a817501
to
e88e148
Compare
e88e148
to
308bc2c
Compare
02bcb5e
to
0a4c1f4
Compare
0a4c1f4
to
672ae8d
Compare
🤖 Vercel preview here: https://docs-hx7av502y-goteleport.vercel.app/docs |
} | ||
|
||
// ListRoleDefinitions returns role definitions for a given scope | ||
func (c *RoleDefinitionsClient) ListRoleDefinitions(ctx context.Context, scope string) ([]*armauthorization.RoleDefinition, error) { |
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.
Is it worth to add a max items? Even if something configurable and default to pretty high value.
Given that we load everything into memory, I wonder if could ever reach a memory limit.
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.
Probably yes at some point in the future--some kind of corresponding paging functionality where results are buffered to the access graph. If we do that, we'd want to do it for all resources in AWS and Azure. Thoughts @tigrato?
This PR is a result of splitting #48843 into smaller PRs, and provides the Azure fetching functions and new cloud client functionality specifically for role assignments and definitions. This PR also incorporates the existing lib/msgraph client and removes the extraneous client code from the original PR.