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

Add secretsManager middleware #227

Merged
merged 7 commits into from
Aug 25, 2018
Merged

Add secretsManager middleware #227

merged 7 commits into from
Aug 25, 2018

Conversation

theburningmonk
Copy link
Contributor

@theburningmonk theburningmonk commented Aug 25, 2018

Added middleware for secretsManager with corresponding tests and README changes.

Addresses #151

theburningmonk and others added 5 commits August 21, 2018 01:33
…e set in the context

- changed places where mockReset is used where it  should be mockClear (since we just want to reset the invocation count)
- cache the SSM response, and apply the cached params even when skip calling SSM
@codecov
Copy link

codecov bot commented Aug 25, 2018

Codecov Report

Merging #227 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #227   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          18     19    +1     
  Lines         455    492   +37     
  Branches       93    100    +7     
=====================================
+ Hits          455    492   +37
Impacted Files Coverage Δ
src/middlewares/index.js 100% <ø> (ø) ⬆️
src/middlewares/secretsManager.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33ec29...c093fe2. Read the comment docs.

Copy link
Member

@lmammino lmammino left a comment

Choose a reason for hiding this comment

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

Seems perfect! Great job :)

Let me version bump and get this one merged and released.

Would you like to submit a PR also to have this as part of version 1.x?

@lmammino lmammino merged commit de51bec into middyjs:master Aug 25, 2018
@theburningmonk
Copy link
Contributor Author

Thanks!

Yes, would put a PR for the 1.0.0 branch as well (know the drill by now :-P)


### Sample Usage

Simplest usage, exports parameters as environment variables.
Copy link
Contributor

Choose a reason for hiding this comment

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

exports parameters as environment variables.

Copy-paste from SSM middleware?) Looks like no option to export as environment variable in this middleware, only context object

Copy link
Contributor

@vladholubiev vladholubiev left a comment

Choose a reason for hiding this comment

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

Excellent addition!

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

Successfully merging this pull request may close these issues.

3 participants