appcredentials

package
v0.0.0-...-d19fc40 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package appcredentials provides utilities for the application credentials used to access GCP services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustExistOrUnsetEnv

func MustExistOrUnsetEnv()

MustExistOrUnsetEnv checks if the credential file pointed by the `GOOGLE_APPLICATION_CREDENTIALS` env var exists. If not, it unsets the env var so that application can continue to attempt using fallback mechanisms for authentication. We use this trick to support both secret and workload identity. See https://github.com/google/knative-gcp/issues/792. - When using secret, credential file is mounted under `GOOGLE_APPLICATION_CREDENTIALS` via secret volume mount. - When using workload identity, credential file doesn't exist as the volume mount is optional.

Types

This section is empty.

Jump to

Keyboard shortcuts

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