Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Proposal: Access to Secret Metadata #7

Open
jambonrose opened this issue May 8, 2020 · 6 comments
Open

Feature Proposal: Access to Secret Metadata #7

jambonrose opened this issue May 8, 2020 · 6 comments

Comments

@jambonrose
Copy link

Thanks for the library! We've enjoyed using it at work.

We'd like to continue using it, but we need to access metadata for our secrets (specifically the version of the secret). Would you be open to a pull request that modified Client.GetSecret() such that the vaultSecretKV2.Metadata is included on Secret struct returned by Client.GetSecret() ?

Thanks for taking the time to consider the feature.

@mch1307
Copy link
Owner

mch1307 commented May 13, 2020

Sorry for delayed answer. It could definitively be an interesting feature.
Long time without actively working on the lib, so I will need to get back to it ;)

@mch1307
Copy link
Owner

mch1307 commented May 15, 2020

@jambonrose I would be happy to review/merge your PR(s)

@jambonrose
Copy link
Author

Great! Thanks for considering the feature, and no worries about the delay.

We've made a few changes to the library on our end:

  1. allow tests to be run locally on Mac and Windows (in addition to the original Linux setup; 🐛Make integration tests multiplatform TrueTickets/vaultlib#1)
  2. Run TravisCI tests only on the master branch and PRs (👷‍♀️ Validate Test Setup TrueTickets/vaultlib#2; requires changes in the TravisCI Settings panel as well)
  3. update code to run tests in Go 1.11, 1.12, 1.13, and 1.14 (🐛 Update handling of flags for Go 1.13+ TrueTickets/vaultlib#3; this required some test code modifications due to https://golang.org/doc/go1.13#testing)
  4. create a Metadata struct which is provided with KV v2 secrets (✨Return Secret Metadata with Secret TrueTickets/vaultlib#5)

My proposal was originally just for item 4. Would you be interested in some of this other work on our end, and if so, would you like this work in individual PRs or all-together?

Finally, we have not modified any code around KV v1. Given the changes in TrueTickets#5, would you expect similar changes to KV v1?

We're going to be testing these changes later today. Once I confirm that all of this works as expected, I will open a PR (or several) for you to consider.

@mch1307
Copy link
Owner

mch1307 commented May 15, 2020

I think the first 3 can be in one PR and the 4th in another one, if that's fine for you.

@mch1307
Copy link
Owner

mch1307 commented Jun 23, 2020

@jambonrose Any update on this? Thanks

@jambonrose
Copy link
Author

We have not forgotten about this! We'll be swinging back around on this front ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants