Giter Club home page Giter Club logo

Comments (11)

markusewalker avatar markusewalker commented on September 26, 2024 1

@MbolotSuse sure, updated my comment with the information we discussed offline.

from rancher.

snasovich avatar snasovich commented on September 26, 2024

Blocked on design review currently.

from rancher.

MbolotSuse avatar MbolotSuse commented on September 26, 2024

Depends on #45628.

from rancher.

Sahota1225 avatar Sahota1225 commented on September 26, 2024

#45974

from rancher.

markusewalker avatar markusewalker commented on September 26, 2024

Tested this with results over in Qase test run /RM/1631. I noted the following failure:

# Scenario Result
4 Setup Rancher with valid ca-certs and agent-tls-mode=system-store

VALIDATION STEPS

  1. Setup Rancher v2.9-head with a valid cert.pem and/or key.pem file.
    • Ensured agentTLSMode=system-store in the helm install command.
  2. Ran command kubectl get settings agent-tls-mode -o yaml and noted that the value is strict:
$ kubectl get settings agent-tls-mode -o yaml
apiVersion: management.cattle.io/v3
customized: false
default: strict
kind: Setting
metadata:
  creationTimestamp: "2024-07-02T20:30:00Z"
  generation: 1
  name: agent-tls-mode
  resourceVersion: "936"
  uid: ba85e161-b9b9-4450-9265-d01d04ca59f9
source: ""
value: ""

There are two other scenarios that have the same steps as above that have not been tested yet due to this failure. Marking as blocked until this is resolved.

from rancher.

MbolotSuse avatar MbolotSuse commented on September 26, 2024

@markusewalker Can you provide more details? The default on 2.9.0 will be strict, but the actual value should be as in the helm command, system-store - your output doesn't provide sufficient detail to determine if that is the case.

from rancher.

mallardduck avatar mallardduck commented on September 26, 2024

@markusewalker - Can you verify what the helm command is actually rendering templates into? I'm able to verify that based on the release/v2.9 branch the chart should set Env variables as expected. So I'd like to confirm what you're seeing there to identify if the issue is with the helm chart, or "after the chart".

For instance, in my testing I can see:

Default values file (no ENV var expected):

→ helm template ./chart/|grep -A1 CATTLE_AGENT_TLS

And when I set the agentTLSMode we see:

→ helm template ./chart/ --set agentTLSMode=system-store|grep -A1 CATTLE_AGENT_TLS
        - name: CATTLE_AGENT_TLS_MODE
          value: "system-store"

from rancher.

markusewalker avatar markusewalker commented on September 26, 2024

@mallardduck is helm template the only means in which this can be tested? I used the following command:

helm install rancher rancher-latest/rancher --namespace cattle-system --set global.cattle.psp.enabled=false \
 --set ingress.tls.source=secret  --set hostname=$NAME --set rancherImageTag=v2.9-head \
 --set bootstrapPassword=<retracted>--set agentTLSMode="system-store"

If so, I can attempt to retest. I had used this method as the reference guide given implied that helm install should work.

from rancher.

mallardduck avatar mallardduck commented on September 26, 2024

@markusewalker - No it's just the easiest way to directly see the rendered helm results w/o a cluster. You can also do the install command you shared, but append --dry-run --debug and get similar results to the helm template command. However that method does require a k8s cluster for some minimal (hence dry run) cluster state checking.

I think I see the issue and it's much more simple; I believe you're not using the correct chart. From what I can see the newest chart published in rancher-latest helm repo is v2.9.0-rc1 from May 7th. The changes to add this feature to the chart itself were only merged 4 days ago so will not be in v2.9.0-rc1 charts.

@MbolotSuse - I'm not familiar with this area, wondering if you are? I assume they need a v2.9.0-rc2 since charts probably aren't published on alpha by design? Or maybe should they just test from the local ./charts folder?

from rancher.

markusewalker avatar markusewalker commented on September 26, 2024

@mallardduck v2.9.0-rc7 recently became available. I will try with that version and see if I have successful results.

from rancher.

markusewalker avatar markusewalker commented on September 26, 2024

Re-ran the test cases outlined in Qase test run /RM/1631. Using v2.9.0-alpha7, I was successfully able to validate this issue. Summary of the scenarios tested provided below:

# Scenario Result
1 Validate Rancher is accessible with valid ca-certs
2 Validate Rancher is inaccessible with invalid ca-certs
3 Validate Rancher is unusable with invalid ca-certs and agentTLSMode=system-store
4 Validate Rancher is accessible/usable with valid ca-certs and agentTLSMode=system-store
5 Update agentTLSMode from strict to system-store
6 Update agentTLSMode from system-store to strict
7 Upgrade Rancher from v2.8-head -> v2.9-head
8 Upgrade Rancher from v2.8-head -> v2.9-head w/agentTLSMode=strict

from rancher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.