From 971ab2be61823023354adcec0c18811343a126ff Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Mon, 27 Mar 2023 13:38:32 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20target=20session=20recor?= =?UTF-8?q?ding=20configure=20on=20edit=20mode=20(#144)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 🎸 target session recording sidebar --- addons/core/translations/resources/en-us.yaml | 4 ++ ui/admin/app/styles/app.scss | 21 ++++++++++ .../scopes/scope/targets/target/index.hbs | 40 ++++++++++++++++--- 3 files changed, 60 insertions(+), 5 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 89bff1130..d71b1f96e 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -384,6 +384,7 @@ target: add-injected-application-credential-sources: Add Injected Application Credentials remove-address: Remove address and save enable-session-recording: Enable Session Recording + enable-recording: Enable recording types: tcp: Generic TCP ssh: SSH @@ -400,6 +401,9 @@ target: worker_filter: label: Worker Filter help: Deprecated. Boolean expression to filter the workers that are allowed to satisfy this request. + sidebar: + label: Session Recording + help: Record SSH sessions on this target and save them to an Amazon S3 bucket. questions: delete-host-sources: title: Remove associated host sources? diff --git a/ui/admin/app/styles/app.scss b/ui/admin/app/styles/app.scss index 24532d74a..4131c3e5b 100644 --- a/ui/admin/app/styles/app.scss +++ b/ui/admin/app/styles/app.scss @@ -643,6 +643,27 @@ } } +// target sidebar +.target-sidebar { + .title-wrapper { + display: flex; + justify-content: space-between; + align-items: baseline; + + .hds-button { + box-shadow: none; + border: none; + background-color: transparent; + } + } + + .description { + color: var(--token-form-helper-text-color); + font-weight: var(--token-typography-font-weight-normal); + font-size: var(--token-typography-body-200-font-size); + } +} + .key-value-list { border: 0; diff --git a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs index 87cedc69b..f0ce80553 100644 --- a/ui/admin/app/templates/scopes/scope/targets/target/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/target/index.hbs @@ -22,11 +22,41 @@ - + + + + + + {{#if (can 'setStorageBucket target' @model)}} + +
+
+

{{t 'resources.target.form.sidebar.label'}}

+ +
+

+ {{t 'resources.target.form.sidebar.help'}} +

+ +
+
+ {{/if}} +
+
\ No newline at end of file