attestation

package
v1.10.29 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttestationData

type AttestationData struct {
	Role      string `json:"role,omitempty"`      //the IAM role. This must match the athenz service identity
	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
	TaskId    string `json:"taskid,omitempty"`    //for ECS Task Id
}

func New

func New(domain, service string, document, signature []byte, useRegionalSTS bool, sysLogger io.Writer) (*AttestationData, error)

New creates a new AttestationData with values fed to it and from the result of STS Assume Role

Jump to

Keyboard shortcuts

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