Fix: Returning keys in a reproducible manner

This commit is contained in:
Daniel Hougaard
2024-04-22 15:10:55 +02:00
parent ae63898d5e
commit 7a20251261
2 changed files with 16 additions and 0 deletions
+3
View File
@@ -116,6 +116,9 @@ var secretsCmd = &cobra.Command{
secrets = util.ExpandSecrets(secrets, authParams, "")
}
// convert secrets to the same order as the keys
secrets = util.SortSecretsByKeys(secrets)
util.HandleSendTestSecrets(cmd, secrets)
visualize.PrintAllSecretDetails(secrets)
Telemetry.CaptureEvent("cli-command:secrets", posthog.NewProperties().Set("secretCount", len(secrets)).Set("version", util.CLI_VERSION))