aws

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAuthRequest

func BuildAuthRequest(stsRequest, tagsRequest *awstypes.PresignedRequest) *models.ServiceRunnerAuthAWSRequest

BuildAuthRequest creates a RunnerAuthAWSRequest from presigned STS and EC2 tags requests.

func BuildIIDAuthRequest added in v0.19.894

func BuildIIDAuthRequest(iid *IIDResult, runnerID string) *models.ServiceRunnerAuthAWSIIDRequest

BuildIIDAuthRequest creates a RunnerAuthAWSIIDRequest from an IID result and a runner ID.

func GetPresignedInstanceTagsRequest

func GetPresignedInstanceTagsRequest(ctx context.Context) (*awstypes.PresignedRequest, error)

GetPresignedInstanceTagsRequest creates a presigned EC2 DescribeTags request for the current instance. This allows another service to fetch instance tags to verify the runner's identity.

func GetPresignedSTSRequest

func GetPresignedSTSRequest(ctx context.Context) (*awstypes.PresignedRequest, error)

GetPresignedSTSRequest creates a presigned STS GetCallerIdentity request. The presigned request can be sent to another service which will make the actual STS call to validate the caller's identity.

Types

type IIDResult added in v0.19.894

type IIDResult struct {
	Document  string
	Signature string
}

IIDResult holds the instance identity document and its RSA-2048 signature.

func GetInstanceIdentityDocument added in v0.19.894

func GetInstanceIdentityDocument(ctx context.Context) (*IIDResult, error)

GetInstanceIdentityDocument fetches the IID and RSA-2048 signature from IMDSv2.

Jump to

Keyboard shortcuts

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