For local and internal access method add option to specify username
In case of INTERNAL and LOCAL access method types user is not provided with a link or URL but with information about IP address or K8s service name for accessing the application respectively. Also port number can be appended at the end if appropriate access method parameter is used.
Currently it's hardcoded that for an INTERNAL access method named SSH
a default user is displayed before IP address and port like:
SSH: netops@10.10.10.1:22
.
This functionality needs to be enhanced to allow the application administrator to indicate if and what username should be displayed.
Two new parameters should be added that would be applicable for INTERNAL and LOCAL access methods:
- ACCESS_USER - the value for this parameter provided by admin in access method spec would contain the static username that would be applicable to all instances of given application (e.g.
appuser
) - ACCESS_USER_REF - the value for this parameter would be the name of a parameter (key) populated by the user instantiating a new instance of given application using the config wizard (e.g.
access.username
). The value provided by the user will have to be extracted and displayed on the access methods modal