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

Explicit handling of paths regarding path prefixes and user supplied keys #5

Open
ashleygould opened this issue Feb 8, 2021 · 0 comments

Comments

@ashleygould
Copy link
Contributor

The gem seems to assume that the user is managing declaration of ssm_root_path and key values in such a way that eliding these values always results in a valid ssm parameter key. Also, it is not very clear whether or not ssm_root_path is required (it's not).

I propose we treat SSM_ROOT_PATH and key query strings much like filenames in unix shell:

  • if a key starts with a forward slash, it is treadted as a fully qualified ssm object key
  • if a key does not start with a forward slash, and @ssm_root_path is defined, then @ssm_root_path is prefixed to it to form a fully qualified ssm object key
  • if a key does not start with a forward slash, and @ssm_root_path is NOT defined, then an exception is raised
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

1 participant