Documentation
¶
Index ¶
- Variables
- func GetDeleteActionFromInvalidActionOrNotActionError(invalidActionErrMesg string) ([]string, error)
- func GetInvalidActionFromInvalidActionOrNotActionError(invalidActionErrMesg string) ([]string, error)
- func GetScopePermissionsFromAuthError(authErrMesg string) (map[string][]string, error)
- type MPFConfig
- type MPFResult
- type PermissionErrorDetails
- type ResourceGroup
- type Role
- type ServicePrincipal
Constants ¶
This section is empty.
Variables ¶
var ErrAuthorizationRequestDenied = errors.New("Authorization_RequestDenied: insufficient Azure AD / Microsoft Graph API privileges. " +
"These permissions require admin consent or Global Administrator role and cannot be automatically discovered by MPF. " +
"See https://learn.microsoft.com/en-us/graph/permissions-reference for Microsoft Graph permissions " +
"and https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/guides/service_principal_configuration for Terraform AzureAD provider setup")
ErrAuthorizationRequestDenied is returned when an Authorization_RequestDenied error is detected from Microsoft Graph / Azure AD and no other parseable Azure RBAC authorization errors can be extracted from the error message. Callers can use errors.Is to detect this case programmatically.
Functions ¶
func GetInvalidActionFromInvalidActionOrNotActionError ¶ added in v0.15.0
Types ¶
type MPFConfig ¶
type MPFConfig struct {
ResourceGroup ResourceGroup
SubscriptionID string
TenantID string
SP ServicePrincipal
Role Role
}
type MPFResult ¶
type MPFResult struct {
// The map from which the minimum permissions will be calculated
RequiredPermissions map[string][]string
// IterationCount is the number of iterations MPF took to discover all permissions.
// A value of 0 means all required permissions were provided upfront via initialPermissions.
IterationCount int
}
func GetMPFResult ¶
type PermissionErrorDetails ¶ added in v0.13.0
type ResourceGroup ¶
type ServicePrincipal ¶
Source Files
¶
- InvalidActionOrNotActionErrorParser.go
- LackOfPermissionsErrorParser.go
- actionCompletion.go
- appendPermissionsForSpecialCases.go
- authorizationErrorParser.go
- authorizationPermissionMismatchErrorParser.go
- linkedAccessCheckFailedErrorParser.go
- linkedAuthorizationFailedErrorParser.go
- mpfConfig.go
- mpfResultFilterSort.go