Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSecretSourceGCPInvalidLocation = fmt.Errorf(
"invalid GCP Secret Manager secret location format",
)
)
Functions ¶
func WithGCP ¶
func WithGCP(client *secretmanager.Client) spelunk.SpelunkerOption
WithGCP enables the SecretSourceGCP.
Types ¶
type SecretSourceGCP ¶
type SecretSourceGCP struct {
// contains filtered or unexported fields
}
SecretSourceGCP digs up secrets from Google Cloud Secret Manager.
The URI scheme for this source is "gcp".
gcp://projects/<PROJECT_ID_OR_NUM>/secrets/<SECRET_NAME> gcp://projects/<PROJECT_ID_OR_NUM>/secrets/<SECRET_NAME>/versions/<VERSION>
If the version is omitted, a "/versions/latest" suffix is appended.
Expected format of `<PROJECT_ID_OR_NUM>` is documented at: https://google.aip.dev/cloud/2510. Expected format of `<SECRET_NAME>` is documented at: https://cloud.google.com/security/products/secret-manager.
This types.SecretSource is a plug-in to spelunker.Spelunker and must be enabled explicitly.
func (*SecretSourceGCP) DigUp ¶
func (s *SecretSourceGCP) DigUp(ctx context.Context, coord types.SecretCoord) (string, error)
func (*SecretSourceGCP) Type ¶
func (s *SecretSourceGCP) Type() string
Click to show internal directories.
Click to hide internal directories.