Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix the potential vulnerability of password showcase of external providers #969

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public EditProviderModel(SearchableListModel sourceListModel, Provider provider)
getUrl().setEntity(provider.getUrl());
getRequiresAuthentication().setEntity(provider.isRequiringAuthentication());
getUsername().setEntity(provider.getUsername());
getPassword().setEntity(provider.getPassword());
getPassword().setEntity("********"); //$NON-NLS-1$
if (provider.isRequiringAuthentication() && provider.getType().isAuthUrlAware()) {
Uri uri = new Uri(provider.getAuthUrl());
if (uri.isValid()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,9 @@ private void flush() {
provider.setRequiringAuthentication(authenticationRequired);
if (authenticationRequired) {
provider.setUsername(getUsername().getEntity());
if(!getPassword().getEntity().equals("********")) { //$NON-NLS-1$
provider.setPassword(getPassword().getEntity());
}
if (getTenantName().getIsAvailable()) {
OpenStackProviderProperties properties = getOpenStackProviderProperties();
properties.setTenantName(getTenantName().getEntity());
Expand Down