Skip to content

Eventing TLS: Create Cert-Manager resources #6837

@pierDipi

Description

@pierDipi

As the Eventing TLS feature track describes we should provision a few TLS certificates using Cert Manager like the following:

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: <component-prefix>-server-tls
  namespace: knative-eventing
spec:
  # Secret names are always required.
  secretName: <component-prefix>-server-tls

  secretTemplate:
    labels:
      app.kubernetes.io/component: <component-name>
      app.kubernetes.io/name: knative-eventing

  duration: 2160h # 90d
  renewBefore: 360h # 15d
  subject:
    organizations:
      - local
  isCA: false
  privateKey:
    algorithm: RSA
    encoding: PKCS1
    size: 2048

  usages:
    - <component> server TLS

  dnsNames:
    - <component-dns-name_based_on_service_definition>

  issuerRef:
    name: selfsigned-issuer
    kind: Issuer
    group: cert-manager.io

for each component:

Each certificate should be connected to a self-signed issuer:

apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
  name: selfsigned-issuer
  namespace: knative-eventing
spec:
  selfSigned: {}

The Certificate resources and the Issuer should then be bundled in a eventing-tls-networking.yaml artifact during the release

Additional Info

/good-first-issue
/kind feature

Metadata

Metadata

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/feature-request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions