rancher / rancher

Complete container management platform
http://rancher.com
Apache License 2.0
23.23k stars 2.95k forks source link

[BUG] Manager in Docker with Enterprise proxy error : "x509: certificate signed by unknown authority" in Apps/Charts #44561

Closed dominiquefournier closed 6 months ago

dominiquefournier commented 6 months ago

Rancher Server Setup Rancher v2.8.2 (Installed by Docker) Dashboard v2.8.0 Helm v2.16.8-rancher2 Machine v0.15.0-rancher106

Information about the Cluster

User Information

Describe the bug Rancher Manager launched from Docker with an Entreprise proxy do not display the Apps/Charts correctly. In the firefox logs, there is the error

{"type":"error","links":{},"code":"ServerError","message":"Get \"https://docs.ondat.io/images/generic/Ondat_logo.svg\": tls: failed to verify certificate: x509: certificate signed by unknown authority","status":500,"type":"error"} And the images are not displayed correectely. All the apps are not displayed (like Monitoring), and can not be installed.

To Reproduce Create a docker-compose.yml containing :

version: '3'

services:
  rancher:
    image: rancher/rancher:latest
    restart: unless-stopped
    ports:
    - "7443:443"
    volumes:
    - rancher-data:/var/lib/rancher
    - /docker/Rancher/certs:/container/certs
    - /var/log/rancher/auditlog:/var/log/auditlog
    privileged: true
    environment:
    - SSL_CERT_DIR=/container/certs
    - AUDIT_LEVEL=1

volumes:
  rancher-data:

Add the certificate of the proxy in /docker/Rancher/certs directory Start with docker-compose up -d

I also add the HTTP_PROXY,HTTPS_PROXY,NO_PROXY parameters without luck

Result Capture d'écran-2024-02-23 16:44:57

Expected Result Display the images of the software on top, and display correctly all the available apps on the repository (like Monitoring)

Used documentations https://ranchermanager.docs.rancher.com/reference-guides/single-node-rancher-in-docker/advanced-options#custom-ca-certificate https://ranchermanager.docs.rancher.com/reference-guides/single-node-rancher-in-docker/advanced-options

dominiquefournier commented 6 months ago

https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/helm-charts-in-rancher#repositories solve the bug. I enable the proxy certificate in the repository configuration and it works