Reminder events about default admin user's default pwd is not changed yet.
This document (000021082) is provided subject to the disclaimer at the end of this document.
Environment
Situation
- Add new env variable NO_DEFAULT_ADMIN which when enabled does not create an 'admin' user. This is used for Rancher SSO integration as the default. If not enabled, persistently warn the user and record events to change the default admin password if it is not changed from default.
If NeuVector is already deployed, you can use the following method to change the default password and subside the reminder event.
Resolution
Since WebUI is exposed with ClusterIP, you cannot access it outside the cluster. You can port-forward it with kubectl to your desktop if you have cluster access using kubectl.
Example:
`kubectl port-forward $(kubectl get pods --selector "app=neuvector-manager-pod" --output=name -n cattle-neuvector-system) 8443:8443 -n cattle-neuvector-system`
browser --> https://127.0.0.1:8443
login admin/admin and change password
Method 2: (via api/federated Managed exposed outside of the cluster with LB or Ingress)
Authenticate via REST API and change the password. Please see our documentation on how to authenticate and obtain the TOKEN for subsequent calls here --> https://open-docs.neuvector.com/automation/automation. You will need to make POST /v1/auth followed by PATCH /v1/user/:user (/v1/user/admin). There is a kb to explain how to configure Postman to work with the apis.yaml here --> https://www.suse.com/support/kb/doc/?id=000020929. Method 1 may be easier if you are unfamiliar with using the NV REST API.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021082
- Creation Date: 23-May-2023
- Modified Date:26-Jul-2023
-
- SUSE NeuVector
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com