You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a template file that references consul or vault key paths for staging or production, but not development, I would still like this template file to be rendered for disconnected local development.
Currently, you'll get an unhandled exception when the relevant template helper is called. For example, I would like this to work fine in development:
development:
username: fakepassword: hardcodedproduction:
<% with secret "secret/data/database_credentials" do |s| %>username: <%= s.data.dig(:data, :username) %>password: <%= s.data.dig(:data, :password) %>
<% end %>
Perhaps this could be done with an env-specific consult.yml config option that says "allow render on fail", which would be falsey by default but that you could set to true for development, if you wanted.
The text was updated successfully, but these errors were encountered:
aharpervc
changed the title
Allow rendering when consul/vault can't be reached
Allow rendering templates that contain consul/vault template helpers even when consul/vault can't be reached
Oct 23, 2018
Given a template file that references consul or vault key paths for staging or production, but not development, I would still like this template file to be rendered for disconnected local development.
Currently, you'll get an unhandled exception when the relevant template helper is called. For example, I would like this to work fine in development:
consult/lib/consult/template_functions.rb
Lines 12 to 14 in 9354c09
Perhaps this could be done with an env-specific consult.yml config option that says "allow render on fail", which would be falsey by default but that you could set to true for development, if you wanted.
The text was updated successfully, but these errors were encountered: