fix(app): remove passwords from registries list response (#334)

pull/12512/head
LP B 2025-01-22 17:40:21 +01:00 committed by GitHub
parent 7f089fab86
commit 9044b25a23
3 changed files with 4 additions and 2 deletions

View File

@ -36,5 +36,9 @@ func (handler *Handler) registryList(w http.ResponseWriter, r *http.Request) *ht
return httperror.InternalServerError("Unable to retrieve registries from the database", err)
}
for idx := range registries {
hideFields(&registries[idx], false)
}
return response.JSON(w, registries)
}

View File

@ -70,7 +70,6 @@ export interface Registry {
BaseURL: string;
Authentication: boolean;
Username: string;
Password?: string;
RegistryAccesses: RegistryAccesses | null;
Gitlab: Gitlab;
Quay: Quay;

View File

@ -15,7 +15,6 @@ function buildTestRegistry(
Name: name,
Username: '',
Authentication: false,
Password: '',
BaseURL: '',
Ecr: { Region: '' },
Github: { OrganisationName: '', UseOrganisation: false },