Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

go-spiffe (v2) Examples

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

Use cases

  • Mutually Authenticated TLS (mTLS): Establish mTLS connections between workloads using automatically rotated X.509 SVIDs obtained from the SPIFFE Workload API.

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

  • gRPC over mTLS: Send gRPC requests between workloads over mTLS using automatically rotated X.509 SVIDs obtained from the SPIFFE Workload API.

  • HTTP over mTLS: Send HTTP requests between workloads over mTLS using automatically rotated X.509 SVIDs obtained from the SPIFFE Workload API.

  • HTTP over TLS with JWT and X.509 SVIDs: Send HTTP requests between workload over a TLS + JWT authentication using automatically rotated X.509 SVIDs and JWT SVIDs from the SPIFFE Workload API.

  • HTTP over TLS with JWT SVIDs only: Authenticate client workloads to the server using JWT-SVIDs sent over TLS-encrypted HTTP connections to handle environments in which a proxy or load balancer would prevent the transmission of X.509-SVIDs over mTLS.