You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uploading a TLS certificate should be mandatory during silo creation #2578
For additional context, created a test silo without a TLS certificate. Running a curl -v against that silo resulted in a tlsv1 alert access denied error.
Similar to the "soft-failures" we have on image import, we could probably decode the certificate and verify that either the the CN or SAN covers the computed silo url {silo}.sys.{domain}. Less useful for long term users, but likely nice for initial silo creation.
We should also make sure this requirement is included in the API docs – a note in the description is probably sufficient. I don't see a way of setting minItems in the OpenAPI schema directly through the type. It looks like the only minItems we have there currently are arrays of fixed size, with min and max set to that length.
@ahl Have you considered any way in which we might be add some validation to the API that progenitor cannot discern from the type directly? Might also come in useful for cases where's there's a defined limit, e.g. max instance CPUs. In this utopian world we could use that instead of hard coded values for client-side validation.
Activity
twinfees commentedon Nov 25, 2024
For additional context, created a test silo without a TLS certificate. Running a
curl -vagainst that silo resulted in atlsv1 alert access deniederror.augustuswm commentedon Nov 25, 2024
Similar to the "soft-failures" we have on image import, we could probably decode the certificate and verify that either the the CN or SAN covers the computed silo url
{silo}.sys.{domain}. Less useful for long term users, but likely nice for initial silo creation.david-crespo commentedon Nov 26, 2024
I was wondering how we could fail to require it if it’s a required field, but I think it’s because it’s a required array that is allowed to be empty.
https://docs.oxide.computer/api/silo_create
If it’s really required, we might want the API to 400 if the array is empty too.
benjaminleonard commentedon Nov 26, 2024
We should also make sure this requirement is included in the API docs – a note in the description is probably sufficient. I don't see a way of setting
minItemsin the OpenAPI schema directly through the type. It looks like the onlyminItemswe have there currently are arrays of fixed size, with min and max set to that length.@ahl Have you considered any way in which we might be add some validation to the API that progenitor cannot discern from the type directly? Might also come in useful for cases where's there's a defined limit, e.g. max instance CPUs. In this utopian world we could use that instead of hard coded values for client-side validation.
Initial cert validation test (#2582)