Open Hashfyre opened 7 years ago
create the base credstash object (which does a getall() on the dynamodb) only when jinja2 encounters the first {{lookup()}}.
credstash
{{lookup()}}
Usage: For templating nginx.conf where no {{lookup()}} is present, alohomora would never do a credstash getall thus enhancing templating performance.
This follows the at most once paradigm for getting secrets from credstash.
This will also help us resolve: https://github.com/razorpay/raven/pull/88#discussion_r145928505
Sounds like a good idea.
This is resolved and live.
create the base
credstash
object (which does a getall() on the dynamodb) only when jinja2 encounters the first{{lookup()}}
.Usage: For templating nginx.conf where no
{{lookup()}}
is present, alohomora would never do a credstash getall thus enhancing templating performance.This follows the at most once paradigm for getting secrets from credstash.