Skip to content

Uploading a TLS certificate should be mandatory during silo creation #2578

Closed

Description

@wfchandler

Currently the console does not require a TLS certificate to be uploaded during the silo creation workflow.

This is a mandatory field in the API and failure to provide a cert may leave the newly created silo broken in unpredictable ways.

Activity

  1. added
    customer
    on Nov 25, 2024
  2. twinfees commented on Nov 25, 2024

    @twinfees

    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.

  3. augustuswm commented on Nov 25, 2024

    @augustuswm

    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.

  4. david-crespo commented on Nov 26, 2024

    @david-crespo
    Collaborator

    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.

  5. benjaminleonard commented on Nov 26, 2024

    @benjaminleonard
    Contributor

    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.

  6. added this to the 12 milestone on Dec 3, 2024
  7. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

customer

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions