Skip to content

Experimental low-level CLI utility for issuing SPIRE RPCs from scripts

License

Notifications You must be signed in to change notification settings

angabini/spire-pipe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spire-pipe

Experimental low-level CLI utility for issuing SPIRE RPCs from scripts

I hacked together this tool some time ago while writing some automated testing. It is still quite experimental. You are welcome to use it however you please.

It is most useful when paired with a tool like jq since it requires JSON input and output (which is martialed to/from protobufs for issuing gRPC calls).

Warning: there is limited support for streaming RPCS.

Installation

go install github.com/azdagron/spire-pipe

Examples

Obtain a list of registration entries (via the SPIRE Server API Unix domain socket):

$ jq -n '{}' | spire-pipe rpc entry list-entries | jq .

Obtain a list of registration entries (via the SPIRE Server TCP port using an admin SVID obtained over the Workload API):

$ jq -n '{}' | spire-pipe rpc entry list-entries --use-workload-api | jq .

Obtain a list of registration entries (via the SPIRE Server TCP port using an admin SVID minted manually outside of the normal node/workload registration process):

$ jq -n '{}' | spire-pipe rpc entry list-entries --tcp-addr <SERVER:PORT> --svid-path /path/to/svid

About

Experimental low-level CLI utility for issuing SPIRE RPCs from scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%