revoke

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package revoke provides the implementation of automated actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, values *Values, services *Services) error

Execute is the entry point for the IAM revoker Cloud Function.

This automation will remove users from a project's policy if: - The users are believed to be external as reported from the finding provider. - The project where the external users were found are within the set configured resources. - The users do not match the list of allowed domains.

Types

type Services

type Services struct {
	Resource *services.Resource
	Logger   *services.Logger
}

Services contains the services needed for this function.

type Values

type Values struct {
	ProjectID       string
	ExternalMembers []string
	AllowDomains    []string
	DryRun          bool
}

Values contains the required values needed for this function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL