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

Google Secret Manager, Field Option #185

Merged
merged 7 commits into from
Jan 21, 2024
Merged

Conversation

stvnksslr
Copy link
Contributor

@stvnksslr stvnksslr commented Sep 5, 2023

Related Issues

#184

Description

Allow the fields key to be used to do K:V matches between google secret manager bodies that contain json as required by many kubernetes ecosystem tools.

Motivation and Context

This allows similar functionality to many of the other providers that are more key value based for secrets.

How Has This Been Tested?

I have tested this locally and will be adding additional tests to the provider suite.

Checklist

  • Tests
  • Documentation
  • Linting

@stvnksslr stvnksslr changed the title wip(initial attempt at the logic): Google Secret Manager, Field Option Sep 5, 2023
@kaplanelad
Copy link
Contributor

Hi @stvnksslr,

Thank you for your pull request! Your contribution is much appreciated. 😄

I noticed that the CI tests have failed for this pull request. Could you please take a look?

If you have any questions or need assistance with resolving the test failures, feel free to ask. We're here to help!

@stvnksslr
Copy link
Contributor Author

stvnksslr commented Sep 19, 2023

@kaplanelad hey yeah I ran into one small wrinkle in trying to test this specific functionality would appreciate some direction.

The test helper seems to always include the field attribute for all providers, previously for the Google secret manager provider ignored the field attribute as it had no way to parse K:V/json formatted secrets.

I'm not sure how to provide testing for the original functionality and the new functionality without creating a new test helper that allows field to be passed optionally. But that feels like a far more disruptive change than I was intending.

I am also open to a different approach on tracking this field if needed but this seemed to fit into the mold of the other providers fairly well.

@stvnksslr
Copy link
Contributor Author

Not super happy with the solution I came up with but I think it better illustrates what I was talking about.

@stvnksslr
Copy link
Contributor Author

@kaplanelad would you be able to approve the test suite to run when you are able and review the changes.

@kaplanelad kaplanelad merged commit 4121ef9 into tellerops:master Jan 21, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants