Skip to content

Commit 157bf1c

Browse files
committed
feat: Link to SSH Keys Config on Import Secure Application
https://harperdb.atlassian.net/browse/STUDIO-600
1 parent 279dd92 commit 157bf1c

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/features/instance/applications/components/NewApplication/ImportInstructions.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,12 @@ export function ImportInstructions({
171171
<Alert>
172172
<AlertDescription>
173173
<span>
174-
Certificate management isn't supported by this website yet, but you
175-
can <Link className="inline-block underline hover:text-white" to="https://docs.harperdb.io/docs/developers/security/certificate-management" target="_blank">use
176-
your operations API</Link> to add them in the meantime.
174+
You can manage your certificates over in <Link
175+
to="config" className="underline">Config</Link> &gt; <Link
176+
to="config/ssh-keys" className="underline">SSH Keys</Link>. This enables SSH based auth for private
177+
repos, i.e. following the pattern of <a
178+
href="https://github.com/HarperFast/Studio" target="_blank" className="underline">[email protected]:HarperFast/studio.git</a>.
179+
If you have more than one key, make sure to utilize unique hostnames!
177180
</span>
178181
</AlertDescription>
179182
</Alert>

src/features/instance/applications/components/NewApplication/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const ImportSchema = z.object({
1616
source: z.enum(['git', 'npm', 'tarball']),
1717
ref: z.string().nonempty('Please enter a URL or package reference.'),
1818
installCommand: z.string(),
19-
requiresAuth: z.literal(false),
19+
requiresAuth: z.boolean(),
2020
});
2121

2222
export const defaultImportOptions: z.infer<typeof ImportSchema> = {

src/features/instance/config/sshKeys/index.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useInstanceClientIdParams } from '@/config/useInstanceClient';
55
import { useRefreshClick } from '@/hooks/useRefreshClick';
66
import { listSSHKeysQueryOptions, SSHKeyName } from '@/integrations/api/instance/ssh/listSSHKeys';
77
import { useQuery } from '@tanstack/react-query';
8-
import { useNavigate, useParams } from '@tanstack/react-router';
8+
import { Link, useNavigate, useParams } from '@tanstack/react-router';
99
import { Row } from '@tanstack/react-table';
1010
import { PlusIcon, RefreshCwIcon } from 'lucide-react';
1111
import { Suspense, useCallback, useMemo, useState } from 'react';
@@ -49,6 +49,13 @@ export function ConfigSSHKeysIndex() {
4949
return (
5050
<>
5151
<SimpleBrowseDataTable columns={dataTableColumns} data={localSSHKeys || []} isFetching={isFetching} onRowClick={onSelectSSHKey}>
52+
<Link
53+
className="inline-block underline text-sm text-gray-400 hover:text-white"
54+
to="https://docs.harperdb.io/docs/developers/security/certificate-management"
55+
target="_blank"
56+
>
57+
Certificate Management Docs
58+
</Link>
5259
<Button variant="defaultOutline" onClick={onRefreshClick} accessKey="r" disabled={isFetching || isRefetching}>
5360
<RefreshCwIcon />
5461
<span className="hidden lg:inline-block">

0 commit comments

Comments
 (0)