Documentation ¶
Index ¶
- func GetPermissionsByServiceAccounts(account internal.GCPAccount) map[string][]string
- func GetServiceAccountKeys(account internal.GCPAccount) []*adminpb.ServiceAccountKey
- func RunChecks(wa *sync.WaitGroup, account internal.GCPAccount, c *commons.Config, ...)
- func SACannotEscalatePrivileges(resource commons.Resource) bool
- func SAKeysNotOlderThan90Days(resource commons.Resource) bool
- type PermissionsBySA
- type SAKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPermissionsByServiceAccounts ¶
func GetPermissionsByServiceAccounts(account internal.GCPAccount) map[string][]string
Get a map of service account -> permission(s) for the current project
func GetServiceAccountKeys ¶
func GetServiceAccountKeys(account internal.GCPAccount) []*adminpb.ServiceAccountKey
Produce a list of service account keys existing in the GCP project
Types ¶
type PermissionsBySA ¶
func (*PermissionsBySA) GetID ¶
func (p *PermissionsBySA) GetID() string
Click to show internal directories.
Click to hide internal directories.