* layout * user * config * header * badges, badge_achievements, layout * broadcasts * chat channels * comments.. not much really * Events * growth * listings * mod actions * mods * orgs * pages * permissions * podcasts * reactions * profile fields * reports * response templates * tools * users * Secrets * webhooks * welcome threads * . * internal * css fix * . * main element elsewhere * scope * bring back some of the old styling * . * . * . * notice * Revert schema.db * add alert * little fixes * profile fields * Update schema.rb * closing span * another span * Fixed broken admin specs. Co-authored-by: Nick Taylor <nick@dev.to>
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
|
|
<% if !@vault_enabled %>
|
|
<div class="crayons-notice crayons-notice--info mb-6" role="alert">
|
|
<p>
|
|
Vault is not currently setup for your application. This means your secrets are being stored as ENV variables and cannot be updated here. To update them you will need to update the appropriate files in your environment.
|
|
</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<table class="crayons-table" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Secret Name</th>
|
|
<th scope="col">Secret Value</th>
|
|
<th scope="col">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="crayons-card">
|
|
<% @secrets.each do |key, partial_value| %>
|
|
<tr>
|
|
<%= form_with(url: "/admin/secrets", method: "PUT", local: true) do %>
|
|
<td><%= label_tag key, key %></td>
|
|
<td><%= text_field_tag key, partial_value %></td>
|
|
<td><%= submit_tag("Update", data: { confirm: "My username is @#{current_user.username} and I want to update this Vault Secret." }, disabled: !@vault_enabled) %></td>
|
|
<% end %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|