examples/

directory
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0

README

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.

Directories

Path Synopsis
spiffe-grpc
spiffe-http
spiffe-jwt
spiffe-jwt-using-proxy
spiffe-tls

Jump to

Keyboard shortcuts

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