-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
show.hbs
102 lines (102 loc) · 2.68 KB
/
show.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<PageHeader as |p|>
<p.top>
<KmipBreadcrumb @scope={{this.scope}} @role={{this.role}}/>
</p.top>
<p.levelLeft>
<h1 class="title is-3">
Credentials
</h1>
</p.levelLeft>
</PageHeader>
<Toolbar>
<ToolbarActions>
{{#if model.deletePath.canDelete}}
<ModelWrap as |m|>
<ConfirmAction
@buttonClasses="toolbar-link"
@onConfirmAction={{action
(perform
m.callMethod
"destroyRecord"
model
"Successfully revoked credentials"
"There was an error revoking credentials"
(transition-to "vault.cluster.secrets.backend.kmip.credentials.index" this.scope this.role)
)
}}
@confirmTitle="Revoke this?"
@confirmMessage="Any client using these credentials will no longer be able to."
@cancelButtonText="Cancel"
@confirmButtonText="Revoke"
>
Revoke credentials
</ConfirmAction>
</ModelWrap>
<div class="toolbar-separator" />
{{/if}}
<ToolbarLink
@params={{array "credentials.index" this.scope this.role}}
data-test-kmip-link-back-to-role
>
Back to role
</ToolbarLink>
<CopyButton
class="toolbar-link"
@clipboardText={{model.certificate}}
@success={{action (set-flash-message "Certificate Copied!")}}
data-test-copy-button
>
Copy certificate
<Chevron />
</CopyButton>
</ToolbarActions>
</Toolbar>
<div class="box is-shadowless is-fullwidth is-sideless">
<InfoTableRow @label="Serial number" @value={{model.id}}>
<MaskedInput
@value={{model.id}}
@displayOnly={{true}}
@allowCopy={{true}}
/>
</InfoTableRow>
<InfoTableRow
@label="Private key"
@value={{model.privateKey}}
>
<div class="is-block">
<AlertBanner
@type="warning"
@message="You will not be able to access the private key later, so please copy the information below."
data-test-warning
/>
<MaskedInput
@value={{model.privateKey}}
@name="Private key"
@allowCopy={{true}}
@displayOnly={{true}}
class="is-block"
/>
</div>
</InfoTableRow>
<InfoTableRow @label="Certificate" @value={{model.certificate}}>
<MaskedInput
@value={{model.certificate}}
@displayOnly={{true}}
@allowCopy={{true}}
/>
</InfoTableRow>
<InfoTableRow
@label="CA Chain"
@value={{model.caChain}}
>
<div class="is-block">
{{#each model.caChain as |chain|}}
<MaskedInput
@value={{chain}}
@displayOnly={{true}}
@allowCopy={{true}}
/>
{{/each}}
</div>
</InfoTableRow>
</div>