Documentation ¶
Index ¶
- Constants
- Variables
- func FetchMSIToken(ctx context.Context, cl HTTPClient, resource string) (string, error)
- func MakeAgentID(td spiffeid.TrustDomain, agentPathTemplate *agentpathtemplate.Template, ...) (spiffeid.ID, error)
- type ComputeMetadata
- type HTTPClient
- type HTTPClientFunc
- type InstanceMetadata
- type MSIAttestationData
- type MSITokenClaims
Constants ¶
View Source
const ( // DefaultMSIResourceID is the default resource ID to use as the intended // audience of the MSI token. The current value is the service ID for the // Resource Manager API. DefaultMSIResourceID = "https://management.azure.com/" PluginName = "azure_msi" )
Variables ¶
View Source
var DefaultAgentPathTemplate = agentpathtemplate.MustParse("/{{ .PluginName }}/{{ .TenantID }}/{{ .PrincipalID }}")
DefaultAgentPathTemplate is the default text/template
Functions ¶
func FetchMSIToken ¶
func MakeAgentID ¶ added in v1.5.0
func MakeAgentID(td spiffeid.TrustDomain, agentPathTemplate *agentpathtemplate.Template, claims *MSITokenClaims) (spiffeid.ID, error)
Types ¶
type ComputeMetadata ¶
type HTTPClientFunc ¶
type InstanceMetadata ¶
type InstanceMetadata struct {
Compute ComputeMetadata `json:"compute"`
}
func FetchInstanceMetadata ¶
func FetchInstanceMetadata(ctx context.Context, cl HTTPClient) (*InstanceMetadata, error)
type MSIAttestationData ¶
type MSIAttestationData struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.