2018-10-10 04:44:08 +00:00
|
|
|
{{#if (and isV2 modelForData.destroyed)}}
|
2018-11-03 16:26:48 +00:00
|
|
|
<EmptyState
|
2018-11-03 17:21:49 +00:00
|
|
|
@title="Version {{modelForData.version}} of this secret has been permanently destroyed"
|
2018-11-14 20:58:33 +00:00
|
|
|
@message="A version that has been permanently deleted cannot be restored. You can see other versions of this secret in the History menu."
|
|
|
|
>
|
|
|
|
<DocLink @path="/docs/secrets/kv/kv-v2.html">
|
2019-03-29 23:40:12 +00:00
|
|
|
Learn more
|
2018-11-03 17:21:49 +00:00
|
|
|
</DocLink>
|
|
|
|
</EmptyState>
|
2018-10-10 04:44:08 +00:00
|
|
|
{{else if (and isV2 modelForData.deleted)}}
|
2018-11-03 16:26:48 +00:00
|
|
|
<EmptyState
|
2018-11-03 17:21:49 +00:00
|
|
|
@title="Version {{modelForData.version}} of this secret has been deleted"
|
|
|
|
@message="A version that has been deleted but can be undeleted using the Version {{modelForData.version}} menu above.
|
2018-11-14 20:58:33 +00:00
|
|
|
You can also see other versions of this secret in the History menu."
|
|
|
|
>
|
|
|
|
<DocLink @path="/docs/secrets/kv/kv-v2.html">
|
2019-03-29 23:40:12 +00:00
|
|
|
Learn more
|
2018-11-03 17:21:49 +00:00
|
|
|
</DocLink>
|
|
|
|
</EmptyState>
|
2019-04-16 20:27:23 +00:00
|
|
|
{{else if isWriteWithoutRead}}
|
|
|
|
<EmptyState
|
|
|
|
data-test-write-without-read-empty-message
|
|
|
|
@title="You do not have permission to read this secret."
|
|
|
|
@message={{if isV2
|
|
|
|
"Your policies permit you to write a new version of this secret, but do not allow you to read its current contents."
|
|
|
|
"Your policies permit you to overwrite this secret, but do not allow you to read it."
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
</EmptyState>
|
2018-04-03 14:16:57 +00:00
|
|
|
{{else}}
|
2018-10-10 04:44:08 +00:00
|
|
|
{{#if showAdvancedMode}}
|
|
|
|
{{json-editor
|
|
|
|
value=modelForData.dataAsJSONString
|
|
|
|
options=(hash
|
|
|
|
readOnly=true
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
{{else}}
|
|
|
|
<div class="table info-table-row-header">
|
|
|
|
<div class="info-table-row thead">
|
|
|
|
<div class="th column is-one-quarter">
|
|
|
|
Key
|
|
|
|
</div>
|
|
|
|
<div class="th column">
|
|
|
|
Value
|
|
|
|
</div>
|
2018-04-03 14:16:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-22 19:12:33 +00:00
|
|
|
{{#each modelForData.secretKeyAndValue as |secret|}}
|
|
|
|
{{#info-table-row label=secret.key value=secret.value alwaysRender=true}}
|
|
|
|
{{masked-input value=secret.value displayOnly=true allowCopy=true}}
|
2018-10-10 04:44:08 +00:00
|
|
|
{{/info-table-row}}
|
2019-11-22 19:12:33 +00:00
|
|
|
{{/each}}
|
2018-10-10 04:44:08 +00:00
|
|
|
{{/if}}
|
2018-04-03 14:16:57 +00:00
|
|
|
{{/if}}
|