VaultSharp icon indicating copy to clipboard operation
VaultSharp copied to clipboard

Feature request: Entities and Groups

Open ajhall opened this issue 3 years ago • 5 comments

Describe the feature request or question I'd like to use the Entity, Entity Alias, Group, Group Alias, and Lookup features of the Identity Secrets Engine. Currently, VaultSharp only supports the Identity Tokens features of this engine.

Link to the Vault API Docs that support this feature

  • https://www.vaultproject.io/api-docs/secret/identity/entity
  • https://www.vaultproject.io/api-docs/secret/identity/entity-alias
  • https://www.vaultproject.io/api-docs/secret/identity/group
  • https://www.vaultproject.io/api-docs/secret/identity/group-alias
  • https://www.vaultproject.io/api-docs/secret/identity/lookup

ajhall avatar Dec 03 '21 21:12 ajhall

Hey @ajhall,

I can help you out with this feature request. Implementing on all the APIs you've requested might take a few days.

If you can prioritize the ones, you need the most, we can implement it first and release a small release so that you're not blocked.

konidev20 avatar Dec 10 '21 16:12 konidev20

Oh, thanks! I also started to investigate adding these features to VaultSharp, but the app I was implementing was so simple that I ended up rewriting it in Go and using HashiCorp's official Go API package. In the end, I only really needed LIST identity/entity/id, POST identity/entity/name, and POST identity/entity-alias. I would have preferred writing in C#, but I got the job done either way. 😁

Regardless, I think this is still a gap in this library that might be useful in the future.

ajhall avatar Dec 11 '21 03:12 ajhall

thanks @ajhall for raising this. thanks @konidev20 for implementing this. we will close this out in new year

rajanadar avatar Dec 26 '21 12:12 rajanadar

Just to add a +1 to this, I need the following endpoints: POST identity/group, POST identity/group-alias

RyanGaudion avatar Jan 10 '22 12:01 RyanGaudion

Just to add a +1 to this, I need the following endpoints: POST identity/group, POST identity/group-alias

Sure let me add these over the weekend to the same PR I've linked here.

konidev20 avatar Jan 10 '22 15:01 konidev20

Available here: https://www.nuget.org/packages/VaultSharp/1.7.2

rajanadar avatar Dec 06 '22 12:12 rajanadar