From e110fde232850f07bdec8b333865c6562e5dfd89 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 16 Mar 2026 15:21:11 +0000 Subject: [PATCH 1/2] fix: change default secret type for delete command from personal to shared The delete command defaulted type to 'personal', causing 404 errors when deleting shared secrets (which is the most common type). The set command already defaults to 'shared' via util.SECRET_TYPE_SHARED. This aligns the delete command with the same default behavior. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- packages/cmd/secrets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cmd/secrets.go b/packages/cmd/secrets.go index 904db0d8..ece15af9 100644 --- a/packages/cmd/secrets.go +++ b/packages/cmd/secrets.go @@ -837,7 +837,7 @@ func init() { secretsSetCmd.Flags().String("file", "", "Load secrets from the specified file. File format: .env or YAML (comments: # or //). This option is mutually exclusive with command-line secrets arguments.") util.AddOutputFlagsToCmd(secretsSetCmd, "The output to format the secrets in.") - secretsDeleteCmd.Flags().String("type", "personal", "the type of secret to delete: personal or shared (default: personal)") + secretsDeleteCmd.Flags().String("type", util.SECRET_TYPE_SHARED, "the type of secret to delete: personal or shared (default: shared)") secretsDeleteCmd.Flags().String("token", "", "Fetch secrets using service token or machine identity access token") secretsDeleteCmd.Flags().String("projectId", "", "manually set the projectId to delete secrets from when using machine identity based auth") secretsDeleteCmd.Flags().String("path", "/", "get secrets within a folder path") From 34a395259ebfd6b2f3d4af83d5888293e9366ea2 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 16 Mar 2026 15:57:26 +0000 Subject: [PATCH 2/2] style: remove redundant default hint from delete type flag description Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- packages/cmd/secrets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cmd/secrets.go b/packages/cmd/secrets.go index ece15af9..16db3270 100644 --- a/packages/cmd/secrets.go +++ b/packages/cmd/secrets.go @@ -837,7 +837,7 @@ func init() { secretsSetCmd.Flags().String("file", "", "Load secrets from the specified file. File format: .env or YAML (comments: # or //). This option is mutually exclusive with command-line secrets arguments.") util.AddOutputFlagsToCmd(secretsSetCmd, "The output to format the secrets in.") - secretsDeleteCmd.Flags().String("type", util.SECRET_TYPE_SHARED, "the type of secret to delete: personal or shared (default: shared)") + secretsDeleteCmd.Flags().String("type", util.SECRET_TYPE_SHARED, "the type of secret to delete: personal or shared") secretsDeleteCmd.Flags().String("token", "", "Fetch secrets using service token or machine identity access token") secretsDeleteCmd.Flags().String("projectId", "", "manually set the projectId to delete secrets from when using machine identity based auth") secretsDeleteCmd.Flags().String("path", "/", "get secrets within a folder path")