puppetlabs / vault-plugin-secrets-oauthapp

OAuth 2.0 secrets plugin for HashiCorp Vault supporting a variety of grant types
Apache License 2.0
94 stars 10 forks source link

Unable to register - not a supported plugin type? #89

Closed ken-tune closed 5 months ago

ken-tune commented 5 months ago

Hi

I'm finding that when I do

vault plugin register -sha256 $SHA /etc/vault.d/plugins/vault-plugin-secrets-oauthapp

I see

"/etc/vault.d/plugins/vault-plugin-secrets-oauthapp" is not a supported plugin type

Any suggestions as to what I'm doing wrong here? vault-plugin-secrets-oauthapp is created via 'make build' and then copying the binary in the project bin directory. I'm using vault 1.16. Thanks.

ken-tune commented 5 months ago

I had a malformed $SHA, having done

SHA=$(sha256sum /etc/vault.d/plugins/vault-plugin-secrets-oauthapp)

62b02c14a8289baffa2ae917eb2a0a8991b6ad83e7a72d1b21e43ce5a97aeb4d /etc/vault.d/plugins/vault-plugin-secrets-oauthapp

rather than just the SHA and shouldn't have used the full path