diff --git a/static/app/components/modals/debugFileCustomRepository/utils.tsx b/static/app/components/modals/debugFileCustomRepository/utils.tsx index e4bc1896a93c73..ac4916577b2f64 100644 --- a/static/app/components/modals/debugFileCustomRepository/utils.tsx +++ b/static/app/components/modals/debugFileCustomRepository/utils.tsx @@ -127,7 +127,7 @@ export function getFormFieldsAndInitialData( { name: 'secret_key', type: 'string', - required: true, + required: !secret_key, label: t('Secret Access Key'), placeholder: typeof secret_key === 'object' @@ -173,7 +173,8 @@ export function getFormFieldsAndInitialData( { name: 'private_key', type: 'string', - required: true, + // Private key is only required if it's not already set + required: !private_key, multiline: true, autosize: true, maxRows: 5,