diff --git a/addons/api/mirage/scenarios/ipc.js b/addons/api/mirage/scenarios/ipc.js index 0920fd963..729b9fa25 100644 --- a/addons/api/mirage/scenarios/ipc.js +++ b/addons/api/mirage/scenarios/ipc.js @@ -65,10 +65,10 @@ export default function initializeMockIPC(server) { name: 'Library Name', description: 'Library Description', credential_store_id: 'csvlt_Q1HFGt7Jpm', - type: 'vault' + type: 'vault', }, purpose: 'application', - secret: btoa('just-a-random-string') + secret: btoa('just-a-random-string'), }, { credential_library: { @@ -76,16 +76,18 @@ export default function initializeMockIPC(server) { name: 'Library Name', description: 'Library Description', credential_store_id: 'csvlt_Q1HFGt7Jpm', - type: 'vault' + type: 'vault', }, purpose: 'ingress', - secret: btoa(JSON.stringify({ - key1: 'value 1', - key2: true, - key3: { - description: 'nested values' - } - })) + secret: btoa( + JSON.stringify({ + key1: 'value 1', + key2: true, + key3: { + description: 'nested values', + }, + }) + ), }, { credential_library: { @@ -93,10 +95,10 @@ export default function initializeMockIPC(server) { name: 'Library Name', description: 'Library Description', credential_store_id: 'csvlt_Q1HFGt7Jpm', - type: 'vault' + type: 'vault', }, purpose: 'application', - secret: btoa('just-a-random-string') + secret: btoa('just-a-random-string'), }, { credential_library: { @@ -104,18 +106,20 @@ export default function initializeMockIPC(server) { name: 'Library Name', description: 'Library Description', credential_store_id: 'csvlt_Q1HFGt7Jpm', - type: 'vault' + type: 'vault', }, purpose: 'egress', - secret: btoa(JSON.stringify({ - key1: 'value 1', - key2: true, - key3: { - description: 'nested values' - } - })) + secret: btoa( + JSON.stringify({ + key1: 'value 1', + key2: true, + key3: { + description: 'nested values', + }, + }) + ), }, - ] + ], }; } diff --git a/addons/core/translations/form/en-us.yaml b/addons/core/translations/form/en-us.yaml index 5d2a58567..9442c73fc 100644 --- a/addons/core/translations/form/en-us.yaml +++ b/addons/core/translations/form/en-us.yaml @@ -62,6 +62,8 @@ client_secret: help: The client secret is set-only and may not be unset. client_secret_hmac: label: Client Secret HMAC +secret: + label: Secret max_age: label: Maximum Age help: The OIDC "max_age" parameter sent to the Authorization Server indicating a maximum acceptable time in seconds since the user's last authentication before requiring the user to reauthenticate. 0 indicates an immediate need to reauthenticate. @@ -108,3 +110,7 @@ email: label: Email full_name: label: Full Name +key: + label: Key +value: + label: Value diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index fc4fa2c65..2a8bb2b67 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -150,8 +150,13 @@ session: credential: title: Credential title_plural: Credentials + secret: + label: Secret actions: detail: Credential library details + raw-api: + show: View raw API output + hide: Hide raw API output org: title: Org title_plural: Orgs diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 4abf9c368..a58be8b4d 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -451,4 +451,10 @@ $chevron-down: url("data:image/svg+xml;utf-8, <:body> -

{{t 'resources.target.messages.proxy_url.title'}} - {{!-- ({{t 'resources.target.types.tcp'}})

--}} - ({{t 'resources.target.types.tcp'}}) +

+ {{t 'resources.target.messages.proxy_url.title'}} + ({{t 'resources.target.types.tcp'}}) +

- {{session.proxy_address}}:{{session.proxy_port}} + {{session.proxy}}

- + {{#if session.credentials}} + - {{! TODO: Conditional for when credentials aren't available - older versions of cli }} -

{{t 'resources.session.credential.title_plural'}}

- {{!-- - <:header> - {{t 'resources.session.credential.title_plural'}} + + {{#each session.credentials as |credential|}} + - - <:key>{{t 'form.id.label'}} - <:value>cl_nbv9375hLHs - - - <:key>{{t 'form.name.label'}} - <:value>Key/Value - - - <:key>{{t 'form.description.label'}} - <:value>Lorem ipsum dolor, sit amet consectetur adipisicing - elit. Ut nobis, nemo cum omnis saepe reprehenderit eaque - non odit iste magni quod voluptatem soluta dolor beatae - libero consequatur, perferendis rem molestias. - - - - <:body> - {{! TODO: Iterate through all credentials }} - - - - Key - Value - - - - - foo - Value - - - ttl - Test - - - - - <:footer> - -
-                    
-                      { "auth": null, "lease_duration": 3600, "lease_id": "",
-                      "renewable": false }
-                    
-                  
-
- -
--}} + <:header> + + + <:key>{{t 'form.id.label'}} + <:value> + + {{credential.credential_library_id}} + + + + + <:key>{{t 'form.type.label'}} + <:value>{{credential.credential_library_type}} + + + <:key>{{t 'form.name.label'}} + <:value>{{credential.credential_library_name}} + + + <:key>{{t 'form.description.label'}} + <:value + >{{credential.credential_library_description}} + + + + <:body> + + + + {{t + 'form.key.label' + }} + {{t + 'form.value.label' + }} + + + + {{#if credential.secret}} + + {{t + 'form.secret.label' + }} + + + {{credential.secret}} + + + + {{/if}} + + + + <:footer> + +
+                        
+                          {{credential.rawCredential}}
+                        
+                      
+
+ + + {{/each}} + {{/if}} <:footer>
@@ -116,4 +150,4 @@ {{/each}} {{/each}} -{{outlet}} +{{outlet}} \ No newline at end of file