Add dedicated show/edit pages for cloud provider tokens and cloud-init scripts, including descriptions and UUID routes. Generate private keys directly from the index and surface cloud provider API loading errors in server creation flows.
21 lines
985 B
PHP
21 lines
985 B
PHP
<div>
|
|
<div class="pb-2 subtitle">
|
|
<div>Private Keys are used to connect to your servers without passwords.</div>
|
|
<div class="font-bold">You should not use passphrase protected keys.</div>
|
|
</div>
|
|
<form class="flex flex-col gap-2" wire:submit='createPrivateKey'>
|
|
<div class="flex gap-2">
|
|
<x-forms.input id="name" label="Name" required />
|
|
<x-forms.input id="description" label="Description" />
|
|
</div>
|
|
<x-forms.textarea realtimeValidation id="value" rows="10" monospace
|
|
placeholder="-----BEGIN OPENSSH PRIVATE KEY-----" label="Private Key" required />
|
|
<x-forms.input id="publicKey" readonly label="Public Key" />
|
|
<span class="pt-2 pb-4 font-bold dark:text-warning">ACTION REQUIRED: Copy the 'Public Key' to your server's
|
|
~/.ssh/authorized_keys
|
|
file</span>
|
|
<x-forms.button type="submit">
|
|
Continue
|
|
</x-forms.button>
|
|
</form>
|
|
</div>
|