Skip to content

Commit

Permalink
chore: add keys as params for backup entries
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Sep 5, 2023
1 parent a41ec3f commit 4cad0c6
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions frontend/src/pages/Backups/Backups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -182,6 +184,23 @@ export default function Backups() {
>
<Input />
</Form.Item>
<Form.Item<FieldType>
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' }]}
>
<Input />
</Form.Item>

<Form.Item<FieldType>
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' }]}
>
<Input />
</Form.Item>
</Form>
</Modal>
<Table columns={columns} dataSource={backups.backups} loading={loadingBackups} />
Expand Down
20 changes: 20 additions & 0 deletions frontend/src/pages/Backups/ScheduledBackups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -240,6 +242,24 @@ export default function ScheduledBackups() {
>
<Input />
</Form.Item>

<Form.Item<FieldType>
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' }]}
>
<Input />
</Form.Item>

<Form.Item<FieldType>
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' }]}
>
<Input />
</Form.Item>
</Form>
</Modal>
<Table columns={columns} dataSource={backups.backups} loading={loadingBackups} />
Expand Down

0 comments on commit 4cad0c6

Please sign in to comment.