Update silo creation form to require a TLS certificate#2579
Update silo creation form to require a TLS certificate#2579david-crespo merged 8 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Chatting through this with Ben, and he's noting that it would be good for us to consider a All of the current types in Nexus that have a |
Rather I meant that the |
|
This is a simple one, worth squeezing into R12? @david-crespo @charliepark |
|
Yeah, probably. |
| } = useController({ | ||
| control, | ||
| name: 'tlsCertificates', | ||
| rules: { required: true }, |
There was a problem hiding this comment.
This seems to work, but I was surprised about it since [] is truthy. Found this in the docs recommending validate over required for object and array values. I'll make that tweak now.
aa78f8d to
ff92d07
Compare
david-crespo
left a comment
There was a problem hiding this comment.
This all looks good to me. I'm still a little concerned about requiring a field in the UI that the API does not actually require, but the fix for that is almost certainly to have the API 400 if the list of certs has less than one element.
This looks a little tight, could use some space @benjaminleonard ?
|
Ship it, I feel like I want to rework that pattern where mini-table is hidden when there's no elements anyway, doesn't sit quite right. |
oxidecomputer/console@059c551...fd47bee * [fd47bee7](oxidecomputer/console@fd47bee7) tweak bump omicron script to prompt for message * [f6a3c06c](oxidecomputer/console@f6a3c06c) bump omicron for project-scoped oxql endpoint * [4d3a923c](oxidecomputer/console@4d3a923c) oxidecomputer/console#2596 * [576e1842](oxidecomputer/console@576e1842) oxidecomputer/console#2595 * [72b6d43d](oxidecomputer/console@72b6d43d) oxidecomputer/console#2579 * [15e55044](oxidecomputer/console@15e55044) oxidecomputer/console#2594 * [fa27caf9](oxidecomputer/console@fa27caf9) oxidecomputer/console#2588 * [aad054c5](oxidecomputer/console@aad054c5) oxidecomputer/console#2592 * [d97310be](oxidecomputer/console@d97310be) oxidecomputer/console#2593 * [8ba8a898](oxidecomputer/console@8ba8a898) oxidecomputer/console#2590 * [d7fd3c42](oxidecomputer/console@d7fd3c42) oxidecomputer/console#2586 * [23423c2b](oxidecomputer/console@23423c2b) oxidecomputer/console#2583
oxidecomputer/console@059c551...fd47bee * [fd47bee7](oxidecomputer/console@fd47bee7) tweak bump omicron script to prompt for message * [f6a3c06c](oxidecomputer/console@f6a3c06c) bump omicron for project-scoped oxql endpoint * [4d3a923c](oxidecomputer/console@4d3a923c) oxidecomputer/console#2596 * [576e1842](oxidecomputer/console@576e1842) oxidecomputer/console#2595 * [72b6d43d](oxidecomputer/console@72b6d43d) oxidecomputer/console#2579 * [15e55044](oxidecomputer/console@15e55044) oxidecomputer/console#2594 * [fa27caf9](oxidecomputer/console@fa27caf9) oxidecomputer/console#2588 * [aad054c5](oxidecomputer/console@aad054c5) oxidecomputer/console#2592 * [d97310be](oxidecomputer/console@d97310be) oxidecomputer/console#2593 * [8ba8a898](oxidecomputer/console@8ba8a898) oxidecomputer/console#2590 * [d7fd3c42](oxidecomputer/console@d7fd3c42) oxidecomputer/console#2586 * [23423c2b](oxidecomputer/console@23423c2b) oxidecomputer/console#2583
This fixes a bug in the silo creation form, where a silo could be created without entering in TLS information.
The sub-form already had the TLS fields marked as required, but those requirements don't bubble up to the higher-order form. This adds a requirement to the body of the form, that the
tls_certificatesarray be not-empty.Augustus had an interesting idea about verifying Common Name and Subject Alternative Names in the cert fields, but this PR doesn't address that yet.
Closes #2578