From f85d83125d27df4b6be24caa2cd7fa0655e56ec6 Mon Sep 17 00:00:00 2001 From: Aashish Sharma Date: Wed, 26 Jul 2023 11:30:32 +0530 Subject: [PATCH] mgr/dashboard: add validations to zone access/secret key in zone creation/edit form Fixes: https://tracker.ceph.com/issues/62124 Signed-off-by: Aashish Sharma --- .../rgw-multisite-zone-form.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts index 1fb9c178da1..5ad0dd51cca 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.ts @@ -112,8 +112,8 @@ export class RgwMultisiteZoneFormComponent implements OnInit { Validators.required ] }), - access_key: new FormControl(null), - secret_key: new FormControl(null), + access_key: new FormControl(null, Validators.required), + secret_key: new FormControl(null, Validators.required), placementTarget: new FormControl(null), placementDataPool: new FormControl(''), placementIndexPool: new FormControl(null), -- 2.39.5