-
Notifications
You must be signed in to change notification settings - Fork 164
Support storing the kms encrypted value in a file #128
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
Conversation
stacker/config/translators/kms.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about making this more generic so that it's used by every translator?
Also is it worth using urlparse instead of the raw split you do here? You could parse it with urlparse, and if there is no scheme, then just use the raw value? Maybe it's not worth it at this point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i refactored this to a function that could potentially be used by other translators. i'd wait on making it more complex until we need to
|
not sure if we should cache the result of |
stacker/config/translators/kms.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these helper functions seem useful/generic enough that I think they should probably be in the base translators module - I could see other translators, in the future, wanting to use them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense
|
While we don't have full docs, this feature is useful enough that I think it might be worth mentioning the use of file:// as well as just putting a string in the field in the section of the README.rst that discusses translators. |
This will let other translators use them in the future.
1148026 to
066d028
Compare
|
👍 |
Support storing the kms encrypted value in a file
No description provided.