Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Generated Ingress certificates during Kubernetes deployment are empty #4006

Closed
2 of 9 tasks
miro-grapeup opened this issue Nov 4, 2019 · 0 comments
Closed
2 of 9 tasks
Assignees
Labels
bug community Community Raised Issue

Comments

@miro-grapeup
Copy link

miro-grapeup commented Nov 4, 2019

Frontend Deployment type

  • Cloud Foundry Application (cf push)
  • Kubernetes, using a helm chart
  • Docker, single container deploying all components
  • npm run start
  • Other (please specify below)

Backend (Jet Stream) Deployment type

  • Cloud Foundry Application (cf push)
  • Kubernetes, using a helm chart
  • Docker, single container deploying all components
  • Other (please specify below)

Expected behaviour

The auto generated certificates should be correct

Actual behaviour

Generated Ingress certificates during deployment on k8s are empty

Steps to reproduce the behavior

Use the ingress config similar to scenario in here #4005 but after stratos is deployed you have to manually edit the ingress: kubectl edit ingress $RELEASE_NAME-ingress and fix the incorrect secretName.

Log output covering before error and any error statements

time="2019-11-04T21:58:15Z" level=error msg="Error configuring TLS for ingress console/stratos-console-ingress: secret console/stratos-console-ingress-tls contains the following empty TLS data entries: tls.crt, tls.key"
time="2019-11-04T21:58:16Z" level=error msg="Error configuring TLS for ingress console/stratos-console-ingress: secret console/stratos-console-ingress-tls contains the following empty TLS data entries: tls.crt, tls.key"
time="2019-11-04T21:58:17Z" level=error msg="Error configuring TLS for ingress console/stratos-console-ingress: secret console/stratos-console-ingress-tls contains the following empty TLS data entries: tls.crt, tls.key"

Detailed Description

The below lines have default empty values.

tls.crt: {{ .Values.console.service.ingress.tls.crt | default "" | b64enc | quote }}
tls.key: {{ .Values.console.service.ingress.tls.key | default "" | b64enc | quote }}

Context

Possible Implementation

This can be fixed to not use empty default values but to generate certificates or the documentation should be fixed and not saying that by default certs will be generated for ingress.

@nwmac nwmac added the bug label Nov 27, 2019
@nwmac nwmac self-assigned this Nov 27, 2019
This was referenced Nov 27, 2019
@richard-cox richard-cox added the community Community Raised Issue label Dec 12, 2019
@nwmac nwmac closed this as completed Jan 8, 2020
@nwmac nwmac removed the in progress label Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug community Community Raised Issue
Projects
None yet
Development

No branches or pull requests

3 participants