Skip to content

Allowing ingress annotations for auto-generating valid certificates #14

Open

Description

@UnicornyRainbow

At the moment it is only possible to generate self-signed certificates in the helm chart or manually deploying your own.
It would be nice to be able to specify annotations for the ingresses as this is used by cert-manager (and maybe others?) to generate certificates.
Most helm charts have a ingress.anotations: {} option for each ingress.
Here it could lokk something like:

## @param kasmCerts.ingress.name Name used for Kasm Ingres Certificate Secret (if resource already exists, use resource name here and set create = false)
## @param kasmCerts.ingress.annotations add annotations to the ingress
## @param kasmCerts.ingress.create true/false used to create the Ingress resource
## @param kasmCerts.ingress.cert Add externally-generated Intress TLS Public certificate
## @param kasmCerts.ingress.key Add externally-generated Intress TLS Private key
##
ingress:
  name: kasm-ingress-cert
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    cert-manager.io/common-name: kasm.example.com
    cert-manager.io/private-key-algorithm: ECDSA
    cert-manager.io/private-key-rotation-policy: Always
    cert-manager.io/private-key-size: '384'
  create: false
  cert: |-
    ######    Place public SSL Cert here     ######
    ######  Leave empty for Helm to generate ######
  key: |-
    ######    Place public SSL Key here      ######
    ######  Leave empty for Helm to generate ######

Additionally ingress annotations could be useful for adding additional configuration to the ingress provider if desired, as this method of configuration is used by traefik, nginx and probably others

Activity

  1. bscarbrough commented on Jun 10, 2025

    @bscarbrough
    Collaborator

    Agreed, refer to Issue #19 as well. We'll be making some changes soon that will hopefully make this more extensible.

  2. bscarbrough commented on Aug 1, 2025

    @bscarbrough
    Collaborator

    @UnicornyRainbow, we've just pushed an update to the develop branch of this repo that allows both cert-manger certificate generation, as well as using annotations on the ingress or even a service to manage cloud load balancers or for any other internal needs you may have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions