From 3f0489f813754d777d2d264e4590d3957f0a57c5 Mon Sep 17 00:00:00 2001 From: James Greenhill Date: Tue, 5 Sep 2023 16:05:29 -0700 Subject: [PATCH] chore: add keys as params for backup entries (#41) --- frontend/src/pages/Backups/Backups.tsx | 19 ++++++++++++++++++ .../src/pages/Backups/ScheduledBackups.tsx | 20 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/frontend/src/pages/Backups/Backups.tsx b/frontend/src/pages/Backups/Backups.tsx index b2059f2..90251e9 100644 --- a/frontend/src/pages/Backups/Backups.tsx +++ b/frontend/src/pages/Backups/Backups.tsx @@ -28,6 +28,8 @@ type FieldType = { table?: string bucket?: string path?: string + aws_access_key_id?: string + aws_secret_access_key?: string } export default function Backups() { @@ -182,6 +184,23 @@ export default function Backups() { > + + label="AWS Access Key" + name="aws_access_key_id" + initialValue="AKIAIOSFODNN7EXAMPLE" + rules={[{ required: false, message: 'AWS Access Key ID to use for access to the S3 bucket' }]} + > + + + + + label="AWS Access Secret" + name="aws_access_secret_key" + initialValue="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" + rules={[{ required: false, message: 'AWS Access Secret Key used to access S3 bucket' }]} + > + + diff --git a/frontend/src/pages/Backups/ScheduledBackups.tsx b/frontend/src/pages/Backups/ScheduledBackups.tsx index 831cc14..ae8619b 100644 --- a/frontend/src/pages/Backups/ScheduledBackups.tsx +++ b/frontend/src/pages/Backups/ScheduledBackups.tsx @@ -30,6 +30,8 @@ type FieldType = { table?: string bucket?: string path?: string + aws_access_key_id?: string + aws_secret_access_key?: string } export default function ScheduledBackups() { @@ -240,6 +242,24 @@ export default function ScheduledBackups() { > + + + label="AWS Access Key" + name="aws_access_key_id" + initialValue="AKIAIOSFODNN7EXAMPLE" + rules={[{ required: false, message: 'AWS Access Key ID to use for access to the S3 bucket' }]} + > + + + + + label="AWS Access Secret" + name="aws_access_secret_key" + initialValue="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" + rules={[{ required: false, message: 'AWS Access Secret Key used to access S3 bucket' }]} + > + +