feat(archied): connection commit identity and SSH commit signing (#1816)
This commit is contained in:
9 files changed
+105
-16
No files matched your search
@@ -98,6 +98,29 @@ const unavailable = computed(() => !!connection.value.type && !extensions.forges
|
||||
<SettingRow label="Credential">
|
||||
<div role="group" aria-label="Credential"><SecretRefField :model-value="connection.token" @update:model-value="(token) => patch({ token })" :id-prefix="`connection-${props.index}-token`" /></div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Commit author" :for="`connection-${props.index}-commit-name`">
|
||||
<div class="flex flex-wrap items-center gap-3">
|
||||
<Input
|
||||
:id="`connection-${props.index}-commit-name`"
|
||||
:model-value="connection.commit_name ?? ''"
|
||||
@update:model-value="(value: string | number) => patch({ commit_name: String(value) || undefined })"
|
||||
class="max-w-56"
|
||||
:placeholder="connection.account || 'archie'"
|
||||
aria-label="Commit author name"
|
||||
/>
|
||||
<Input
|
||||
:model-value="connection.commit_email ?? ''"
|
||||
@update:model-value="(value: string | number) => patch({ commit_email: String(value) || undefined })"
|
||||
class="max-w-72 font-mono"
|
||||
type="email"
|
||||
placeholder="archie@example.com"
|
||||
aria-label="Commit author email"
|
||||
/>
|
||||
</div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Signing key">
|
||||
<div role="group" aria-label="Signing key"><SecretRefField :model-value="connection.signing_key ?? { engine: '', key: '' }" @update:model-value="(ref) => patch({ signing_key: ref.engine || ref.key ? ref : undefined })" :id-prefix="`connection-${props.index}-signing-key`" /></div>
|
||||
</SettingRow>
|
||||
<SettingRow label="Permitted operations">
|
||||
<div class="w-full space-y-2" role="group" aria-label="Permitted operations">
|
||||
<div
|
||||
|
||||
@@ -9,6 +9,10 @@ export interface Connection {
|
||||
host: string;
|
||||
account: string;
|
||||
token: { engine: string; key: string };
|
||||
commit_name?: string;
|
||||
commit_email?: string;
|
||||
/** OpenSSH private key that signs commits made through the connection. */
|
||||
signing_key?: { engine: string; key: string };
|
||||
/** Permitted operations per execution identity ID. */
|
||||
permits?: Record<string, string[]>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user