From 012b8beae5f258aba75422896110cdfbb160bc25 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Thu, 21 Sep 2023 15:19:36 +0100 Subject: [PATCH] show warning for expriring certificates (#235) --- src/Commands/DeployCommand.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Commands/DeployCommand.php b/src/Commands/DeployCommand.php index d8eb1a43..49712bb6 100644 --- a/src/Commands/DeployCommand.php +++ b/src/Commands/DeployCommand.php @@ -66,6 +66,13 @@ public function handle() $this->debugMode() )); + if ($deployment['database'] && $deployment['database']['certificate_authority_status'] === 'expiring') { + Helpers::line(); + Helpers::warn('You database is uses a certificate which expires in August 2024. To prevent connectivity issues after this date, please update the Certificate Authority of your database from the AWS console using the link below.'); + Helpers::line(); + Helpers::line("https://{$deployment['database']['region']}.console.aws.amazon.com/rds/home?region={$deployment['database']['region']}#ca-cert-update:"); + } + if ($this->option('without-waiting')) { Helpers::line();