Skip to content

feat(images): fetch TLS certificate from secret for upload endpoints#2235

Merged
hardcoretime merged 1 commit into
mainfrom
feat/images/upload-tls-cert-retrieval
Apr 20, 2026
Merged

feat(images): fetch TLS certificate from secret for upload endpoints#2235
hardcoretime merged 1 commit into
mainfrom
feat/images/upload-tls-cert-retrieval

Conversation

@hardcoretime
Copy link
Copy Markdown
Contributor

@hardcoretime hardcoretime commented Apr 17, 2026

Description

Added TLS certificate retrieval from secrets for upload endpoints to fix TLS verification errors when using self-signed certificates.

Why do we need it, and what problem does it solve?

When the cluster uses a self-signed certificate for the ingress controller, the IsUploaderReady function fails with TLS verification error because it doesn't have access to the TLS secret containing the CA certificate. This prevents users from uploading images through the upload endpoint.

The fix retrieves the TLS secret from the cluster and passes it to the IsUploaderReady function, enabling proper TLS verification.

What is the expected result?

Upload endpoints work correctly with TLS verification, even when the ingress controller uses self-signed certificates. The implementation also supports legacy naming of TLS secrets for backward compatibility.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime added this to the v1.8.0 milestone Apr 17, 2026
@hardcoretime hardcoretime marked this pull request as ready for review April 17, 2026 23:11
@hardcoretime hardcoretime added the e2e/run Run e2e test on cluster of PR author label Apr 17, 2026
@deckhouse-BOaTswain
Copy link
Copy Markdown
Contributor

deckhouse-BOaTswain commented Apr 17, 2026

Workflow has started.
Follow the progress here: Workflow Run

The target step completed with status: failure.

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Apr 18, 2026
@hardcoretime hardcoretime added the e2e/run Run e2e test on cluster of PR author label Apr 18, 2026
@deckhouse-BOaTswain
Copy link
Copy Markdown
Contributor

deckhouse-BOaTswain commented Apr 18, 2026

Workflow has started.
Follow the progress here: Workflow Run

The target step completed with status: failure.

@deckhouse-BOaTswain deckhouse-BOaTswain removed the e2e/run Run e2e test on cluster of PR author label Apr 18, 2026
@hardcoretime hardcoretime merged commit 11a116d into main Apr 20, 2026
131 of 138 checks passed
@hardcoretime hardcoretime deleted the feat/images/upload-tls-cert-retrieval branch April 20, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants