dashboard
dashboard copied to clipboard
[BUG][UI] Cant save cluster with edit as yaml, corrupts encryption.yaml (worse in 2.7.0)
Rancher Server Setup
- Rancher version: 2.7.0
- Installation option Docker:
- Proxy/Cert Details: -
Information about the Cluster
- Kubernetes version: Does not matter
- Cluster Type (Local/Downstream): RKE
User Information
- What is the role of the user logged in? Does not matter
Describe the bug This bug is still present: https://github.com/rancher/rancher/issues/36197
To Reproduce
-
docker run -d --rm -p 443:443 --privileged --name rancher "rancher/rancher:v2.7.0"
- open https://localhost
These steps are all in the ui:
- bootstrap the cluster as told in the ui
- generate a random password
- create a new cluster with
RKE
- use a random name for the cluster
- merge the encryption config from https://rancher.com/docs/rke/latest/en/config-options/secrets-encryption/
- selecteer all rollen
- click op done
- edit the cluster as yaml
- click on save
- edit the cluster as yaml
Result
The config at step 10:
resources:
- providers:
- aescbc:
keys:
- name: k-fw5hn
secret: RTczRjFDODMwQzAyMDVBREU4NDJBMUZFNDhCNzM5N0I=
aesgcm: {}
identity: {}
kms: {}
secretbox: {}
- aescbc: {}
aesgcm: {}
identity: {}
kms: {}
secretbox: {}
The config at step 13:
resources:
- providers:
- aescbc:
keys:
- name: k-fw5hn
secret: RTczRjFDODMwQzAyMDVBREU4NDJBMUZFNDhCNzM5N0I=
aesgcm:
keys: null
identity: {}
kms:
endpoint: ''
name: ''
timeout: {}
secretbox:
keys: null
- aescbc:
keys: null
aesgcm:
keys: null
identity: {}
kms:
endpoint: ''
name: ''
timeout: {}
secretbox:
keys: null
Expected Result
The configuration should be the same as on stap 7 and thus the configuration on this page: https://rancher.com/docs/rke/latest/en/config-options/secrets-encryption/
Screenshots
No Screenshots.
Additional context
It worse than version 2.6 and lower, but ever still present. https://github.com/rancher/rancher/issues/36197