Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Deprecation Warning

NOTE: The code samples in this directory were written for the v1 version of the go-spiffe library, which will be deprecated soon.

We recommend that you write new code using the v2 go-spiffe module. See go-spiffe (v2) Examples for code samples written for the v2 go-spiffe module. See go-spiffe (v2) for general information about the v2 go-spiffe module.

Examples

This section contains a set of standalone examples that demonstrate different use cases for the v1 go-spiffe library.

Use cases

  • SVIDs for mTLS connections: Get automatically rotated X.509 SVIDs for your workloads and use it to establish mTLS connections between them.

  • SVIDs stream: Get automatically rotated X.509 SVIDs for your workload.

  • gRPC client: Creates a gRPC SPIFFE client and access the different methods of the Workload API.