Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

feat(aws-ssm): Support parameters by path #603

Merged

Conversation

rjmsilveira
Copy link
Contributor

This MR is a replacement of my original approach (#238 )

I have refactored the code to do have as little changes as possible but still supporting the possibility of fetching secrets from a path instead of a key.

Also added support to fetch paths recursively if needed but the default is 0.

@rjmsilveira rjmsilveira changed the title feature/support full ssm paths Feature: Support parameters by path Jan 19, 2021
Copy link

@martina-if martina-if left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know the code conventions in this repo so I only skimmed through this PR and added some small suggestions.

Thanks for re-working the PR! I am looking forward to seeing this shipped :) It's going to simplify our setup a lot.

examples/ssm-example.yaml Outdated Show resolved Hide resolved
examples/ssm-example.yaml Outdated Show resolved Hide resolved
lib/backends/kv-backend.js Outdated Show resolved Hide resolved
Copy link
Member

@Flydiverny Flydiverny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this! I like this new approach better of reusing the same backend type and data structure.

Would love to see some tests covering this as well!

README.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
lib/backends/system-manager-backend.js Outdated Show resolved Hide resolved
lib/backends/system-manager-backend.js Outdated Show resolved Hide resolved
lib/backends/system-manager-backend.js Outdated Show resolved Hide resolved
lib/backends/kv-backend.js Show resolved Hide resolved
lib/backends/kv-backend.js Outdated Show resolved Hide resolved
lib/backends/kv-backend.js Outdated Show resolved Hide resolved
lib/backends/kv-backend.js Outdated Show resolved Hide resolved
lib/backends/kv-backend.js Outdated Show resolved Hide resolved
@Flydiverny Flydiverny changed the title Feature: Support parameters by path feat(aws-ssm): Support parameters by path Jan 31, 2021
@rjmsilveira rjmsilveira force-pushed the feature/support-full-ssm-paths branch 2 times, most recently from d1a17a9 to 7695bca Compare January 31, 2021 12:43
Updating Readme
Improving code with users suggestions
Lint fixes
Adding tests for ssm path feature
@rjmsilveira rjmsilveira force-pushed the feature/support-full-ssm-paths branch from 7695bca to 49abbd3 Compare January 31, 2021 12:44
@rjmsilveira
Copy link
Contributor Author

rjmsilveira commented Jan 31, 2021

@Flydiverny created one test for this new feature. Let me know if it's enough :)

@Flydiverny Flydiverny self-assigned this Feb 1, 2021
@Flydiverny Flydiverny merged commit 74d4459 into external-secrets:master Feb 5, 2021
@rjmsilveira rjmsilveira deleted the feature/support-full-ssm-paths branch February 6, 2021 18:17
@komljen
Copy link

komljen commented Nov 17, 2021

@rjmsilveira I'm trying to get us off our fork where we use data by path, but seems like I cannot use this approach as I get the following error spec.data.name: Required value, spec.data.key: Required value.

Why would those be required when the only path is used?

@komljen
Copy link

komljen commented Nov 17, 2021

@rjmsilveira I'm trying to get us off our fork where we use data by path, but seems like I cannot use this approach as I get the following error spec.data.name: Required value, spec.data.key: Required value.

Why would those be required when the only path is used?

I forgot to update CRD, all good now!

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

Successfully merging this pull request may close these issues.

4 participants