lens
lens copied to clipboard
Secrets not visible in navigation
Describe the bug I have access to all the secrets of several namespaces in our cluster. However, the item "Secrets" is not available under "Config" in the navigation.
After changing my permissions to view all secrets in all namespaces the item becomes visible. Maybe Lens is looking for secrets in the default namespace when determining whether to show the item in the navigation?
To Reproduce Steps to reproduce the behavior:
- Create a k8s user that has access to all secrets in a specific namespace
- Create a secret in this namespace
- Verify with
kubectl
you can list the secrets (kubectl get secret -n your-namespace
) - Open or restart Lens
- Navigate to "Config"
- "Secrets" should be visible, but isn't.
Expected behavior "Secrets" should be available in the Navigation under Config.
Environment:
- Lens Version: 2022.12.11410-latest
- OS: Windows 11 Pro
- Installation method (e.g. snap or AppImage in Linux): .exe file.
Kubeconfig:
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: xxxxx
server: xxxxx
name: xxxxx
contexts:
- context:
cluster: xxxxx
user: xxxxx
name: xxxxx
current-context: xxxxx
kind: Config
preferences: {}
users:
- name: xxxxx
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- --region
- eu-central-1
- eks
- get-token
- --cluster-name
- xxxxx
command: aws
env:
- name: AWS_PROFILE
value: xxxxx
The version of Lens Desktop that you are using only checks the first 10 namespaces retrieved from the kube API for showing those values. On master there is a new and improved checker that will resolve this issue for you without having to give yourself undue permissions.
#6657 is the PR that resolves some known issues with the current implementation.
This has now been fixed