bloomberg / vault-auth-spire

vault-auth-spire is an authentication plugin for Hashicorp Vault which allows logging into Vault using a Spire provided SVID.
Apache License 2.0
41 stars 8 forks source link

Add Spire trustsource #14

Open pawalt opened 4 years ago

pawalt commented 4 years ago

This resolves #2

Describe your changes This PR adds support for using Spire servers as a trust source.

Testing performed Unit tests have been written in spiretrustsource_test.go

Additional context I moved the file trust source and this one to using afero to ease testing. I'm not particularly happy with how much code is repeated between tests, so I'm looking to refactor them with the suite package. EDIT: I refactored some code, and I think this is fine without using suite.

pawalt commented 4 years ago

I've added a second struct. Let me know what you think.