1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

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

This commit is contained in:
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) return httperror.InternalServerError("Unable to retrieve registries from the database", err)
} }
for idx := range registries {
hideFields(&registries[idx], false)
}
return response.JSON(w, registries) return response.JSON(w, registries)
} }

View file

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

View file

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