Documentation
¶
Overview ¶
Package gcpaccess asks Google Cloud which permissions the caller's credentials hold on a project.
One question, asked by two callers: `draugr doctor`, to say whether a declared account can be read at all, and the prowler scanner, to know before Prowler runs which services it will be denied. A denied read is the one failure Prowler does not report: depending on the check it passes, fails, or disappears, so the answer has to come from somewhere other than its output.
The credentials are Application Default Credentials, the ones Prowler and every Google client library read: GOOGLE_APPLICATION_CREDENTIALS, `gcloud auth application-default login`, or the metadata server of the machine the scan runs on. Asking with the same credentials is what makes the answer about the scan rather than about this process.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNoCredentials = errors.New("no Google Cloud credentials found: set GOOGLE_APPLICATION_CREDENTIALS " +
"to a key or a workload identity configuration, or run `gcloud auth application-default login`")
ErrNoCredentials is a machine with no Application Default Credentials to ask with.
Functions ¶
This section is empty.
Types ¶
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
Tester asks which permissions the credentials hold.
func NewWith ¶
NewWith returns a Tester asking endpoint through client, for a caller that brings its own.