attestation

package
v1.12.10 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetECSTaskId added in v1.10.40

func GetECSTaskId() string

func New

func New(domain, service, region, account, ec2Document, ec2Signature string, useRegionalSTS, omitDomain bool) (string, error)

New creates a new AttestationData with values fed to it and from the result of STS Assume Role. This requires an identity document along with its signature. The aws account and region will be extracted from the identity document.

Types

type AttestationData

type AttestationData struct {
	Role       string `json:"role,omitempty"`       //the IAM role. This must match the athenz service identity
	CommonName string `json:"commonName,omitempty"` //The common name for CSR. Different from Role if we're using service name only
	Access     string `json:"access,omitempty"`     //the temp creds access key id
	Secret     string `json:"secret,omitempty"`     //the temp creds secret key
	Token      string `json:"token,omitempty"`      //the temp creds session token
	Document   string `json:"document,omitempty"`   //for EC2 instance document
	Signature  string `json:"signature,omitempty"`  //for EC2 instance document pkcs7 signature
}

Jump to

Keyboard shortcuts

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