vault-auth-spire
vault-auth-spire copied to clipboard
Add Spire trustsource
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.
I've added a second struct. Let me know what you think.