vertexauth

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package vertexauth prepares GitHub Actions Workload Identity Federation credentials for a single Vertex inference run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareGitHubWIF

func PrepareGitHubWIF(ctx context.Context, cfg Config) (map[string]string, func(), error)

PrepareGitHubWIF creates and validates direct GitHub-to-Google WIF credentials. The returned cleanup function is safe to call more than once.

Types

type Config

type Config struct {
	ProjectID                string
	WorkloadIdentityProvider string
	OIDCRequestURL           string
	OIDCRequestToken         string
	TempDir                  string
	// OnSubjectToken, when set, receives the fetched GitHub OIDC token so
	// the caller can mask it in its log before the token is used.
	OnSubjectToken func(token string)
}

Config contains the trusted runner inputs needed to prepare credentials.

Jump to

Keyboard shortcuts

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