Uploaded image for project: 'OpenShift Kueue'
  1. OpenShift Kueue
  2. OCPKUEUE-453

[Upstream] Implement TLS profile for Webhook Server

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None

      Apply TLS profile settings to the webhook server via controller-runtime's webhook.Options.TLSOpts.

      File to modify:

      • cmd/kueue/main.go
      • pkg/config/config.go (addTo function)

      Implementation:

      webhookServer := webhook.NewServer(webhook.Options{
          Port:    *cfg.Webhook.Port,
          Host:    cfg.Webhook.Host,
          CertDir: cfg.Webhook.CertDir,
          TLSOpts: []func(*tls.Config){
              func(config *tls.Config) {
                  config.MinVersion = tlsVersionFromConfig(cfg.Webhook.MinTLSVersion)
                  config.CipherSuites = cipherSuitesFromConfig(cfg.Webhook.CipherSuites)
              },
          },
      })
      

      Acceptance Criteria:

      • Webhook server respects minTLSVersion from configuration
      • Webhook server respects cipherSuites from configuration
      • Defaults to Intermediate profile when not specified
      • TLS scanner confirms correct settings on webhook endpoints

      Depends on: OCPKUEUE-451 (API fields)

              harpatil@redhat.com Harshal Patil
              harpatil@redhat.com Harshal Patil
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: